Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);