net: remove zap_completion_queue
netpoll does an interesting work in zap_completion_queue(), but this was before we did skb orphaning before delivering packets to device. It now makes sense to add a test in dev_kfree_skb_irq() to not queue a skb if already orphaned, and to remove netpoll zap_completion_queue() as a bonus. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
27f39c73e6
commit
15e83ed788
@@ -1577,7 +1577,9 @@ EXPORT_SYMBOL(__netif_schedule);
|
||||
|
||||
void dev_kfree_skb_irq(struct sk_buff *skb)
|
||||
{
|
||||
if (atomic_dec_and_test(&skb->users)) {
|
||||
if (!skb->destructor)
|
||||
dev_kfree_skb(skb);
|
||||
else if (atomic_dec_and_test(&skb->users)) {
|
||||
struct softnet_data *sd;
|
||||
unsigned long flags;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user