]> www.infradead.org Git - nvme.git/commit
net/mlx5e: Add mqprio_rl cleanup and free in mlx5e_priv_cleanup()
authorJianbo Liu <jianbol@nvidia.com>
Thu, 27 Jun 2024 18:02:38 +0000 (21:02 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jun 2024 11:58:11 +0000 (12:58 +0100)
commit1da839eab6dbc26b95bfcd1ed1a4d1aaa5c144a3
treef6398f1f4e2749d00650ff5d3029d30f71f73f84
parentb20c2fb45470d0c7a603613c9cfa5d45720e17f2
net/mlx5e: Add mqprio_rl cleanup and free in mlx5e_priv_cleanup()

In the cited commit, mqprio_rl cleanup and free are mistakenly removed
in mlx5e_priv_cleanup(), and it causes the leakage of host memory and
firmware SCHEDULING_ELEMENT objects while changing eswitch mode. So,
add them back.

Fixes: 0bb7228f7096 ("net/mlx5e: Fix mqprio_rl handling on devlink reload")
Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c