]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: DR, Handle domain memory resources init/uninit separately
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Tue, 28 Jun 2022 11:32:37 +0000 (14:32 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 27 Oct 2022 14:50:38 +0000 (15:50 +0100)
commit183a6706a07ea95cdd57a7703acec5f39fe3edde
treeac8908363176c605771cf6d7da16c6c12546b1c3
parent06ab4a4089d483ec29ddfc9d0503f3468b25f384
net/mlx5: DR, Handle domain memory resources init/uninit separately

Handle creation/destruction of all the domain's memory pools and other
memory-related fields in a separate init/uninit functions.
This simplifies error flow and allows cleaner addition of new pools.

Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Alex Vesker <valex@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_domain.c