Skip to content

Commit 17c8da5

Browse files
rleonkuba-moo
authored andcommitted
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>
1 parent e253734 commit 17c8da5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

include/linux/mlx5/mlx5_ifc.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ enum {
6565

6666
enum {
6767
MLX5_SET_HCA_CAP_OP_MOD_GENERAL_DEVICE = 0x0,
68+
MLX5_SET_HCA_CAP_OP_MOD_ETHERNET_OFFLOADS = 0x1,
6869
MLX5_SET_HCA_CAP_OP_MOD_ODP = 0x2,
6970
MLX5_SET_HCA_CAP_OP_MOD_ATOMIC = 0x3,
7071
MLX5_SET_HCA_CAP_OP_MOD_ROCE = 0x4,
72+
MLX5_SET_HCA_CAP_OP_MOD_IPSEC = 0x15,
7173
MLX5_SET_HCA_CAP_OP_MOD_GENERAL_DEVICE2 = 0x20,
7274
MLX5_SET_HCA_CAP_OP_MOD_PORT_SELECTION = 0x25,
7375
};
@@ -3451,6 +3453,7 @@ union mlx5_ifc_hca_cap_union_bits {
34513453
struct mlx5_ifc_virtio_emulation_cap_bits virtio_emulation_cap;
34523454
struct mlx5_ifc_macsec_cap_bits macsec_cap;
34533455
struct mlx5_ifc_crypto_cap_bits crypto_cap;
3456+
struct mlx5_ifc_ipsec_cap_bits ipsec_cap;
34543457
u8 reserved_at_0[0x8000];
34553458
};
34563459

0 commit comments

Comments
 (0)