Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_offload.c374 struct mlx5e_ipsec_aso *aso = ipsec->aso; in mlx5e_ipsec_handle_limits() local
380 soft_arm = !MLX5_GET(ipsec_aso, aso->ctx, soft_lft_arm); in mlx5e_ipsec_handle_limits()
381 hard_arm = !MLX5_GET(ipsec_aso, aso->ctx, hard_lft_arm); in mlx5e_ipsec_handle_limits()
386 hard_cnt = MLX5_GET(ipsec_aso, aso->ctx, remove_flow_pkt_cnt); in mlx5e_ipsec_handle_limits()
457 struct mlx5e_ipsec_aso *aso; in mlx5e_ipsec_handle_event() local
460 aso = sa_entry->ipsec->aso; in mlx5e_ipsec_handle_event()
469 !MLX5_GET(ipsec_aso, aso->ctx, esn_event_arm)) { in mlx5e_ipsec_handle_event()
470 u32 mode_param = MLX5_GET(ipsec_aso, aso->ctx, mode_parameter); in mlx5e_ipsec_handle_event()
520 struct mlx5e_ipsec_aso *aso; in mlx5e_ipsec_aso_init() local
525 aso = kzalloc_obj(*ipsec->aso); in mlx5e_ipsec_aso_init()
[all …]
H A Dmacsec.c126 struct mlx5e_macsec_aso aso; member
161 static int mlx5e_macsec_aso_reg_mr(struct mlx5_core_dev *mdev, struct mlx5e_macsec_aso *aso) in mlx5e_macsec_aso_reg_mr() argument
182 err = mlx5e_create_mkey(mdev, aso->pdn, &umr->mkey); in mlx5e_macsec_aso_reg_mr()
190 aso->umr = umr; in mlx5e_macsec_aso_reg_mr()
201 static void mlx5e_macsec_aso_dereg_mr(struct mlx5_core_dev *mdev, struct mlx5e_macsec_aso *aso) in mlx5e_macsec_aso_dereg_mr() argument
203 struct mlx5e_macsec_umr *umr = aso->umr; in mlx5e_macsec_aso_dereg_mr()
379 obj_attrs.aso_pdn = macsec->aso.pdn; in mlx5e_macsec_init_sa()
1355 static void macsec_aso_build_ctrl(struct mlx5e_macsec_aso *aso, in macsec_aso_build_ctrl() argument
1369 macsec_aso_build_wqe_ctrl_seg(aso, aso_ctrl, &param); in macsec_aso_build_ctrl()
1375 struct mlx5e_macsec_aso *aso; in macsec_aso_set_arm_event() local
[all …]
H A Dipsec.h177 struct mlx5_aso *aso; member
254 struct mlx5e_ipsec_aso *aso; member
H A Dipsec.c1052 if (ipsec->aso) in mlx5e_ipsec_cleanup()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Daso.c311 struct mlx5_aso *aso; in mlx5_aso_create() local
314 aso = kzalloc_obj(*aso); in mlx5_aso_create()
315 if (!aso) in mlx5_aso_create()
318 err = mlx5_aso_create_cq(mdev, numa_node, &aso->cq); in mlx5_aso_create()
322 err = mlx5_aso_create_sq(mdev, numa_node, pdn, aso); in mlx5_aso_create()
326 return aso; in mlx5_aso_create()
329 mlx5_aso_destroy_cq(&aso->cq); in mlx5_aso_create()
331 kfree(aso); in mlx5_aso_create()
335 void mlx5_aso_destroy(struct mlx5_aso *aso) in mlx5_aso_destroy() argument
337 mlx5_aso_destroy_sq(aso); in mlx5_aso_destroy()
[all …]
H A Daso.h82 struct mlx5_aso_wqe *mlx5_aso_get_wqe(struct mlx5_aso *aso);
83 void mlx5_aso_build_wqe(struct mlx5_aso *aso, u8 ds_cnt,
86 void mlx5_aso_post_wqe(struct mlx5_aso *aso, bool with_data,
88 int mlx5_aso_poll_cq(struct mlx5_aso *aso, bool with_data);
91 void mlx5_aso_destroy(struct mlx5_aso *aso);
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dmeter.c37 struct mlx5_aso *aso; member
119 struct mlx5_aso *aso; in mlx5e_tc_meter_modify() local
156 aso = flow_meters->aso; in mlx5e_tc_meter_modify()
159 aso_wqe = mlx5_aso_get_wqe(aso); in mlx5e_tc_meter_modify()
161 mlx5_aso_build_wqe(aso, ds_cnt, aso_wqe, meter->obj_id, in mlx5e_tc_meter_modify()
187 mlx5_aso_post_wqe(aso, true, &aso_wqe->ctrl); in mlx5e_tc_meter_modify()
191 false, aso, true); in mlx5e_tc_meter_modify()
539 flow_meters->aso = mlx5_aso_create(mdev, flow_meters->pdn); in mlx5e_flow_meters_init()
540 if (IS_ERR(flow_meters->aso)) { in mlx5e_flow_meters_init()
542 err = PTR_ERR(flow_meters->aso); in mlx5e_flow_meters_init()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_action.c922 attr.aso_flow_meter.obj_id = action->aso->obj_id; in mlx5dr_actions_build_ste_arr()
923 attr.aso_flow_meter.offset = action->aso->offset; in mlx5dr_actions_build_ste_arr()
924 attr.aso_flow_meter.dest_reg_id = action->aso->dest_reg_id; in mlx5dr_actions_build_ste_arr()
925 attr.aso_flow_meter.init_color = action->aso->init_color; in mlx5dr_actions_build_ste_arr()
2162 action->aso->obj_id = obj_id; in mlx5dr_action_create_aso()
2163 action->aso->offset = meter_id; in mlx5dr_action_create_aso()
2164 action->aso->dest_reg_id = dest_reg_id; in mlx5dr_action_create_aso()
2165 action->aso->init_color = init_color; in mlx5dr_action_create_aso()
2166 action->aso->dmn = dmn; in mlx5dr_action_create_aso()
2232 refcount_dec(&action->aso->dmn->refcount); in mlx5dr_action_destroy()
H A Ddr_types.h1133 struct mlx5dr_action_aso_flow_meter *aso; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Daction.c509 attr->aso.aso_type = ASO_OPC_MOD_POLICER; in hws_action_fill_stc_attr()
510 attr->aso.devx_obj_id = obj_id; in hws_action_fill_stc_attr()
511 attr->aso.return_reg_id = action->aso.return_reg_id; in hws_action_fill_stc_attr()
766 action->aso.obj_id = obj_id; in hws_action_create_aso()
767 action->aso.return_reg_id = return_reg_id; in hws_action_create_aso()
H A Dcmd.h132 } aso; member
H A Dcmd.c535 stc_attr->aso.devx_obj_id); in hws_cmd_stc_modify_set_stc_param()
537 stc_attr->aso.return_reg_id); in hws_cmd_stc_modify_set_stc_param()
539 stc_attr->aso.aso_type); in hws_cmd_stc_modify_set_stc_param()