Home
last modified time | relevance | path

Searched refs:aso_ctx (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dmacsec.c225 static int macsec_set_replay_protection(struct mlx5_macsec_obj_attrs *attrs, void *aso_ctx) in macsec_set_replay_protection() argument
248 MLX5_SET(macsec_aso, aso_ctx, window_size, window_sz); in macsec_set_replay_protection()
249 MLX5_SET(macsec_aso, aso_ctx, mode, MLX5_MACSEC_ASO_REPLAY_PROTECTION); in macsec_set_replay_protection()
261 void *aso_ctx; in mlx5e_macsec_create_object() local
266 aso_ctx = MLX5_ADDR_OF(macsec_offload_obj, obj, macsec_aso); in mlx5e_macsec_create_object()
272 MLX5_SET(macsec_aso, aso_ctx, mode_parameter, attrs->next_pn); in mlx5e_macsec_create_object()
279 MLX5_SET(macsec_aso, aso_ctx, epn_event_arm, 1); in mlx5e_macsec_create_object()
291 MLX5_SET(macsec_aso, aso_ctx, valid, 0x1); in mlx5e_macsec_create_object()
293 MLX5_SET(macsec_aso, aso_ctx, mode, MLX5_MACSEC_ASO_INC_SN); in mlx5e_macsec_create_object()
295 err = macsec_set_replay_protection(attrs, aso_ctx); in mlx5e_macsec_create_object()