Skip to content

Commit 916c5e1

Browse files
shemmingerdavem330
authored andcommitted
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: 3ffe64f ("hv_netvsc: split sub-channel setup into async and sync") Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2d14d37 commit 916c5e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/hyperv/rndis_filter.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,6 +1338,7 @@ struct netvsc_device *rndis_filter_device_add(struct hv_device *dev,
13381338
/* setting up multiple channels failed */
13391339
net_device->max_chn = 1;
13401340
net_device->num_chn = 1;
1341+
return 0;
13411342

13421343
err_dev_remv:
13431344
rndis_filter_device_remove(dev, net_device);

0 commit comments

Comments
 (0)