]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Feb 2019 04:53:01 +0000 (04:53 +0000)
commitf3a13c578a2beaae035e953eb9170ffec168980f
tree847e42c126e85c89878a0b383e311a9528b5f509
parent0f1ca2f8ab009a1215abca2698b74f53a3c6c7c9
hv_netvsc: Fix napi reschedule while receive completion is busy

BugLink: http://bugs.launchpad.net/bugs/1812229
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/hyperv/netvsc.c