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)
commitfa3748775b92692331cfcab6f7b09a04a23694d9
tree45045d79cac9d53d1c8816a8fc62a7e9952cd044
parentd7a42ad062cc6b20b2c2a8c09dc61df2d4f5751f
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