virtio-net: clean tx descriptors from rx napi
authorWillem de Bruijn <willemb@google.com>
Mon, 24 Apr 2017 17:49:29 +0000 (13:49 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Apr 2017 03:55:19 +0000 (23:55 -0400)
commit7b0411ef4aa69c9256d6a2c289d0a2b320414633
tree53dfadb8aa5536fb7029b405a1b854551a6d9502
parentea7735d97ba9064c448664429e249991ccd8aa77
virtio-net: clean tx descriptors from rx napi

Amortize the cost of virtual interrupts by doing both rx and tx work
on reception of a receive interrupt if tx napi is enabled. With
VIRTIO_F_EVENT_IDX, this suppresses most explicit tx completion
interrupts for bidirectional workloads.

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c