• Stephen Hemminger's avatar
    hv_netvsc: remove ndo_poll_controller · 2a7f8c3b
    Stephen Hemminger authored
    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: default avatarStephen Hemminger <sthemmin@microsoft.com>
    Cc: Haiyang Zhang <haiyangz@microsoft.com>
    Cc: Eric Dumazet <edumazet@google.com>
    Reviewed-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    2a7f8c3b
netvsc_drv.c 61.3 KB