]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Handle errors from netif_set_real_num_{tx,rx}_queues
authorMaxim Mikityanskiy <maximmi@mellanox.com>
Thu, 19 Mar 2020 15:32:27 +0000 (17:32 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 20 Apr 2020 21:20:20 +0000 (14:20 -0700)
commitcb5af2af90b075dbb0ba44c7fe3e3f064193d659
tree45045d79cac9d53d1c8816a8fc62a7e9952cd044
parent1d861f7d66a4c00eb2848d6799f30a920677655f
net/mlx5e: Handle errors from netif_set_real_num_{tx,rx}_queues

netif_set_real_num_tx_queues and netif_set_real_num_rx_queues may fail.
Now that mlx5e supports handling errors in the preactivate hook, this
commit leverages that functionality to handle errors from those
functions and roll back all changes on failure.

Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c