From: Eric Dumazet Date: Thu, 19 Apr 2012 02:24:42 +0000 (+0000) Subject: packet: dont drop packet but consume it X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=abc4e4fa29eb81f874d4ef3c6bafcf5ad6f90b07;p=deliverable%2Flinux.git packet: dont drop packet but consume it When we need to clone skb, we dont drop a packet. Call consume_skb() to not confuse dropwatch. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index d2b5f6591f1a..40053a08f009 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c @@ -1654,7 +1654,7 @@ static int packet_rcv(struct sk_buff *skb, struct net_device *dev, skb->data = skb_head; skb->len = skb_len; } - kfree_skb(skb); + consume_skb(skb); skb = nskb; }