Searched refs:pkt_reformat (Results 1 – 13 of 13) sorted by relevance
289 bool is_decap = fte->action.pkt_reformat->reformat_type == in mlx5_cmd_dr_create_fte()294 fte->action.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte()327 fte->action.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte()438 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_dr_packet_reformat_alloc() argument471 pkt_reformat->action.dr_action = action; in mlx5_cmd_dr_packet_reformat_alloc()477 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_dr_packet_reformat_dealloc() argument479 mlx5dr_action_destroy(pkt_reformat->action.dr_action); in mlx5_cmd_dr_packet_reformat_dealloc()
84 struct mlx5_pkt_reformat *pkt_reformat);87 struct mlx5_pkt_reformat *pkt_reformat);
115 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_stub_packet_reformat_alloc() argument121 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_stub_packet_reformat_dealloc() argument459 if (fte->action.pkt_reformat) in mlx5_cmd_set_fte()461 fte->action.pkt_reformat->id); in mlx5_cmd_set_fte()511 dst->dest_attr.vport.pkt_reformat) { in mlx5_cmd_set_fte()518 dst->dest_attr.vport.pkt_reformat->id); in mlx5_cmd_set_fte()698 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_packet_reformat_alloc() argument744 pkt_reformat->id = MLX5_GET(alloc_packet_reformat_context_out, in mlx5_cmd_packet_reformat_alloc()751 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_packet_reformat_dealloc() argument761 pkt_reformat->id); in mlx5_cmd_packet_reformat_dealloc()
1420 (d1->vport.pkt_reformat->id == in mlx5_flow_dests_cmp()1421 d2->vport.pkt_reformat->id) : true)) || in mlx5_flow_dests_cmp()2958 struct mlx5_pkt_reformat *pkt_reformat; in mlx5_packet_reformat_alloc() local2966 pkt_reformat = kzalloc(sizeof(*pkt_reformat), GFP_KERNEL); in mlx5_packet_reformat_alloc()2967 if (!pkt_reformat) in mlx5_packet_reformat_alloc()2970 pkt_reformat->ns_type = ns_type; in mlx5_packet_reformat_alloc()2971 pkt_reformat->reformat_type = reformat_type; in mlx5_packet_reformat_alloc()2974 pkt_reformat); in mlx5_packet_reformat_alloc()2976 kfree(pkt_reformat); in mlx5_packet_reformat_alloc()2980 return pkt_reformat; in mlx5_packet_reformat_alloc()[all …]
164 struct mlx5_pkt_reformat *pkt_reformat; member
193 flow_act.pkt_reformat = attr->dests[j].pkt_reformat; in mlx5_eswitch_add_offloaded_rule()195 dest[i].vport.pkt_reformat = in mlx5_eswitch_add_offloaded_rule()196 attr->dests[j].pkt_reformat; in mlx5_eswitch_add_offloaded_rule()279 dest[i].vport.pkt_reformat = attr->dests[i].pkt_reformat; in mlx5_eswitch_add_fwd_rule()
1305 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, in mlx5e_tc_encap_flows_add()1309 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_encap_flows_add()1311 PTR_ERR(e->pkt_reformat)); in mlx5e_tc_encap_flows_add()1326 esw_attr->dests[flow->tmp_efi_index].pkt_reformat = e->pkt_reformat; in mlx5e_tc_encap_flows_add()1395 mlx5_packet_reformat_dealloc(priv->mdev, e->pkt_reformat); in mlx5e_tc_encap_flows_del()1561 mlx5_packet_reformat_dealloc(priv->mdev, e->pkt_reformat); in mlx5e_encap_dealloc()3075 attr->dests[out_index].pkt_reformat = e->pkt_reformat; in mlx5e_attach_encap()
389 struct mlx5_pkt_reformat *pkt_reformat; member
303 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, in mlx5e_tc_tun_create_header_ipv4()307 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_tun_create_header_ipv4()308 err = PTR_ERR(e->pkt_reformat); in mlx5e_tc_tun_create_header_ipv4()422 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, in mlx5e_tc_tun_create_header_ipv6()426 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_tun_create_header_ipv6()427 err = PTR_ERR(e->pkt_reformat); in mlx5e_tc_tun_create_header_ipv6()
126 struct mlx5_pkt_reformat *pkt_reformat; member201 struct mlx5_pkt_reformat *pkt_reformat; member
338 maction->flow_action_raw.pkt_reformat); in mlx5_ib_destroy_flow_action_raw()492 maction->flow_action_raw.pkt_reformat = in mlx5_ib_flow_action_create_packet_reformat_ctx()495 if (IS_ERR(maction->flow_action_raw.pkt_reformat)) { in mlx5_ib_flow_action_create_packet_reformat_ctx()496 ret = PTR_ERR(maction->flow_action_raw.pkt_reformat); in mlx5_ib_flow_action_create_packet_reformat_ctx()
873 struct mlx5_pkt_reformat *pkt_reformat; member
2670 action->pkt_reformat = in parse_flow_flow_action()2671 maction->flow_action_raw.pkt_reformat; in parse_flow_flow_action()