Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch_offloads_termtbl.c33 if (dest->vport.pkt_reformat) in mlx5_eswitch_termtbl_hash()
34 hash = jhash(dest->vport.pkt_reformat, in mlx5_eswitch_termtbl_hash()
35 sizeof(*dest->vport.pkt_reformat), in mlx5_eswitch_termtbl_hash()
56 return dest1->vport.pkt_reformat && dest2->vport.pkt_reformat ? in mlx5_eswitch_termtbl_cmp()
57 memcmp(dest1->vport.pkt_reformat, dest2->vport.pkt_reformat, in mlx5_eswitch_termtbl_cmp()
58 sizeof(*dest1->vport.pkt_reformat)) : 0; in mlx5_eswitch_termtbl_cmp()
206 mlx5_eswitch_termtbl_is_encap_reformat(src->pkt_reformat)) { in mlx5_eswitch_termtbl_actions_move()
209 dst->pkt_reformat = src->pkt_reformat; in mlx5_eswitch_termtbl_actions_move()
210 src->pkt_reformat = NULL; in mlx5_eswitch_termtbl_actions_move()
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
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()
Den_rep.h169 struct mlx5_pkt_reformat *pkt_reformat; member
184 struct mlx5_pkt_reformat *pkt_reformat; member
Dfs_core.c1494 (d1->vport.pkt_reformat->id == in mlx5_flow_dests_cmp()
1495 d2->vport.pkt_reformat->id) : true)) || in mlx5_flow_dests_cmp()
3168 struct mlx5_pkt_reformat *pkt_reformat; in mlx5_packet_reformat_alloc() local
3176 pkt_reformat = kzalloc(sizeof(*pkt_reformat), GFP_KERNEL); in mlx5_packet_reformat_alloc()
3177 if (!pkt_reformat) in mlx5_packet_reformat_alloc()
3180 pkt_reformat->ns_type = ns_type; in mlx5_packet_reformat_alloc()
3181 pkt_reformat->reformat_type = reformat_type; in mlx5_packet_reformat_alloc()
3184 pkt_reformat); in mlx5_packet_reformat_alloc()
3186 kfree(pkt_reformat); in mlx5_packet_reformat_alloc()
3190 return pkt_reformat; in mlx5_packet_reformat_alloc()
[all …]
Den_tc.c1483 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, in mlx5e_tc_encap_flows_add()
1487 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_encap_flows_add()
1489 PTR_ERR(e->pkt_reformat)); in mlx5e_tc_encap_flows_add()
1505 esw_attr->dests[flow->tmp_efi_index].pkt_reformat = e->pkt_reformat; in mlx5e_tc_encap_flows_add()
1577 mlx5_packet_reformat_dealloc(priv->mdev, e->pkt_reformat); in mlx5e_tc_encap_flows_del()
1740 mlx5_packet_reformat_dealloc(priv->mdev, e->pkt_reformat); in mlx5e_encap_dealloc()
1754 mlx5_packet_reformat_dealloc(priv->mdev, d->pkt_reformat); in mlx5e_decap_dealloc()
3791 attr->esw_attr->dests[out_index].pkt_reformat = e->pkt_reformat; in mlx5e_attach_encap()
3861 d->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, in mlx5e_attach_decap()
3866 if (IS_ERR(d->pkt_reformat)) { in mlx5e_attach_decap()
[all …]
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()
Deswitch.h411 struct mlx5_pkt_reformat *pkt_reformat; member
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/
Dfs_dr.c301 bool is_decap = fte->action.pkt_reformat->reformat_type == in mlx5_cmd_dr_create_fte()
306 fte->action.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte()
359 fte->action.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte()
420 dst->dest_attr.vport.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte()
527 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_dr_packet_reformat_alloc() argument
560 pkt_reformat->action.dr_action = action; in mlx5_cmd_dr_packet_reformat_alloc()
566 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_dr_packet_reformat_dealloc() argument
568 mlx5dr_action_destroy(pkt_reformat->action.dr_action); in mlx5_cmd_dr_packet_reformat_dealloc()
Ddr_cmd.c576 if (fte->action.pkt_reformat) in mlx5dr_cmd_set_fte()
578 fte->action.pkt_reformat->id); in mlx5dr_cmd_set_fte()
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
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()
/Linux-v5.10/include/linux/mlx5/
Dfs.h132 struct mlx5_pkt_reformat *pkt_reformat; member
210 struct mlx5_pkt_reformat *pkt_reformat; member
/Linux-v5.10/drivers/infiniband/hw/mlx5/
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()
2296 maction->flow_action_raw.pkt_reformat = in mlx5_ib_flow_action_create_packet_reformat_ctx()
2299 if (IS_ERR(maction->flow_action_raw.pkt_reformat)) { in mlx5_ib_flow_action_create_packet_reformat_ctx()
2300 ret = PTR_ERR(maction->flow_action_raw.pkt_reformat); in mlx5_ib_flow_action_create_packet_reformat_ctx()
Dmlx5_ib.h880 struct mlx5_pkt_reformat *pkt_reformat; member