From: Eric Dumazet Date: Thu, 24 Aug 2017 16:02:49 +0000 (-0700) Subject: virtio_net: be drop monitor friendly X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=dadc0736f7be553a25ad34dc437ae379c5ab4a68;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: David S. Miller --- 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