dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Eric Dumazet 2012-04-19 02:24:42 +00:00 committed by David S. Miller
parent ab185d7b25
commit abc4e4fa29
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}