Commit 23cc83c6 authored by Emeel Hakim's avatar Emeel Hakim Committed by Jakub Kicinski

net/mlx5: Add ifc bits for MACsec extended packet number (EPN) and replay protection

Add ifc bits related to advanced steering operations (ASO) and general
object modify for macsec to use as part of offloading EPN and replay
protection features.
Reviewed-by: default avatarRaed Salem <raeds@nvidia.com>
Signed-off-by: default avatarEmeel Hakim <ehakim@nvidia.com>
Reviewed-by: default avatarTariq Toukan <tariqt@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent cb6d3c0f
...@@ -11558,6 +11558,20 @@ struct mlx5_ifc_modify_ipsec_obj_in_bits { ...@@ -11558,6 +11558,20 @@ struct mlx5_ifc_modify_ipsec_obj_in_bits {
struct mlx5_ifc_ipsec_obj_bits ipsec_object; struct mlx5_ifc_ipsec_obj_bits ipsec_object;
}; };
enum {
MLX5_MACSEC_ASO_REPLAY_PROTECTION = 0x1,
};
enum {
MLX5_MACSEC_ASO_REPLAY_WIN_32BIT = 0x0,
MLX5_MACSEC_ASO_REPLAY_WIN_64BIT = 0x1,
MLX5_MACSEC_ASO_REPLAY_WIN_128BIT = 0x2,
MLX5_MACSEC_ASO_REPLAY_WIN_256BIT = 0x3,
};
#define MLX5_MACSEC_ASO_INC_SN 0x2
#define MLX5_MACSEC_ASO_REG_C_4_5 0x2
struct mlx5_ifc_macsec_aso_bits { struct mlx5_ifc_macsec_aso_bits {
u8 valid[0x1]; u8 valid[0x1];
u8 reserved_at_1[0x1]; u8 reserved_at_1[0x1];
...@@ -11619,6 +11633,21 @@ struct mlx5_ifc_create_macsec_obj_in_bits { ...@@ -11619,6 +11633,21 @@ struct mlx5_ifc_create_macsec_obj_in_bits {
struct mlx5_ifc_macsec_offload_obj_bits macsec_object; struct mlx5_ifc_macsec_offload_obj_bits macsec_object;
}; };
struct mlx5_ifc_modify_macsec_obj_in_bits {
struct mlx5_ifc_general_obj_in_cmd_hdr_bits general_obj_in_cmd_hdr;
struct mlx5_ifc_macsec_offload_obj_bits macsec_object;
};
enum {
MLX5_MODIFY_MACSEC_BITMASK_EPN_OVERLAP = BIT(0),
MLX5_MODIFY_MACSEC_BITMASK_EPN_MSB = BIT(1),
};
struct mlx5_ifc_query_macsec_obj_out_bits {
struct mlx5_ifc_general_obj_out_cmd_hdr_bits general_obj_out_cmd_hdr;
struct mlx5_ifc_macsec_offload_obj_bits macsec_object;
};
struct mlx5_ifc_encryption_key_obj_bits { struct mlx5_ifc_encryption_key_obj_bits {
u8 modify_field_select[0x40]; u8 modify_field_select[0x40];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment