]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc4b40d7dac315830d0a79ec7dd50478df33ae5a9
tree682c47e5e7d287dc0a10c6ef4d17ca175db71300
parentfdcf0ce085a300ad4771d5660ac442ca3cf1008a
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: 9de11405e360 ("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