Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch_offloads_termtbl.c33 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()
Dfs_cmd.h82 struct mlx5_pkt_reformat *pkt_reformat);
85 struct mlx5_pkt_reformat *pkt_reformat);
Dfs_cmd.c118 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()
Den_rep.h182 struct mlx5_pkt_reformat *pkt_reformat; member
204 struct mlx5_pkt_reformat *pkt_reformat; member
Dfs_core.c1572 (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 …]
Deswitch_offloads.c324 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()
Deswitch.h484 struct mlx5_pkt_reformat *pkt_reformat; member
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun_encap.c162 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 …]
Dtc_tun.c318 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/
Dfs_dr.c322 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()
Ddr_cmd.c695 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/
Dmacsec_fs.c55 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/
Dbridge.c549 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/
Dfs.h156 struct mlx5_pkt_reformat *pkt_reformat; member
247 struct mlx5_pkt_reformat *pkt_reformat; member
/Linux-v6.1/drivers/infiniband/hw/mlx5/
Dfs.c174 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()
Dmlx5_ib.h957 struct mlx5_pkt_reformat *pkt_reformat; member