mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-17 20:26:49 +00:00
virtio_net: be drop monitor friendly
This change is needed to not fool drop monitor. (perf record ... -e skb:kfree_skb ) Packets were properly sent and are consumed after TX completion. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
af57d2b720
commit
dadc0736f7
1 changed files with 1 additions and 1 deletions
|
|
@ -1058,7 +1058,7 @@ static void free_old_xmit_skbs(struct send_queue *sq)
|
||||||
bytes += skb->len;
|
bytes += skb->len;
|
||||||
packets++;
|
packets++;
|
||||||
|
|
||||||
dev_kfree_skb_any(skb);
|
dev_consume_skb_any(skb);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Avoid overhead when no packets have been processed
|
/* Avoid overhead when no packets have been processed
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue