diff options
author | Eric Dumazet <edumazet@google.com> | 2012-04-18 22:24:42 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-19 14:23:55 -0400 |
commit | abc4e4fa29eb81f874d4ef3c6bafcf5ad6f90b07 (patch) | |
tree | 1d476a7f11b1e670b55fa7f6a09a4d7defafb347 /net/packet/af_packet.c | |
parent | ab185d7b2551e9b8d946a657ddccd86d192bebd1 (diff) |
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 <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/packet/af_packet.c')
-rw-r--r-- | net/packet/af_packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
1654 | skb->data = skb_head; | 1654 | skb->data = skb_head; |
1655 | skb->len = skb_len; | 1655 | skb->len = skb_len; |
1656 | } | 1656 | } |
1657 | kfree_skb(skb); | 1657 | consume_skb(skb); |
1658 | skb = nskb; | 1658 | skb = nskb; |
1659 | } | 1659 | } |
1660 | 1660 | ||