Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/
A 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()
291 term_tbl_act.pkt_reformat = attr->dests[num_vport_dests].pkt_reformat; in mlx5_eswitch_add_termtbl_rule()
294 term_tbl_act.pkt_reformat = NULL; in mlx5_eswitch_add_termtbl_rule()
319 flow_act->pkt_reformat = NULL; in mlx5_eswitch_add_termtbl_rule()
A Dfs_cmd.h82 struct mlx5_pkt_reformat *pkt_reformat);
85 struct mlx5_pkt_reformat *pkt_reformat);
A 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
565 if (fte->action.pkt_reformat) in mlx5_cmd_set_fte()
567 fte->action.pkt_reformat->id); in mlx5_cmd_set_fte()
635 dst->dest_attr.vport.pkt_reformat) { in mlx5_cmd_set_fte()
642 dst->dest_attr.vport.pkt_reformat->id); in mlx5_cmd_set_fte()
836 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_packet_reformat_alloc() argument
886 pkt_reformat->id = MLX5_GET(alloc_packet_reformat_context_out, in mlx5_cmd_packet_reformat_alloc()
893 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_packet_reformat_dealloc() argument
901 pkt_reformat->id); in mlx5_cmd_packet_reformat_dealloc()
A Den_rep.h187 struct mlx5_pkt_reformat *pkt_reformat; member
209 struct mlx5_pkt_reformat *pkt_reformat; member
A Dfs_core.c1601 (d1->vport.pkt_reformat->id == in mlx5_flow_dests_cmp()
1668 act1->pkt_reformat != act2->pkt_reformat) in check_conflicting_actions()
3537 struct mlx5_pkt_reformat *pkt_reformat; in mlx5_packet_reformat_alloc() local
3545 pkt_reformat = kzalloc(sizeof(*pkt_reformat), GFP_KERNEL); in mlx5_packet_reformat_alloc()
3546 if (!pkt_reformat) in mlx5_packet_reformat_alloc()
3549 pkt_reformat->ns_type = ns_type; in mlx5_packet_reformat_alloc()
3550 pkt_reformat->reformat_type = params->type; in mlx5_packet_reformat_alloc()
3552 pkt_reformat); in mlx5_packet_reformat_alloc()
3554 kfree(pkt_reformat); in mlx5_packet_reformat_alloc()
3558 return pkt_reformat; in mlx5_packet_reformat_alloc()
[all …]
A Deswitch_offloads.c338 if (esw_attr->dests[esw_attr->split_count].pkt_reformat) { in esw_setup_chain_src_port_rewrite()
340 flow_act->pkt_reformat = esw_attr->dests[esw_attr->split_count].pkt_reformat; in esw_setup_chain_src_port_rewrite()
437 int attr_idx, int dest_idx, bool pkt_reformat) in esw_setup_vport_dest() argument
450 if (pkt_reformat) { in esw_setup_vport_dest()
452 flow_act->pkt_reformat = esw_attr->dests[attr_idx].pkt_reformat; in esw_setup_vport_dest()
455 dest[dest_idx].vport.pkt_reformat = esw_attr->dests[attr_idx].pkt_reformat; in esw_setup_vport_dest()
615 flow_act.pkt_reformat = esw_attr->decap_pkt_reformat; in mlx5_eswitch_add_offloaded_rule()
A Deswitch.h487 struct mlx5_pkt_reformat *pkt_reformat; member
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
A Dipsec_fs.c569 struct mlx5_pkt_reformat *pkt_reformat; in setup_pkt_reformat() local
595 pkt_reformat = in setup_pkt_reformat()
597 if (IS_ERR(pkt_reformat)) in setup_pkt_reformat()
598 return PTR_ERR(pkt_reformat); in setup_pkt_reformat()
600 flow_act->pkt_reformat = pkt_reformat; in setup_pkt_reformat()
668 sa_entry->ipsec_rule.pkt_reformat = flow_act.pkt_reformat; in rx_add_rule()
672 if (flow_act.pkt_reformat) in rx_add_rule()
673 mlx5_packet_reformat_dealloc(mdev, flow_act.pkt_reformat); in rx_add_rule()
746 sa_entry->ipsec_rule.pkt_reformat = flow_act.pkt_reformat; in tx_add_rule()
750 if (flow_act.pkt_reformat) in tx_add_rule()
[all …]
A Dmacsec_fs.c55 struct mlx5_pkt_reformat *pkt_reformat; member
498 if (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()
845 err = PTR_ERR(flow_act->pkt_reformat); in macsec_fs_rx_create_check_decap_rule()
[all …]
A Dipsec.h163 struct mlx5_pkt_reformat *pkt_reformat; member
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/en/
A 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()
262 e->pkt_reformat = NULL; in mlx5e_tc_encap_flows_del()
887 attr->esw_attr->dests[out_index].pkt_reformat = e->pkt_reformat; in mlx5e_attach_encap()
962 if (IS_ERR(d->pkt_reformat)) { in mlx5e_attach_decap()
963 err = PTR_ERR(d->pkt_reformat); in mlx5e_attach_decap()
973 attr->decap_pkt_reformat = d->pkt_reformat; in mlx5e_attach_decap()
1365 e->pkt_reformat = NULL; in mlx5e_invalidate_encap()
[all …]
A 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()
692 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_tun_update_header_ipv6()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/steering/
A Dfs_dr.c334 bool is_decap = fte->action.pkt_reformat->reformat_type == in mlx5_cmd_dr_create_fte()
339 fte->action.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte()
392 fte->action.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte()
456 dst->dest_attr.vport.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte()
623 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_dr_packet_reformat_alloc() argument
664 pkt_reformat->action.dr_action = action; in mlx5_cmd_dr_packet_reformat_alloc()
670 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_dr_packet_reformat_dealloc() argument
672 mlx5dr_action_destroy(pkt_reformat->action.dr_action); in mlx5_cmd_dr_packet_reformat_dealloc()
A Ddr_cmd.c779 if (fte->action.pkt_reformat) in mlx5dr_cmd_set_fte()
781 fte->action.pkt_reformat->id); in mlx5dr_cmd_set_fte()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/esw/
A Dbridge.c887 .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
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()
1102 vlan->pkt_reformat_push = pkt_reformat; in mlx5_esw_bridge_vlan_push_create()
1116 struct mlx5_pkt_reformat *pkt_reformat; in mlx5_esw_bridge_vlan_pop_create() local
1124 if (IS_ERR(pkt_reformat)) { in mlx5_esw_bridge_vlan_pop_create()
1126 PTR_ERR(pkt_reformat)); in mlx5_esw_bridge_vlan_pop_create()
1127 return PTR_ERR(pkt_reformat); in mlx5_esw_bridge_vlan_pop_create()
[all …]
/linux-6.3-rc2/include/linux/mlx5/
A Dfs.h164 struct mlx5_pkt_reformat *pkt_reformat; member
262 struct mlx5_pkt_reformat *pkt_reformat; member
/linux-6.3-rc2/drivers/infiniband/hw/mlx5/
A Dfs.c173 action->pkt_reformat = in parse_flow_flow_action()
174 maction->flow_action_raw.pkt_reformat; in parse_flow_flow_action()
1697 maction->flow_action_raw.pkt_reformat); in destroy_flow_action_raw()
2371 maction->flow_action_raw.pkt_reformat = in mlx5_ib_flow_action_create_packet_reformat_ctx()
2374 if (IS_ERR(maction->flow_action_raw.pkt_reformat)) { in mlx5_ib_flow_action_create_packet_reformat_ctx()
2375 ret = PTR_ERR(maction->flow_action_raw.pkt_reformat); in mlx5_ib_flow_action_create_packet_reformat_ctx()
A Dmlx5_ib.h977 struct mlx5_pkt_reformat *pkt_reformat; member

Completed in 58 milliseconds