netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] virtio_net: be drop monitor friend
@ 2017-08-24 16:02 Eric Dumazet
  2017-08-24 18:50 ` David Miller
  2017-08-24 21:42 ` Michael S. Tsirkin
  0 siblings, 2 replies; 4+ messages in thread
From: Eric Dumazet @ 2017-08-24 16:02 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, Michael S. Tsirkin, Jason Wang

From: Eric Dumazet <edumazet@google.com>

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>
---
 drivers/net/virtio_net.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-08-24 21:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-24 16:02 [PATCH net] virtio_net: be drop monitor friend Eric Dumazet
2017-08-24 18:50 ` David Miller
2017-08-24 19:34   ` Eric Dumazet
2017-08-24 21:42 ` Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).