net/mlx5: Add async garbage collector for DEK bulk
authorJianbo Liu <jianbol@nvidia.com>
Mon, 25 Apr 2022 03:17:47 +0000 (03:17 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 31 Jan 2023 03:10:06 +0000 (19:10 -0800)
commit12a9e1b73db00d38d0953c2fd45bd2854c34880a
tree8b4af0600580558e4f642fac9b2aa5fb5a622cd6
parent709f07fe1a595dae3c891e18f8dca297402f95ea
net/mlx5: Add async garbage collector for DEK bulk

After invalidation, the idle bulk with all DEKs available for use, is
destroyed, to free keys and mem.

To get better performance, the firmware destruction operation is done
asynchronously. So idle bulks are enqueued in destroy_list first, then
destroyed in system workqueue. This will improve performance, as the
destruction doesn't need to hold pool's mutex.

Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/crypto.c