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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Jul 2018 09:25:10 +0000 (11:25 +0200)
commit7e7fefde7dec77475457453f3e7e28acf3be1171
tree0fb7fed4b56de0e214054adae5f84be70ed82a96
parentc7daaa272ddab653e2f2144e9dd497ded53a5bf7
hv_netvsc: Fix napi reschedule while receive completion is busy

[ Upstream commit 6b81b193b83e87da1ea13217d684b54fccf8ee8a ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/hyperv/netvsc.c