Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net/mlx5: Add IFC bits to support IPsec enable/disable

Add hardware definitions to allow to control IPSec capabilities.

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Link: https://lore.kernel.org/r/20230825062836.103744-6-saeed@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Leon Romanovsky and committed by
Jakub Kicinski
17c8da5a e2537341

+3
+3
include/linux/mlx5/mlx5_ifc.h
··· 65 65 66 66 enum { 67 67 MLX5_SET_HCA_CAP_OP_MOD_GENERAL_DEVICE = 0x0, 68 + MLX5_SET_HCA_CAP_OP_MOD_ETHERNET_OFFLOADS = 0x1, 68 69 MLX5_SET_HCA_CAP_OP_MOD_ODP = 0x2, 69 70 MLX5_SET_HCA_CAP_OP_MOD_ATOMIC = 0x3, 70 71 MLX5_SET_HCA_CAP_OP_MOD_ROCE = 0x4, 72 + MLX5_SET_HCA_CAP_OP_MOD_IPSEC = 0x15, 71 73 MLX5_SET_HCA_CAP_OP_MOD_GENERAL_DEVICE2 = 0x20, 72 74 MLX5_SET_HCA_CAP_OP_MOD_PORT_SELECTION = 0x25, 73 75 }; ··· 3453 3451 struct mlx5_ifc_virtio_emulation_cap_bits virtio_emulation_cap; 3454 3452 struct mlx5_ifc_macsec_cap_bits macsec_cap; 3455 3453 struct mlx5_ifc_crypto_cap_bits crypto_cap; 3454 + struct mlx5_ifc_ipsec_cap_bits ipsec_cap; 3456 3455 u8 reserved_at_0[0x8000]; 3457 3456 }; 3458 3457