hv/netvsc: fix handling of fallback to single queue mode
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 13 Jul 2018 17:38:38 +0000 (10:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:09:18 +0000 (13:09 +0200)
commit7b4ab0e6510bdef33cbb9e3b4a5471d252d3d295
tree4a68bcbe14f6a6dd6bd91eab3ff2e334ee2206e7
parentdcedabcab0457f17df9c7ff7d66cd27aa517b685
hv/netvsc: fix handling of fallback to single queue mode

[ Upstream commit 916c5e1413be058d1c1f6e502db350df890730ce ]

The netvsc device may need to fallback to running in single queue
mode if host side only wants to support single queue.

Recent change for handling mtu broke this in setup logic.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 3ffe64f1a641 ("hv_netvsc: split sub-channel setup into async and sync")
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/hyperv/rndis_filter.c