net/mlx5: fix memory leak on ASO age close
Recent patch introduced the use of ASO flow hit action for age action.
The relevant management struct uses dynamically allocated memory.
This memory was not freed on closing.
This patch adds memory freeing as needed.
Fixes: f935ed4b64
("net/mlx5: support flow hit action for aging")
Signed-off-by: Dekel Peled <dekelp@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
This commit is contained in:
parent
f454f2dbf1
commit
7ad0b6d91f
@ -419,7 +419,7 @@ mlx5_flow_aso_age_mng_close(struct mlx5_dev_ctx_shared *sh)
|
||||
}
|
||||
mlx5_free(sh->aso_age_mng->pools);
|
||||
}
|
||||
memset(&sh->aso_age_mng, 0, sizeof(sh->aso_age_mng));
|
||||
mlx5_free(sh->aso_age_mng);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user