mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
net/mlx5: HWS, Handle destroying table that has a miss table
If a table has a miss table that was created by 'mlx5hws_table_set_default_miss' API function, its miss_tbl keeps the table that points to it in a list. If such table is deleted, we need to also remove it from the miss_tbl list, otherwise the node in miss_tbl list will contain garbage. Signed-off-by: Erez Shitrit <erezsh@nvidia.com> Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com> Reviewed-by: Moshe Shemesh <moshe@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/20260507173443.320465-3-tariqt@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
e3ec157089
commit
60e9e82f16
|
|
@ -282,6 +282,9 @@ int mlx5hws_table_destroy(struct mlx5hws_table *tbl)
|
|||
goto unlock_err;
|
||||
}
|
||||
|
||||
if (tbl->default_miss.miss_tbl)
|
||||
list_del_init(&tbl->default_miss.next);
|
||||
|
||||
list_del_init(&tbl->tbl_list_node);
|
||||
mutex_unlock(&ctx->ctrl_lock);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user