diff options
author | Tariq Toukan <tariqt@mellanox.com> | 2016-02-29 19:17:13 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-02 19:37:26 (GMT) |
commit | 85082dba0a5059c538cfa786d07f5ec5370d22fe (patch) | |
tree | 1dcb1676ddb3457af5ecc43770949b091cd9be40 /drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c | |
parent | bdfc028de1b3cd59490d5413a5c87b0fa50040c2 (diff) | |
download | linux-85082dba0a5059c538cfa786d07f5ec5370d22fe.tar.xz |
net/mlx5e: Correctly handle RSS indirection table when changing number of channels
Upon changing num_channels, reset the RSS indirection table to
match the new value.
Fixes: 2d75b2bc8a8c ('net/mlx5e: Add ethtool RSS configuration options')
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c index 64af1b0..5abeb00 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c @@ -385,6 +385,8 @@ static int mlx5e_set_channels(struct net_device *dev, mlx5e_close_locked(dev); priv->params.num_channels = count; + mlx5e_build_default_indir_rqt(priv->params.indirection_rqt, + MLX5E_INDIR_RQT_SIZE, count); if (was_opened) err = mlx5e_open_locked(dev); |