Maxim Mikityanskiy 8355060f5e net/mlx5e: Revert parameters on errors when changing MTU and LRO state without reset
Sometimes, channel params are changed without recreating the channels.
It happens in two basic cases: when the channels are closed, and when
the parameter being changed doesn't affect how channels are configured.
Such changes invoke a hardware command that might fail. The whole
operation should be reverted in such cases, but the code that restores
the parameters' values in the driver was missing. This commit adds this
handling.

Fixes: 2e20a151205b ("net/mlx5e: Fail safe mtu and lro setting")
Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
2021-01-26 15:39:01 -08:00
..
2020-10-16 15:02:21 -07:00
2020-12-17 13:45:24 -08:00
2020-12-16 11:01:04 -08:00
2021-01-26 15:16:40 -08:00
2020-11-09 17:50:28 -08:00
2020-11-05 16:54:01 -08:00
2020-12-14 17:25:56 -08:00