| /Linux-v5.15/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() 265 term_tbl_act.pkt_reformat = attr->dests[num_vport_dests].pkt_reformat; in mlx5_eswitch_add_termtbl_rule() 268 term_tbl_act.pkt_reformat = NULL; in mlx5_eswitch_add_termtbl_rule() 293 flow_act->pkt_reformat = NULL; in mlx5_eswitch_add_termtbl_rule()
|
| D | fs_cmd.h | 82 struct mlx5_pkt_reformat *pkt_reformat); 85 struct mlx5_pkt_reformat *pkt_reformat);
|
| D | fs_cmd.c | 116 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_stub_packet_reformat_alloc() argument 122 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_stub_packet_reformat_dealloc() argument 522 if (fte->action.pkt_reformat) in mlx5_cmd_set_fte() 524 fte->action.pkt_reformat->id); in mlx5_cmd_set_fte() 576 dst->dest_attr.vport.pkt_reformat) { in mlx5_cmd_set_fte() 583 dst->dest_attr.vport.pkt_reformat->id); in mlx5_cmd_set_fte() 760 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_packet_reformat_alloc() argument 809 pkt_reformat->id = MLX5_GET(alloc_packet_reformat_context_out, in mlx5_cmd_packet_reformat_alloc() 816 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_packet_reformat_dealloc() argument 824 pkt_reformat->id); in mlx5_cmd_packet_reformat_dealloc()
|
| D | en_rep.h | 178 struct mlx5_pkt_reformat *pkt_reformat; member 193 struct mlx5_pkt_reformat *pkt_reformat; member
|
| D | fs_core.c | 1502 (d1->vport.pkt_reformat->id == in mlx5_flow_dests_cmp() 1503 d2->vport.pkt_reformat->id) : true)) || in mlx5_flow_dests_cmp() 3189 struct mlx5_pkt_reformat *pkt_reformat; in mlx5_packet_reformat_alloc() local 3197 pkt_reformat = kzalloc(sizeof(*pkt_reformat), GFP_KERNEL); in mlx5_packet_reformat_alloc() 3198 if (!pkt_reformat) in mlx5_packet_reformat_alloc() 3201 pkt_reformat->ns_type = ns_type; in mlx5_packet_reformat_alloc() 3202 pkt_reformat->reformat_type = params->type; in mlx5_packet_reformat_alloc() 3204 pkt_reformat); in mlx5_packet_reformat_alloc() 3206 kfree(pkt_reformat); in mlx5_packet_reformat_alloc() 3210 return pkt_reformat; in mlx5_packet_reformat_alloc() [all …]
|
| D | eswitch_offloads.c | 294 flow_act->pkt_reformat = esw_attr->dests[j].pkt_reformat; in esw_setup_chain_src_port_rewrite() 382 int attr_idx, int dest_idx, bool pkt_reformat) in esw_setup_vport_dest() argument 392 if (pkt_reformat) { in esw_setup_vport_dest() 394 flow_act->pkt_reformat = esw_attr->dests[attr_idx].pkt_reformat; in esw_setup_vport_dest() 397 dest[dest_idx].vport.pkt_reformat = esw_attr->dests[attr_idx].pkt_reformat; in esw_setup_vport_dest() 527 flow_act.pkt_reformat = esw_attr->decap_pkt_reformat; in mlx5_eswitch_add_offloaded_rule()
|
| D | eswitch.h | 467 struct mlx5_pkt_reformat *pkt_reformat; member
|
| /Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| D | tc_tun.c | 311 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, &reformat_params, in mlx5e_tc_tun_create_header_ipv4() 313 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_tun_create_header_ipv4() 314 err = PTR_ERR(e->pkt_reformat); in mlx5e_tc_tun_create_header_ipv4() 416 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, &reformat_params, in mlx5e_tc_tun_update_header_ipv4() 418 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_tun_update_header_ipv4() 419 err = PTR_ERR(e->pkt_reformat); in mlx5e_tc_tun_update_header_ipv4() 576 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, &reformat_params, in mlx5e_tc_tun_create_header_ipv6() 578 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_tun_create_header_ipv6() 579 err = PTR_ERR(e->pkt_reformat); in mlx5e_tc_tun_create_header_ipv6() 680 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, &reformat_params, in mlx5e_tc_tun_update_header_ipv6() [all …]
|
| D | tc_tun_encap.c | 138 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, in mlx5e_tc_encap_flows_add() 141 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_encap_flows_add() 143 PTR_ERR(e->pkt_reformat)); in mlx5e_tc_encap_flows_add() 156 esw_attr->dests[flow->tmp_entry_index].pkt_reformat = e->pkt_reformat; in mlx5e_tc_encap_flows_add() 217 mlx5_packet_reformat_dealloc(priv->mdev, e->pkt_reformat); in mlx5e_tc_encap_flows_del() 412 mlx5_packet_reformat_dealloc(priv->mdev, e->pkt_reformat); in mlx5e_encap_dealloc() 426 mlx5_packet_reformat_dealloc(priv->mdev, d->pkt_reformat); in mlx5e_decap_dealloc() 817 attr->esw_attr->dests[out_index].pkt_reformat = e->pkt_reformat; in mlx5e_attach_encap() 892 d->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, in mlx5e_attach_decap() 895 if (IS_ERR(d->pkt_reformat)) { in mlx5e_attach_decap() [all …]
|
| /Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
| D | fs_dr.c | 307 bool is_decap = fte->action.pkt_reformat->reformat_type == in mlx5_cmd_dr_create_fte() 312 fte->action.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte() 365 fte->action.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte() 426 dst->dest_attr.vport.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte() 546 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_dr_packet_reformat_alloc() argument 587 pkt_reformat->action.dr_action = action; in mlx5_cmd_dr_packet_reformat_alloc() 593 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_dr_packet_reformat_dealloc() argument 595 mlx5dr_action_destroy(pkt_reformat->action.dr_action); in mlx5_cmd_dr_packet_reformat_dealloc()
|
| D | dr_cmd.c | 683 if (fte->action.pkt_reformat) in mlx5dr_cmd_set_fte() 685 fte->action.pkt_reformat->id); in mlx5dr_cmd_set_fte()
|
| /Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
| D | bridge.c | 447 flow_act.pkt_reformat = vlan->pkt_reformat_push; in mlx5_esw_bridge_ingress_flow_with_esw_create() 579 flow_act.pkt_reformat = vlan->pkt_reformat_pop; in mlx5_esw_bridge_egress_flow_create() 763 struct mlx5_pkt_reformat *pkt_reformat; in mlx5_esw_bridge_vlan_push_create() local 778 pkt_reformat = mlx5_packet_reformat_alloc(esw->dev, in mlx5_esw_bridge_vlan_push_create() 781 if (IS_ERR(pkt_reformat)) { in mlx5_esw_bridge_vlan_push_create() 783 PTR_ERR(pkt_reformat)); in mlx5_esw_bridge_vlan_push_create() 784 return PTR_ERR(pkt_reformat); in mlx5_esw_bridge_vlan_push_create() 787 vlan->pkt_reformat_push = pkt_reformat; in mlx5_esw_bridge_vlan_push_create() 802 struct mlx5_pkt_reformat *pkt_reformat; in mlx5_esw_bridge_vlan_pop_create() local 816 pkt_reformat = mlx5_packet_reformat_alloc(esw->dev, in mlx5_esw_bridge_vlan_pop_create() [all …]
|
| /Linux-v5.15/include/linux/mlx5/ |
| D | fs.h | 137 struct mlx5_pkt_reformat *pkt_reformat; member 214 struct mlx5_pkt_reformat *pkt_reformat; member
|
| /Linux-v5.15/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() 1708 maction->flow_action_raw.pkt_reformat); in destroy_flow_action_raw() 2305 maction->flow_action_raw.pkt_reformat = in mlx5_ib_flow_action_create_packet_reformat_ctx() 2308 if (IS_ERR(maction->flow_action_raw.pkt_reformat)) { in mlx5_ib_flow_action_create_packet_reformat_ctx() 2309 ret = PTR_ERR(maction->flow_action_raw.pkt_reformat); in mlx5_ib_flow_action_create_packet_reformat_ctx()
|
| D | mlx5_ib.h | 950 struct mlx5_pkt_reformat *pkt_reformat; member
|