virtio_net: bulk free tx skbs
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 18 Jan 2019 04:20:07 +0000 (23:20 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 Jan 2019 00:06:52 +0000 (16:06 -0800)
commitdf133f3f96257ee29696c0ed8bd198ec801dc810
tree4df0a603924d61c182d4c153f99c20e77ab96bd2
parent3e64cf7a435ed0500e3adaa8aada2272d3ae8abc
virtio_net: bulk free tx skbs

Use napi_consume_skb() to get bulk free.  Note that napi_consume_skb is
safe to call in a non-napi context as long as the napi_budget flag is
correct.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c