| /Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/ |
| D | eswitch_offloads_termtbl.c | 33 if (flow_act->pkt_reformat) in mlx5_eswitch_termtbl_hash() 34 hash = jhash(flow_act->pkt_reformat, in mlx5_eswitch_termtbl_hash() 35 sizeof(*flow_act->pkt_reformat), in mlx5_eswitch_termtbl_hash() 56 if (flow_act1->pkt_reformat && flow_act2->pkt_reformat) in mlx5_eswitch_termtbl_cmp() 57 return memcmp(flow_act1->pkt_reformat, flow_act2->pkt_reformat, in mlx5_eswitch_termtbl_cmp() 58 sizeof(*flow_act1->pkt_reformat)); in mlx5_eswitch_termtbl_cmp() 60 return !(flow_act1->pkt_reformat == flow_act2->pkt_reformat); in mlx5_eswitch_termtbl_cmp() 270 term_tbl_act.pkt_reformat = attr->dests[num_vport_dests].pkt_reformat; in mlx5_eswitch_add_termtbl_rule() 273 term_tbl_act.pkt_reformat = NULL; in mlx5_eswitch_add_termtbl_rule() 298 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 | 118 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_stub_packet_reformat_alloc() argument 124 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_stub_packet_reformat_dealloc() argument 572 if (fte->action.pkt_reformat) in mlx5_cmd_set_fte() 574 fte->action.pkt_reformat->id); in mlx5_cmd_set_fte() 642 dst->dest_attr.vport.pkt_reformat) { in mlx5_cmd_set_fte() 649 dst->dest_attr.vport.pkt_reformat->id); in mlx5_cmd_set_fte() 837 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_packet_reformat_alloc() argument 887 pkt_reformat->id = MLX5_GET(alloc_packet_reformat_context_out, in mlx5_cmd_packet_reformat_alloc() 894 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_packet_reformat_dealloc() argument 902 pkt_reformat->id); in mlx5_cmd_packet_reformat_dealloc()
|
| D | en_rep.h | 182 struct mlx5_pkt_reformat *pkt_reformat; member 204 struct mlx5_pkt_reformat *pkt_reformat; member
|
| D | fs_core.c | 1572 (d1->vport.pkt_reformat->id == in mlx5_flow_dests_cmp() 1573 d2->vport.pkt_reformat->id) : true)) || in mlx5_flow_dests_cmp() 1633 act1->pkt_reformat != act2->pkt_reformat) in check_conflicting_actions() 3412 struct mlx5_pkt_reformat *pkt_reformat; in mlx5_packet_reformat_alloc() local 3420 pkt_reformat = kzalloc(sizeof(*pkt_reformat), GFP_KERNEL); in mlx5_packet_reformat_alloc() 3421 if (!pkt_reformat) in mlx5_packet_reformat_alloc() 3424 pkt_reformat->ns_type = ns_type; in mlx5_packet_reformat_alloc() 3425 pkt_reformat->reformat_type = params->type; in mlx5_packet_reformat_alloc() 3427 pkt_reformat); in mlx5_packet_reformat_alloc() 3429 kfree(pkt_reformat); in mlx5_packet_reformat_alloc() [all …]
|
| D | eswitch_offloads.c | 324 if (esw_attr->dests[esw_attr->split_count].pkt_reformat) { in esw_setup_chain_src_port_rewrite() 326 flow_act->pkt_reformat = esw_attr->dests[esw_attr->split_count].pkt_reformat; in esw_setup_chain_src_port_rewrite() 424 int attr_idx, int dest_idx, bool pkt_reformat) in esw_setup_vport_dest() argument 437 if (pkt_reformat) { in esw_setup_vport_dest() 439 flow_act->pkt_reformat = esw_attr->dests[attr_idx].pkt_reformat; in esw_setup_vport_dest() 442 dest[dest_idx].vport.pkt_reformat = esw_attr->dests[attr_idx].pkt_reformat; in esw_setup_vport_dest() 596 flow_act.pkt_reformat = esw_attr->decap_pkt_reformat; in mlx5_eswitch_add_offloaded_rule()
|
| D | eswitch.h | 484 struct mlx5_pkt_reformat *pkt_reformat; member
|
| /Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| D | tc_tun_encap.c | 162 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, in mlx5e_tc_encap_flows_add() 165 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_encap_flows_add() 167 PTR_ERR(e->pkt_reformat)); in mlx5e_tc_encap_flows_add() 181 esw_attr->dests[flow->tmp_entry_index].pkt_reformat = e->pkt_reformat; in mlx5e_tc_encap_flows_add() 232 esw_attr->dests[flow->tmp_entry_index].pkt_reformat = NULL; in mlx5e_tc_encap_flows_del() 254 mlx5_packet_reformat_dealloc(priv->mdev, e->pkt_reformat); in mlx5e_tc_encap_flows_del() 255 e->pkt_reformat = NULL; in mlx5e_tc_encap_flows_del() 456 mlx5_packet_reformat_dealloc(priv->mdev, e->pkt_reformat); in mlx5e_encap_dealloc() 470 mlx5_packet_reformat_dealloc(priv->mdev, d->pkt_reformat); in mlx5e_decap_dealloc() 880 attr->esw_attr->dests[out_index].pkt_reformat = e->pkt_reformat; in mlx5e_attach_encap() [all …]
|
| D | tc_tun.c | 318 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, &reformat_params, in mlx5e_tc_tun_create_header_ipv4() 320 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_tun_create_header_ipv4() 321 err = PTR_ERR(e->pkt_reformat); in mlx5e_tc_tun_create_header_ipv4() 423 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, &reformat_params, in mlx5e_tc_tun_update_header_ipv4() 425 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_tun_update_header_ipv4() 426 err = PTR_ERR(e->pkt_reformat); in mlx5e_tc_tun_update_header_ipv4() 586 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, &reformat_params, in mlx5e_tc_tun_create_header_ipv6() 588 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_tun_create_header_ipv6() 589 err = PTR_ERR(e->pkt_reformat); in mlx5e_tc_tun_create_header_ipv6() 690 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, &reformat_params, in mlx5e_tc_tun_update_header_ipv6() [all …]
|
| /Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
| D | fs_dr.c | 322 bool is_decap = fte->action.pkt_reformat->reformat_type == in mlx5_cmd_dr_create_fte() 327 fte->action.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte() 380 fte->action.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte() 444 dst->dest_attr.vport.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte() 602 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_dr_packet_reformat_alloc() argument 643 pkt_reformat->action.dr_action = action; in mlx5_cmd_dr_packet_reformat_alloc() 649 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_dr_packet_reformat_dealloc() argument 651 mlx5dr_action_destroy(pkt_reformat->action.dr_action); in mlx5_cmd_dr_packet_reformat_dealloc()
|
| D | dr_cmd.c | 695 if (fte->action.pkt_reformat) in mlx5dr_cmd_set_fte() 697 fte->action.pkt_reformat->id); in mlx5dr_cmd_set_fte()
|
| /Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| D | macsec_fs.c | 55 struct mlx5_pkt_reformat *pkt_reformat; member 498 if (tx_rule->pkt_reformat) { in macsec_fs_tx_del_rule() 499 mlx5_packet_reformat_dealloc(macsec_fs->mdev, tx_rule->pkt_reformat); in macsec_fs_tx_del_rule() 500 tx_rule->pkt_reformat = NULL; in macsec_fs_tx_del_rule() 558 flow_act.pkt_reformat = mlx5_packet_reformat_alloc(macsec_fs->mdev, in macsec_fs_tx_add_rule() 561 if (IS_ERR(flow_act.pkt_reformat)) { in macsec_fs_tx_add_rule() 562 err = PTR_ERR(flow_act.pkt_reformat); in macsec_fs_tx_add_rule() 566 tx_rule->pkt_reformat = flow_act.pkt_reformat; in macsec_fs_tx_add_rule() 841 flow_act->pkt_reformat = mlx5_packet_reformat_alloc(macsec_fs->mdev, in macsec_fs_rx_create_check_decap_rule() 844 if (IS_ERR(flow_act->pkt_reformat)) { in macsec_fs_rx_create_check_decap_rule() [all …]
|
| /Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
| D | bridge.c | 549 struct mlx5_pkt_reformat *pkt_reformat); 693 flow_act.pkt_reformat = vlan->pkt_reformat_push; in mlx5_esw_bridge_ingress_flow_with_esw_create() 844 flow_act.pkt_reformat = vlan->pkt_reformat_pop; in mlx5_esw_bridge_egress_flow_create() 877 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_esw_bridge_egress_miss_flow_create() argument 887 .pkt_reformat = pkt_reformat, in mlx5_esw_bridge_egress_miss_flow_create() 1078 struct mlx5_pkt_reformat *pkt_reformat; in mlx5_esw_bridge_vlan_push_create() local 1093 pkt_reformat = mlx5_packet_reformat_alloc(esw->dev, in mlx5_esw_bridge_vlan_push_create() 1096 if (IS_ERR(pkt_reformat)) { in mlx5_esw_bridge_vlan_push_create() 1098 PTR_ERR(pkt_reformat)); in mlx5_esw_bridge_vlan_push_create() 1099 return PTR_ERR(pkt_reformat); in mlx5_esw_bridge_vlan_push_create() [all …]
|
| /Linux-v6.1/include/linux/mlx5/ |
| D | fs.h | 156 struct mlx5_pkt_reformat *pkt_reformat; member 247 struct mlx5_pkt_reformat *pkt_reformat; member
|
| /Linux-v6.1/drivers/infiniband/hw/mlx5/ |
| D | fs.c | 174 action->pkt_reformat = in parse_flow_flow_action() 175 maction->flow_action_raw.pkt_reformat; in parse_flow_flow_action() 1698 maction->flow_action_raw.pkt_reformat); in destroy_flow_action_raw() 2372 maction->flow_action_raw.pkt_reformat = in mlx5_ib_flow_action_create_packet_reformat_ctx() 2375 if (IS_ERR(maction->flow_action_raw.pkt_reformat)) { in mlx5_ib_flow_action_create_packet_reformat_ctx() 2376 ret = PTR_ERR(maction->flow_action_raw.pkt_reformat); in mlx5_ib_flow_action_create_packet_reformat_ctx()
|
| D | mlx5_ib.h | 957 struct mlx5_pkt_reformat *pkt_reformat; member
|