Skip to content

Commit

Permalink
hv/netvsc: fix handling of fallback to single queue mode
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
shemminger authored and davem330 committed Jul 16, 2018
1 parent 2d14d37 commit 916c5e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/hyperv/rndis_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 916c5e1

Please sign in to comment.