diff options
author | Eric Dumazet <edumazet@google.com> | 2017-08-24 09:02:49 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-24 11:50:21 -0700 |
commit | dadc0736f7be553a25ad34dc437ae379c5ab4a68 (patch) | |
tree | 12a55a40ca89f94b6efdac6b6f23884738dced73 /drivers/net/virtio_net.c | |
parent | af57d2b720252baca5421ec58628da626e1862dc (diff) |
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>
Diffstat (limited to 'drivers/net/virtio_net.c')
-rw-r--r-- | drivers/net/virtio_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 98f17b05c68b..b06169ea60dc 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -1058,7 +1058,7 @@ static void free_old_xmit_skbs(struct send_queue *sq) bytes += skb->len; packets++; - dev_kfree_skb_any(skb); + dev_consume_skb_any(skb); } /* Avoid overhead when no packets have been processed |