]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Correctly handle changing the number of queues when the interface is down
authorMaxim Mikityanskiy <maximmi@mellanox.com>
Fri, 11 Dec 2020 10:56:56 +0000 (12:56 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 26 Jan 2021 23:38:56 +0000 (15:38 -0800)
commit3391a454bc1d6d07751f05af050870cf8e20dac8
tree4e1a88ac6c46c79344fa7597f1163d402f6a2ca7
parentc8ec8786908b1eeb8222bf9fe3a9411448b68e36
net/mlx5e: Correctly handle changing the number of queues when the interface is down

This commit addresses two issues related to changing the number of
queues when the channels are closed:

1. Missing call to mlx5e_num_channels_changed to update
real_num_tx_queues when the number of TCs is changed.

2. When mlx5e_num_channels_changed returns an error, the channel
parameters must be reverted.

Two Fixes: tags correspond to the first commits where these two issues
were introduced.

Fixes: c0c8a3e324b5 ("net/mlx5e: Fix configuration of XPS cpumasks and netdev queues in corner cases")
Fixes: cb5af2af90b0 ("net/mlx5e: Handle errors from netif_set_real_num_{tx,rx}_queues")
Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c