net/mlx5: Add bulk allocation and modify_dek operation
authorJianbo Liu <jianbol@nvidia.com>
Wed, 20 Jul 2022 03:57:37 +0000 (03:57 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 31 Jan 2023 03:10:05 +0000 (19:10 -0800)
commit4d570c7117ddfa96da96bc8917effcfa906e6bd1
treefa169ae8a32aa9a5a7242d3a796006aa7fd83462
parent7a5b72c2a8e4f2292958b96423905948da583628
net/mlx5: Add bulk allocation and modify_dek operation

To support fast update of keys into hardware, we optimize firmware to
achieve the maximum rate. The approach is to create DEK objects in
bulk, and update each of them with modify command.
This patch supports bulk allocation and modify_dek commands for new
firmware. However, as log_obj_range is 0 for now, only one DEK obj is
allocated each time, and then updated with user key by modify_dek.

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