]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5e: Implement PSP operations .assoc_add and .assoc_del
authorRaed Salem <raeds@nvidia.com>
Wed, 17 Sep 2025 00:09:39 +0000 (17:09 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 18 Sep 2025 10:32:06 +0000 (12:32 +0200)
commitaf2196f494808e236362b3b126e8b09489093102
treeacb2d5029a11ae22622903d77287088b8a98a8a0
parent89ee2d92f66c45625ff1c173df2dbdea32568c5d
net/mlx5e: Implement PSP operations .assoc_add and .assoc_del

Implement .assoc_add and .assoc_del PSP operations used in the tx control
path. Allocate the relevant hardware resources when a new key is registered
using .assoc_add. Destroy the key when .assoc_del is called. Use a atomic
counter to keep track of the current number of keys being used by the
device.

Signed-off-by: Raed Salem <raeds@nvidia.com>
Signed-off-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Cosmin Ratiu <cratiu@nvidia.com>
Signed-off-by: Daniel Zahka <daniel.zahka@gmail.com>
Link: https://patch.msgid.link/20250917000954.859376-13-daniel.zahka@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h
drivers/net/ethernet/mellanox/mlx5/core/en_accel/psp.c
drivers/net/ethernet/mellanox/mlx5/core/en_accel/psp.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/lib/crypto.h