hv_netvsc: Fix the real number of queues of non-vRSS cases
authorHaiyang Zhang <haiyangz@microsoft.com>
Mon, 14 May 2018 22:32:00 +0000 (15:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 14:17:25 +0000 (16:17 +0200)
commit836f8472f1bded05ea4c35b07009f4fd6fcd6bfa
tree330e116b4d8c521283c35ca1aa478d237e272f67
parent099612827aa3e09decce41f8a5cd1d473232eeb9
hv_netvsc: Fix the real number of queues of non-vRSS cases

[ Commit 6450f8f269a9271985e4a8c13920b7e4cf21c0f3 upstream. ]

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