summaryrefslogtreecommitdiffstats
path: root/net/packet/af_packet.c
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2017-04-25 21:59:17 +0200
committerDavid S. Miller <davem@davemloft.net>2017-04-26 20:50:06 +0200
commit78a57b482aa53b040fbc2b2ef0208b54f004161b (patch)
tree66f453e70af121cbe5bd0965c3a59b61ec5f6bcd /net/packet/af_packet.c
parentMerge branch 'ibmvnic-Move-sub-crq-init-out-of-interrupt-context' (diff)
downloadlinux-78a57b482aa53b040fbc2b2ef0208b54f004161b.tar.xz
linux-78a57b482aa53b040fbc2b2ef0208b54f004161b.zip
virtio-net: on tx, only call napi_disable if tx napi is on
As of tx napi, device down (`ip link set dev $dev down`) hangs unless tx napi is enabled. Else napi_enable is not called, so napi_disable will spin on test_and_set_bit NAPI_STATE_SCHED. Only call napi_disable if tx napi is enabled. Fixes: 5a719c2552ca ("virtio-net: transmit napi") Reported-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Willem de Bruijn <willemb@google.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/packet/af_packet.c')
0 files changed, 0 insertions, 0 deletions