OSDN Git Service

hv_netvsc: Fix the real number of queues of non-vRSS cases
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 22 Sep 2017 22:31:38 +0000 (15:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Sep 2017 03:20:51 +0000 (20:20 -0700)
commit6450f8f269a9271985e4a8c13920b7e4cf21c0f3
tree7aec9cbc2d4067ea8c72464ef6ae89c7722f0558
parent070eb6e0890b189a5a5cd37e39005ea0c77d9ea3
hv_netvsc: Fix the real number of queues of non-vRSS cases

For older hosts without multi-channel (vRSS) support, and some error
cases, we still need to set the real number of queues to one.
This patch adds this missing setting.

Fixes: 8195b1396ec8 ("hv_netvsc: fix deadlock on hotplug")
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c