]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit06483a3cbc47f98e5661f9acde1cfe1360ee85ea
tree53dfadb8aa5536fb7029b405a1b854551a6d9502
parent08623be75a040e84af8b031f0343fb3191d23b15
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