]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix access to non-existing receive queue
authorTariq Toukan <tariqt@mellanox.com>
Tue, 5 Mar 2019 14:45:09 +0000 (16:45 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 11 Mar 2019 18:32:40 +0000 (11:32 -0700)
commit280e0fd0497a7fc2ca6f44fd666be7b7eaaff14d
tree5a01cf92cf694dd9b5fe3384033dfea48e5dc203
parentb9ffa77222e3524858906c897ecfe3c3dd5cd0d6
net/mlx5e: Fix access to non-existing receive queue

In case number of channels is changed while interface is down,
RSS indirection table is mistakenly not modified accordingly,
causing access to out-of-range non-existing object.

Fix by updating the RSS indireciton table also in the early
return flow of interface down.

Fixes: 80c53f12ef35 ("net/mlx5e: Fix NULL pointer derefernce in set channels error flow")
Fixes: cbd3979d7fb9 ("net/mlx5e: Move RSS params to a dedicated struct")
Reported-by: Or Gerlitz <ogerlitz@mellanox.com>
Tested-by: Maria Pasechnik <mariap@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c