]> 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)
commitbe21799eda44b7c2d00d0989376d4126819f3532
tree45045d79cac9d53d1c8816a8fc62a7e9952cd044
parent5463e3ec5db8276993f64c99c040041dc43971ab
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