Commit 916c5e14 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Fixes: 3ffe64f1 ("hv_netvsc: split sub-channel setup into async and sync")
Signed-off-by: default avatarStephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2d14d379
......@@ -1338,6 +1338,7 @@ struct netvsc_device *rndis_filter_device_add(struct hv_device *dev,
/* setting up multiple channels failed */
net_device->max_chn = 1;
net_device->num_chn = 1;
return 0;
err_dev_remv:
rndis_filter_device_remove(dev, net_device);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment