net/mlx5: DR, In destroy flow, free resources even if FW command failed
Otherwise resources will never be freed and refcount will not be decreased. Signed-off-by: Chris Mi <cmi@nvidia.com> Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com> Reviewed-by: Alex Vesker <valex@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
parent
12d6c1d3a2
commit
14335d54e7
@ -292,7 +292,7 @@ int mlx5dr_table_destroy(struct mlx5dr_table *tbl)
|
||||
mlx5dr_dbg_tbl_del(tbl);
|
||||
ret = dr_table_destroy_sw_owned_tbl(tbl);
|
||||
if (ret)
|
||||
return ret;
|
||||
mlx5dr_err(tbl->dmn, "Failed to destoy sw owned table\n");
|
||||
|
||||
dr_table_uninit(tbl);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user