Searched refs:aso_ctx (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | ipsec_offload.c | 96 void *aso_ctx; in mlx5e_ipsec_packet_setup() local 98 aso_ctx = MLX5_ADDR_OF(ipsec_obj, obj, ipsec_aso); in mlx5e_ipsec_packet_setup() 100 MLX5_SET(ipsec_aso, aso_ctx, esn_event_arm, 1); in mlx5e_ipsec_packet_setup() 103 MLX5_SET(ipsec_aso, aso_ctx, window_sz, in mlx5e_ipsec_packet_setup() 105 MLX5_SET(ipsec_aso, aso_ctx, mode, in mlx5e_ipsec_packet_setup() 108 MLX5_SET(ipsec_aso, aso_ctx, mode_parameter, in mlx5e_ipsec_packet_setup() 115 MLX5_SET(ipsec_aso, aso_ctx, valid, 1); in mlx5e_ipsec_packet_setup() 124 MLX5_SET(ipsec_aso, aso_ctx, mode, MLX5_IPSEC_ASO_INC_SN); in mlx5e_ipsec_packet_setup() 127 MLX5_SET(ipsec_aso, aso_ctx, remove_flow_pkt_cnt, in mlx5e_ipsec_packet_setup() 129 MLX5_SET(ipsec_aso, aso_ctx, hard_lft_arm, 1); in mlx5e_ipsec_packet_setup() [all …]
|
H A D | macsec.c | 209 static int macsec_set_replay_protection(struct mlx5_macsec_obj_attrs *attrs, void *aso_ctx) in macsec_set_replay_protection() argument 232 MLX5_SET(macsec_aso, aso_ctx, window_size, window_sz); in macsec_set_replay_protection() 233 MLX5_SET(macsec_aso, aso_ctx, mode, MLX5_MACSEC_ASO_REPLAY_PROTECTION); in macsec_set_replay_protection() 245 void *aso_ctx; in mlx5e_macsec_create_object() local 250 aso_ctx = MLX5_ADDR_OF(macsec_offload_obj, obj, macsec_aso); in mlx5e_macsec_create_object() 256 MLX5_SET(macsec_aso, aso_ctx, mode_parameter, attrs->next_pn); in mlx5e_macsec_create_object() 263 MLX5_SET(macsec_aso, aso_ctx, epn_event_arm, 1); in mlx5e_macsec_create_object() 275 MLX5_SET(macsec_aso, aso_ctx, valid, 0x1); in mlx5e_macsec_create_object() 277 MLX5_SET(macsec_aso, aso_ctx, mode, MLX5_MACSEC_ASO_INC_SN); in mlx5e_macsec_create_object() 279 err = macsec_set_replay_protection(attrs, aso_ctx); in mlx5e_macsec_create_object()
|