Searched refs:pkt_reformat (Results 1 – 14 of 14) sorted by relevance
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | eswitch_offloads_termtbl.c | 33 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()
|
D | fs_cmd.h | 84 struct mlx5_pkt_reformat *pkt_reformat); 87 struct mlx5_pkt_reformat *pkt_reformat);
|
D | fs_cmd.c | 115 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()
|
D | en_rep.h | 169 struct mlx5_pkt_reformat *pkt_reformat; member 184 struct mlx5_pkt_reformat *pkt_reformat; member
|
D | fs_core.c | 1494 (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 …]
|
D | en_tc.c | 1483 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 …]
|
D | eswitch_offloads.c | 368 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()
|
D | eswitch.h | 411 struct mlx5_pkt_reformat *pkt_reformat; member
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | fs_dr.c | 301 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()
|
D | dr_cmd.c | 576 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/ |
D | tc_tun.c | 280 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/ |
D | fs.h | 132 struct mlx5_pkt_reformat *pkt_reformat; member 210 struct mlx5_pkt_reformat *pkt_reformat; member
|
/Linux-v5.10/drivers/infiniband/hw/mlx5/ |
D | fs.c | 183 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()
|
D | mlx5_ib.h | 880 struct mlx5_pkt_reformat *pkt_reformat; member
|