projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab185d7
)
packet: dont drop packet but consume it
author
Eric Dumazet
<edumazet@google.com>
Thu, 19 Apr 2012 02:24:42 +0000
(
02:24
+0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 19 Apr 2012 18:23:55 +0000
(14:23 -0400)
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>
net/packet/af_packet.c
patch
|
blob
|
blame
|
history
diff --git
a/net/packet/af_packet.c
b/net/packet/af_packet.c
index d2b5f6591f1a76ff9625fff377e99325f940cd89..40053a08f009008eb7799f2ca5bb7f673ca8a48e 100644
(file)
--- 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;
}
-
kfre
e_skb(skb);
+
consum
e_skb(skb);
skb = nskb;
}