]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix mqprio_rl handling on devlink reload
authorMoshe Tal <moshet@nvidia.com>
Wed, 4 May 2022 13:00:28 +0000 (16:00 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 19 Jul 2022 20:32:49 +0000 (13:32 -0700)
commitb6472fcdf6a407014ea65223da81e7895aabbb20
treee09d138723eeabee0876ff1dba09bb56b66d8c1d
parentda749dbe4f3c725237c37b5103fdbb9af18cdc65
net/mlx5e: Fix mqprio_rl handling on devlink reload

Keep mqprio_rl data to params and restore the configuration in case of
devlink reload.
Change the location of mqprio_rl resources cleanup so it will be done
also in reload flow.

Also, remove the rl pointer from the params, since this is dynamic object
and saved to priv.

Signed-off-by: Moshe Tal <moshet@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c