net/mlx5: Add const to the key pointer of encryption key creation
authorJianbo Liu <jianbol@nvidia.com>
Mon, 8 Aug 2022 02:47:17 +0000 (02:47 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 31 Jan 2023 03:10:05 +0000 (19:10 -0800)
commit55f0d6d200612ea01f20acabafe4c5c31c728250
treebe7f28a66039d86d9c0c8a86b5d89556155f9d83
parentfe298bdf6f654d4ad93069db9fe93b3b6632f4f1
net/mlx5: Add const to the key pointer of encryption key creation

Change key pointer to const void *, as there is no need to change the
key content. This is also to avoid modifying the key by mistake.

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/en_accel/ktls.c
drivers/net/ethernet/mellanox/mlx5/core/lib/crypto.c
drivers/net/ethernet/mellanox/mlx5/core/lib/crypto.h