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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jul 2018 21:01:10 +0000 (14:01 -0700)
commit916c5e1413be058d1c1f6e502db350df890730ce
tree2c6a570700df25087ef0a5f7b4035d45b0ecff40
parent2d14d3795294d42aacc278948984a480569bcc23
hv/netvsc: fix handling of fallback to single queue mode

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>
drivers/net/hyperv/rndis_filter.c