]> www.infradead.org Git - users/jedix/linux-maple.git/commit
virtio_net: disable cb aggressively
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 13 Apr 2021 05:30:45 +0000 (01:30 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 4 May 2021 08:19:59 +0000 (04:19 -0400)
commit7ff6e99e021caa41b2fa183d9ca9b9da3a86e2e5
treea3840f48522816aeb50214b7ab1dcb80be3010e5
parent41e0088d136537e88ee84eb1ef05514cec50b26d
virtio_net: disable cb aggressively

There are currently two cases where we poll TX vq not in response to a
callback: start xmit and rx napi.  We currently do this with callbacks
enabled which can cause extra interrupts from the card.  Used not to be
a big issue as we run with interrupts disabled but that is no longer the
case, and in some cases the rate of spurious interrupts is so high
linux detects this and actually kills the interrupt.

Fix up by disabling the callbacks before polling the tx vq.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/net/virtio_net.c