]> git.baikalelectronics.ru Git - kernel.git/commit
hv_netvsc: remove ndo_poll_controller
authorStephen Hemminger <stephen@networkplumber.org>
Sat, 29 Sep 2018 12:52:56 +0000 (14:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Oct 2018 05:57:34 +0000 (22:57 -0700)
commit25f4fdfc274ac6bd9306a997bcae3f31dee29d94
treeeb0dae451ce25abf6a85426f3cdf5543d7c12dde
parente05abdd9cc1db97e089e4cc3b6bdbff8bcb7faaf
hv_netvsc: remove ndo_poll_controller

Similar to other patches from ERic.

As diagnosed by Song Liu, ndo_poll_controller() can
be very dangerous on loaded hosts, since the cpu
calling ndo_poll_controller() might steal all NAPI
contexts (for all RX/TX queues of the NIC). This capture
can last for unlimited amount of time, since one
cpu is generally not able to drain all the queues under load.

In netvsc driver it uses NAPI for TX completions. The default
poll_napi will do this for us now and avoid the capture.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Eric Dumazet <edumazet@google.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c