]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Don't override user RSS upon set channels
authorInbar Karmy <inbark@mellanox.com>
Mon, 14 Aug 2017 13:12:16 +0000 (16:12 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 30 Aug 2017 18:20:43 +0000 (21:20 +0300)
commit77e3bf00c1b3f3fd7df9d2add728e44fec530b82
tree89cf842ae49df77fbb890f2df36cc5718e954986
parent5c400662ccb37f0f8ff33860d7d25dc885494fcf
net/mlx5e: Don't override user RSS upon set channels

Currently, increasing the number of combined channels is changing
the RSS spread to use the new created channels.
Prevent the RSS spread change in case the user explicitly declare it,
to avoid overriding user configuration.

Tested:
when RSS default:

# ethtool -L ens8 combined 4
RSS spread will change and point to 4 channels.

# ethtool -X ens8 equal 4
# ethtool -L ens8 combined 6
RSS will not change after increasing the number of the channels.

Fixes: a592bd9947e6 ('ethtool: ensure channel counts are within bounds during SCHANNELS')
Signed-off-by: Inbar Karmy <inbark@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c