Home
last modified time | relevance | path

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

/Linux-v6.6/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.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
579 if (!extended_dest && fte->action.pkt_reformat) { in mlx5_cmd_set_fte()
580 struct mlx5_pkt_reformat *pkt_reformat = fte->action.pkt_reformat; in mlx5_cmd_set_fte() local
582 if (pkt_reformat->owner == MLX5_FLOW_RESOURCE_OWNER_SW) { in mlx5_cmd_set_fte()
583 reformat_id = mlx5_fs_dr_action_get_pkt_reformat_id(pkt_reformat); in mlx5_cmd_set_fte()
587 pkt_reformat->reformat_type); in mlx5_cmd_set_fte()
592 reformat_id = fte->action.pkt_reformat->id; in mlx5_cmd_set_fte()
671 dst->dest_attr.vport.pkt_reformat) { in mlx5_cmd_set_fte()
678 dst->dest_attr.vport.pkt_reformat->id); in mlx5_cmd_set_fte()
[all …]
Dfs_cmd.h82 struct mlx5_pkt_reformat *pkt_reformat);
85 struct mlx5_pkt_reformat *pkt_reformat);
Den_rep.h188 struct mlx5_pkt_reformat *pkt_reformat; member
210 struct mlx5_pkt_reformat *pkt_reformat; member
Dfs_core.c1678 (d1->vport.pkt_reformat->id == in mlx5_flow_dests_cmp()
1679 d2->vport.pkt_reformat->id) : true)) || in mlx5_flow_dests_cmp()
1745 act1->pkt_reformat != act2->pkt_reformat) in check_conflicting_actions()
3642 struct mlx5_pkt_reformat *pkt_reformat; in mlx5_packet_reformat_alloc() local
3650 pkt_reformat = kzalloc(sizeof(*pkt_reformat), GFP_KERNEL); in mlx5_packet_reformat_alloc()
3651 if (!pkt_reformat) in mlx5_packet_reformat_alloc()
3654 pkt_reformat->ns_type = ns_type; in mlx5_packet_reformat_alloc()
3655 pkt_reformat->reformat_type = params->type; in mlx5_packet_reformat_alloc()
3657 pkt_reformat); in mlx5_packet_reformat_alloc()
3659 kfree(pkt_reformat); in mlx5_packet_reformat_alloc()
[all …]
Deswitch_offloads.c331 if (esw_attr->dests[esw_attr->split_count].pkt_reformat) { in esw_setup_chain_src_port_rewrite()
333 flow_act->pkt_reformat = esw_attr->dests[esw_attr->split_count].pkt_reformat; in esw_setup_chain_src_port_rewrite()
469 int attr_idx, int dest_idx, bool pkt_reformat) in esw_setup_dest_fwd_vport() argument
482 if (pkt_reformat) { in esw_setup_dest_fwd_vport()
484 flow_act->pkt_reformat = esw_attr->dests[attr_idx].pkt_reformat; in esw_setup_dest_fwd_vport()
487 dest[dest_idx].vport.pkt_reformat = esw_attr->dests[attr_idx].pkt_reformat; in esw_setup_dest_fwd_vport()
494 int attr_idx, int dest_idx, bool pkt_reformat) in esw_setup_dest_fwd_ipsec() argument
498 if (pkt_reformat && in esw_setup_dest_fwd_ipsec()
501 flow_act->pkt_reformat = esw_attr->dests[attr_idx].pkt_reformat; in esw_setup_dest_fwd_ipsec()
508 int attr_idx, int dest_idx, bool pkt_reformat) in esw_setup_vport_dest() argument
[all …]
Deswitch.h529 struct mlx5_pkt_reformat *pkt_reformat; member
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/steering/
Dfs_dr.c336 if (fte->action.pkt_reformat->owner == MLX5_FLOW_RESOURCE_OWNER_FW) { in mlx5_cmd_dr_create_fte()
342 is_decap = fte->action.pkt_reformat->reformat_type == in mlx5_cmd_dr_create_fte()
347 fte->action.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte()
400 fte->action.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte()
464 dst->dest_attr.vport.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte()
631 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_dr_packet_reformat_alloc() argument
672 pkt_reformat->owner = MLX5_FLOW_RESOURCE_OWNER_SW; in mlx5_cmd_dr_packet_reformat_alloc()
673 pkt_reformat->action.dr_action = action; in mlx5_cmd_dr_packet_reformat_alloc()
679 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_dr_packet_reformat_dealloc() argument
681 mlx5dr_action_destroy(pkt_reformat->action.dr_action); in mlx5_cmd_dr_packet_reformat_dealloc()
[all …]
Dfs_dr.h41 int mlx5_fs_dr_action_get_pkt_reformat_id(struct mlx5_pkt_reformat *pkt_reformat);
52 static inline u32 mlx5_fs_dr_action_get_pkt_reformat_id(struct mlx5_pkt_reformat *pkt_reformat) in mlx5_fs_dr_action_get_pkt_reformat_id() argument
Ddr_cmd.c844 if (fte->action.pkt_reformat) in mlx5dr_cmd_set_fte()
846 fte->action.pkt_reformat->id); in mlx5dr_cmd_set_fte()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun_encap.c163 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, in mlx5e_tc_encap_flows_add()
166 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_encap_flows_add()
168 PTR_ERR(e->pkt_reformat)); in mlx5e_tc_encap_flows_add()
182 esw_attr->dests[flow->tmp_entry_index].pkt_reformat = e->pkt_reformat; in mlx5e_tc_encap_flows_add()
233 esw_attr->dests[flow->tmp_entry_index].pkt_reformat = NULL; in mlx5e_tc_encap_flows_del()
262 mlx5_packet_reformat_dealloc(priv->mdev, e->pkt_reformat); in mlx5e_tc_encap_flows_del()
263 e->pkt_reformat = NULL; in mlx5e_tc_encap_flows_del()
464 mlx5_packet_reformat_dealloc(priv->mdev, e->pkt_reformat); in mlx5e_encap_dealloc()
478 mlx5_packet_reformat_dealloc(priv->mdev, d->pkt_reformat); in mlx5e_decap_dealloc()
921 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.6/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dbridge.c464 struct mlx5_pkt_reformat *pkt_reformat);
608 flow_act.pkt_reformat = vlan->pkt_reformat_push; in mlx5_esw_bridge_ingress_flow_with_esw_create()
772 flow_act.pkt_reformat = vlan->pkt_reformat_pop; in mlx5_esw_bridge_egress_flow_create()
805 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_esw_bridge_egress_miss_flow_create() argument
815 .pkt_reformat = pkt_reformat, in mlx5_esw_bridge_egress_miss_flow_create()
1029 struct mlx5_pkt_reformat *pkt_reformat; in mlx5_esw_bridge_vlan_push_create() local
1044 pkt_reformat = mlx5_packet_reformat_alloc(esw->dev, in mlx5_esw_bridge_vlan_push_create()
1047 if (IS_ERR(pkt_reformat)) { in mlx5_esw_bridge_vlan_push_create()
1049 PTR_ERR(pkt_reformat)); in mlx5_esw_bridge_vlan_push_create()
1050 return PTR_ERR(pkt_reformat); in mlx5_esw_bridge_vlan_push_create()
[all …]
Dbridge_mcast.c595 flow_act.pkt_reformat = vlan->pkt_reformat_pop; in mlx5_esw_bridge_mcast_vlan_flow_create()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec_fs.c1191 struct mlx5_pkt_reformat *pkt_reformat; in setup_pkt_reformat() local
1208 pkt_reformat = in setup_pkt_reformat()
1211 if (IS_ERR(pkt_reformat)) in setup_pkt_reformat()
1212 return PTR_ERR(pkt_reformat); in setup_pkt_reformat()
1214 flow_act->pkt_reformat = pkt_reformat; in setup_pkt_reformat()
1301 sa_entry->ipsec_rule.pkt_reformat = flow_act.pkt_reformat; in rx_add_rule()
1307 if (flow_act.pkt_reformat) in rx_add_rule()
1308 mlx5_packet_reformat_dealloc(mdev, flow_act.pkt_reformat); in rx_add_rule()
1396 sa_entry->ipsec_rule.pkt_reformat = flow_act.pkt_reformat; in tx_add_rule()
1402 if (flow_act.pkt_reformat) in tx_add_rule()
[all …]
Dipsec.h194 struct mlx5_pkt_reformat *pkt_reformat; member
/Linux-v6.6/include/linux/mlx5/
Dfs.h168 struct mlx5_pkt_reformat *pkt_reformat; member
266 struct mlx5_pkt_reformat *pkt_reformat; member
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dmacsec_fs.c73 struct mlx5_pkt_reformat *pkt_reformat; member
782 if (tx_rule->pkt_reformat) { in macsec_fs_tx_del_rule()
783 mlx5_packet_reformat_dealloc(macsec_fs->mdev, tx_rule->pkt_reformat); in macsec_fs_tx_del_rule()
784 tx_rule->pkt_reformat = NULL; in macsec_fs_tx_del_rule()
846 flow_act.pkt_reformat = mlx5_packet_reformat_alloc(mdev, in macsec_fs_tx_add_rule()
849 if (IS_ERR(flow_act.pkt_reformat)) { in macsec_fs_tx_add_rule()
850 err = PTR_ERR(flow_act.pkt_reformat); in macsec_fs_tx_add_rule()
854 tx_rule->pkt_reformat = flow_act.pkt_reformat; in macsec_fs_tx_add_rule()
1161 flow_act->pkt_reformat = mlx5_packet_reformat_alloc(mdev, in macsec_fs_rx_create_check_decap_rule()
1164 if (IS_ERR(flow_act->pkt_reformat)) { in macsec_fs_rx_create_check_decap_rule()
[all …]
/Linux-v6.6/drivers/infiniband/hw/mlx5/
Dfs.c173 action->pkt_reformat = in parse_flow_flow_action()
174 maction->flow_action_raw.pkt_reformat; in parse_flow_flow_action()
1695 maction->flow_action_raw.pkt_reformat); in destroy_flow_action_raw()
2633 maction->flow_action_raw.pkt_reformat = in mlx5_ib_flow_action_create_packet_reformat_ctx()
2636 if (IS_ERR(maction->flow_action_raw.pkt_reformat)) { in mlx5_ib_flow_action_create_packet_reformat_ctx()
2637 ret = PTR_ERR(maction->flow_action_raw.pkt_reformat); in mlx5_ib_flow_action_create_packet_reformat_ctx()
Dmlx5_ib.h993 struct mlx5_pkt_reformat *pkt_reformat; member