Commit 5f90f422 authored by Anjali Singhai Jain's avatar Anjali Singhai Jain Committed by Jeff Kirsher

i40e: Setting queue count to 1 using ethtool is valid

Fix a bug where ethtool set-channels would return failure when configuring
only one Rx queue.

Change-ID: Id833c48c17d71e352b30f3249f6acf9e7aaec57e
Signed-off-by: default avatarAnjali Singhai Jain <anjali.singhai@intel.com>
Signed-off-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: default avatarKavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 98d44381
...@@ -1634,7 +1634,7 @@ static int i40e_set_channels(struct net_device *dev, ...@@ -1634,7 +1634,7 @@ static int i40e_set_channels(struct net_device *dev,
* class queue mapping * class queue mapping
*/ */
new_count = i40e_reconfig_rss_queues(pf, count); new_count = i40e_reconfig_rss_queues(pf, count);
if (new_count > 1) if (new_count > 0)
return 0; return 0;
else else
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment