Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dadc0736 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

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: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent af57d2b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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