Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/steering/
Dfs_dr.c289 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() argument
471 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() argument
479 mlx5dr_action_destroy(pkt_reformat->action.dr_action); in mlx5_cmd_dr_packet_reformat_dealloc()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_cmd.h84 struct mlx5_pkt_reformat *pkt_reformat);
87 struct mlx5_pkt_reformat *pkt_reformat);
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
459 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() argument
744 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() argument
761 pkt_reformat->id); in mlx5_cmd_packet_reformat_dealloc()
Dfs_core.c1420 (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() local
2966 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 …]
Den_rep.h164 struct mlx5_pkt_reformat *pkt_reformat; member
Deswitch_offloads.c193 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()
Den_tc.c1305 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()
Deswitch.h389 struct mlx5_pkt_reformat *pkt_reformat; member
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun.c303 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()
/Linux-v5.4/include/linux/mlx5/
Dfs.h126 struct mlx5_pkt_reformat *pkt_reformat; member
201 struct mlx5_pkt_reformat *pkt_reformat; member
/Linux-v5.4/drivers/infiniband/hw/mlx5/
Dflow.c338 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()
Dmlx5_ib.h873 struct mlx5_pkt_reformat *pkt_reformat; member
Dmain.c2670 action->pkt_reformat = in parse_flow_flow_action()
2671 maction->flow_action_raw.pkt_reformat; in parse_flow_flow_action()