hv_netvsc: Fix napi reschedule while receive completion is busy
authorHaiyang Zhang <haiyangz@microsoft.com>
Tue, 17 Jul 2018 17:11:13 +0000 (17:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jul 2018 22:23:30 +0000 (15:23 -0700)
commit6b81b193b83e87da1ea13217d684b54fccf8ee8a
tree682c47e5e7d287dc0a10c6ef4d17ca175db71300
parenta2ec9d14edcd8e92c1d6cd2132d6c9a1dc5d0985
hv_netvsc: Fix napi reschedule while receive completion is busy

If out ring is full temporarily and receive completion cannot go out,
we may still need to reschedule napi if certain conditions are met.
Otherwise the napi poll might be stopped forever, and cause network
disconnect.

Fixes: 7426b1a51803 ("netvsc: optimize receive completions")
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc.c