Skip to contentSkip to conversation

hv/netvsc: fix handling of fallback to single queue mode

PATCH Applied Stephen Hemminger 2 participants 2 messages Jul 13, 2018 – Jul 16, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Fixes 3ffe64f1a641 ("hv_netvsc: split sub-channel setup into async and sync")
---
 drivers/net/hyperv/rndis_filter.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/hyperv/rndis_filter.c +1 -0
index 9b4e3c3787e5..408ece27131c 100644
@@ -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);
Signature · 1 line
2.18.0
maintainer Applied
#1 lore raw

From: Stephen Hemminger <[email protected]>
Date: Fri, 13 Jul 2018 10:38:38 -0700

Quoted 8 lines

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.

Fixes 3ffe64f1a641 ("hv_netvsc: split sub-channel setup into async and sync")

Applied.