hv/netvsc: fix handling of fallback to single queue mode
Subsystems (3)
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.
Reported-by Dan Carpenter <[email protected]>
Fixes 3ffe64f1a641 ("hv_netvsc: split sub-channel setup into async and sync")
Signed-off-by Stephen Hemminger <[email protected]>
--- drivers/net/hyperv/rndis_filter.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/hyperv/rndis_filter.c +1 -0
@@ -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
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.
Reported-by Dan Carpenter <[email protected]>Fixes 3ffe64f1a641 ("hv_netvsc: split sub-channel setup into async and sync")Signed-off-by Stephen Hemminger <[email protected]>
Applied.