Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch_offloads_termtbl.c33 if (flow_act->pkt_reformat) in mlx5_eswitch_termtbl_hash()
34 hash = jhash(flow_act->pkt_reformat, in mlx5_eswitch_termtbl_hash()
35 sizeof(*flow_act->pkt_reformat), in mlx5_eswitch_termtbl_hash()
56 if (flow_act1->pkt_reformat && flow_act2->pkt_reformat) in mlx5_eswitch_termtbl_cmp()
57 return memcmp(flow_act1->pkt_reformat, flow_act2->pkt_reformat, in mlx5_eswitch_termtbl_cmp()
58 sizeof(*flow_act1->pkt_reformat)); in mlx5_eswitch_termtbl_cmp()
60 return !(flow_act1->pkt_reformat == flow_act2->pkt_reformat); in mlx5_eswitch_termtbl_cmp()
266 term_tbl_act.pkt_reformat = attr->dests[num_vport_dests].pkt_reformat; in mlx5_eswitch_add_termtbl_rule()
269 term_tbl_act.pkt_reformat = NULL; in mlx5_eswitch_add_termtbl_rule()
294 flow_act->pkt_reformat = NULL; in mlx5_eswitch_add_termtbl_rule()
H A Dfs_cmd.c115 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_stub_packet_reformat_alloc() argument
121 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_stub_packet_reformat_dealloc() argument
454 if (fte->action.pkt_reformat) in mlx5_cmd_set_fte()
456 fte->action.pkt_reformat->id); in mlx5_cmd_set_fte()
508 dst->dest_attr.vport.pkt_reformat) { in mlx5_cmd_set_fte()
515 dst->dest_attr.vport.pkt_reformat->id); in mlx5_cmd_set_fte()
692 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_packet_reformat_alloc() argument
736 pkt_reformat->id = MLX5_GET(alloc_packet_reformat_context_out, in mlx5_cmd_packet_reformat_alloc()
743 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_packet_reformat_dealloc() argument
751 pkt_reformat->id); in mlx5_cmd_packet_reformat_dealloc()
H A Dfs_cmd.h84 struct mlx5_pkt_reformat *pkt_reformat);
87 struct mlx5_pkt_reformat *pkt_reformat);
H A Den_rep.h169 struct mlx5_pkt_reformat *pkt_reformat; member
184 struct mlx5_pkt_reformat *pkt_reformat; member
H A Dfs_core.c1497 (d1->vport.pkt_reformat->id == in mlx5_flow_dests_cmp()
1498 d2->vport.pkt_reformat->id) : true)) || in mlx5_flow_dests_cmp()
1556 act1->pkt_reformat != act2->pkt_reformat) in check_conflicting_actions()
3206 struct mlx5_pkt_reformat *pkt_reformat; in mlx5_packet_reformat_alloc() local
3214 pkt_reformat = kzalloc(sizeof(*pkt_reformat), GFP_KERNEL); in mlx5_packet_reformat_alloc()
3215 if (!pkt_reformat) in mlx5_packet_reformat_alloc()
3218 pkt_reformat->ns_type = ns_type; in mlx5_packet_reformat_alloc()
3219 pkt_reformat->reformat_type = reformat_type; in mlx5_packet_reformat_alloc()
3222 pkt_reformat); in mlx5_packet_reformat_alloc()
3224 kfree(pkt_reformat); in mlx5_packet_reformat_alloc()
[all …]
H A Den_tc.c1520 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, in mlx5e_tc_encap_flows_add()
1524 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_encap_flows_add()
1526 PTR_ERR(e->pkt_reformat)); in mlx5e_tc_encap_flows_add()
1542 esw_attr->dests[flow->tmp_efi_index].pkt_reformat = e->pkt_reformat; in mlx5e_tc_encap_flows_add()
1614 mlx5_packet_reformat_dealloc(priv->mdev, e->pkt_reformat); in mlx5e_tc_encap_flows_del()
1777 mlx5_packet_reformat_dealloc(priv->mdev, e->pkt_reformat); in mlx5e_encap_dealloc()
1791 mlx5_packet_reformat_dealloc(priv->mdev, d->pkt_reformat); in mlx5e_decap_dealloc()
3883 attr->esw_attr->dests[out_index].pkt_reformat = e->pkt_reformat; in mlx5e_attach_encap()
3953 d->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, in mlx5e_attach_decap()
3958 if (IS_ERR(d->pkt_reformat)) { in mlx5e_attach_decap()
[all …]
H A Deswitch_offloads.c368 flow_act.pkt_reformat = in mlx5_eswitch_add_offloaded_rule()
369 esw_attr->dests[j].pkt_reformat; in mlx5_eswitch_add_offloaded_rule()
371 dest[i].vport.pkt_reformat = in mlx5_eswitch_add_offloaded_rule()
372 esw_attr->dests[j].pkt_reformat; in mlx5_eswitch_add_offloaded_rule()
380 flow_act.pkt_reformat = esw_attr->decap_pkt_reformat; in mlx5_eswitch_add_offloaded_rule()
483 dest[i].vport.pkt_reformat = esw_attr->dests[i].pkt_reformat; in mlx5_eswitch_add_fwd_rule()
H A Deswitch.h411 struct mlx5_pkt_reformat *pkt_reformat; member
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Dfs_dr.c300 bool is_decap = fte->action.pkt_reformat->reformat_type == in mlx5_cmd_dr_create_fte()
305 fte->action.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte()
358 fte->action.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte()
419 dst->dest_attr.vport.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte()
526 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_dr_packet_reformat_alloc() argument
559 pkt_reformat->action.dr_action = action; in mlx5_cmd_dr_packet_reformat_alloc()
565 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_dr_packet_reformat_dealloc() argument
567 mlx5dr_action_destroy(pkt_reformat->action.dr_action); in mlx5_cmd_dr_packet_reformat_dealloc()
H A Ddr_cmd.c581 if (fte->action.pkt_reformat) in mlx5dr_cmd_set_fte()
583 fte->action.pkt_reformat->id); in mlx5dr_cmd_set_fte()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun.c280 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, in mlx5e_tc_tun_create_header_ipv4()
284 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_tun_create_header_ipv4()
285 err = PTR_ERR(e->pkt_reformat); in mlx5e_tc_tun_create_header_ipv4()
445 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, in mlx5e_tc_tun_create_header_ipv6()
449 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_tun_create_header_ipv6()
450 err = PTR_ERR(e->pkt_reformat); in mlx5e_tc_tun_create_header_ipv6()
/OK3568_Linux_fs/kernel/include/linux/mlx5/
H A Dfs.h132 struct mlx5_pkt_reformat *pkt_reformat; member
210 struct mlx5_pkt_reformat *pkt_reformat; member
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/mlx5/
H A Dfs.c183 action->pkt_reformat = in parse_flow_flow_action()
184 maction->flow_action_raw.pkt_reformat; in parse_flow_flow_action()
1709 maction->flow_action_raw.pkt_reformat); in destroy_flow_action_raw()
2302 maction->flow_action_raw.pkt_reformat = in mlx5_ib_flow_action_create_packet_reformat_ctx()
2305 if (IS_ERR(maction->flow_action_raw.pkt_reformat)) { in mlx5_ib_flow_action_create_packet_reformat_ctx()
2306 ret = PTR_ERR(maction->flow_action_raw.pkt_reformat); in mlx5_ib_flow_action_create_packet_reformat_ctx()
H A Dmlx5_ib.h880 struct mlx5_pkt_reformat *pkt_reformat; member