summaryrefslogtreecommitdiff
path: root/include/linux/phy.h
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2017-04-25 22:59:17 +0300
committerDavid S. Miller <davem@davemloft.net>2017-04-26 21:50:06 +0300
commit78a57b482aa53b040fbc2b2ef0208b54f004161b (patch)
tree66f453e70af121cbe5bd0965c3a59b61ec5f6bcd /include/linux/phy.h
parent1f7fe5d492a4f3f7ed74b8e15548ced38f5a59be (diff)
downloadlinux-78a57b482aa53b040fbc2b2ef0208b54f004161b.tar.xz
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 'include/linux/phy.h')
0 files changed, 0 insertions, 0 deletions