| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A 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()
|
| H A 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 609 if (!extended_dest && fte->act_dests.action.pkt_reformat) { in mlx5_cmd_set_fte() 610 struct mlx5_pkt_reformat *pkt_reformat = in mlx5_cmd_set_fte() local 611 fte->act_dests.action.pkt_reformat; in mlx5_cmd_set_fte() 613 err = mlx5_fs_get_packet_reformat_id(pkt_reformat, in mlx5_cmd_set_fte() 618 pkt_reformat->reformat_type); in mlx5_cmd_set_fte() 699 dst->dest_attr.vport.pkt_reformat) { in mlx5_cmd_set_fte() 706 dst->dest_attr.vport.pkt_reformat->id); in mlx5_cmd_set_fte() 904 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_packet_reformat_alloc() argument [all …]
|
| H A D | fs_cmd.h | 82 struct mlx5_pkt_reformat *pkt_reformat); 85 struct mlx5_pkt_reformat *pkt_reformat);
|
| H A D | en_rep.h | 188 struct mlx5_pkt_reformat *pkt_reformat; member 210 struct mlx5_pkt_reformat *pkt_reformat; member
|
| H A D | fs_core.c | 1836 int mlx5_fs_get_packet_reformat_id(struct mlx5_pkt_reformat *pkt_reformat, in mlx5_fs_get_packet_reformat_id() argument 1839 switch (pkt_reformat->owner) { in mlx5_fs_get_packet_reformat_id() 1841 *id = pkt_reformat->id; in mlx5_fs_get_packet_reformat_id() 1844 return mlx5_fs_dr_action_get_pkt_reformat_id(pkt_reformat, id); in mlx5_fs_get_packet_reformat_id() 1846 return mlx5_fs_hws_action_get_pkt_reformat_id(pkt_reformat, id); in mlx5_fs_get_packet_reformat_id() 1878 mlx5_pkt_reformat_cmp(d1->vport.pkt_reformat, in mlx5_flow_dests_cmp() 1879 d2->vport.pkt_reformat) : true)) || in mlx5_flow_dests_cmp() 1945 act1->pkt_reformat != act2->pkt_reformat) in check_conflicting_actions() 4169 struct mlx5_pkt_reformat *pkt_reformat; in mlx5_packet_reformat_alloc() local 4177 pkt_reformat = kzalloc_obj(*pkt_reformat); in mlx5_packet_reformat_alloc() [all …]
|
| H A D | eswitch_offloads.c | 332 if (esw_attr->dests[esw_attr->split_count].pkt_reformat) { in esw_setup_chain_src_port_rewrite() 334 flow_act->pkt_reformat = esw_attr->dests[esw_attr->split_count].pkt_reformat; in esw_setup_chain_src_port_rewrite() 470 int attr_idx, int dest_idx, bool pkt_reformat) in esw_setup_dest_fwd_vport() argument 483 if (pkt_reformat) { in esw_setup_dest_fwd_vport() 485 flow_act->pkt_reformat = esw_attr->dests[attr_idx].pkt_reformat; in esw_setup_dest_fwd_vport() 488 dest[dest_idx].vport.pkt_reformat = esw_attr->dests[attr_idx].pkt_reformat; in esw_setup_dest_fwd_vport() 495 int attr_idx, int dest_idx, bool pkt_reformat) in esw_setup_dest_fwd_ipsec() argument 499 if (pkt_reformat && in esw_setup_dest_fwd_ipsec() 502 flow_act->pkt_reformat = esw_attr->dests[attr_idx].pkt_reformat; in esw_setup_dest_fwd_ipsec() 509 int attr_idx, int dest_idx, bool pkt_reformat) in esw_setup_vport_dest() argument [all …]
|
| H A D | eswitch.h | 558 struct mlx5_pkt_reformat *pkt_reformat; member
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/ |
| H A D | fs_dr.c | 259 struct mlx5_pkt_reformat *pkt_reformat; in mlx5_cmd_dr_create_fte() local 334 pkt_reformat = fte->act_dests.action.pkt_reformat; in mlx5_cmd_dr_create_fte() 335 if (pkt_reformat->owner == MLX5_FLOW_RESOURCE_OWNER_FW) { in mlx5_cmd_dr_create_fte() 341 is_decap = pkt_reformat->reformat_type == in mlx5_cmd_dr_create_fte() 346 pkt_reformat->fs_dr_action.dr_action; in mlx5_cmd_dr_create_fte() 400 actions[num_actions++] = pkt_reformat->fs_dr_action.dr_action; in mlx5_cmd_dr_create_fte() 463 pkt_reformat = dst->dest_attr.vport.pkt_reformat; in mlx5_cmd_dr_create_fte() 465 pkt_reformat->fs_dr_action.dr_action; in mlx5_cmd_dr_create_fte() 635 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_dr_packet_reformat_alloc() argument 676 pkt_reformat->owner = MLX5_FLOW_RESOURCE_OWNER_SW; in mlx5_cmd_dr_packet_reformat_alloc() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
| H A D | fs_hws.c | 796 int reformat_type = fte_action->pkt_reformat->reformat_type; in mlx5_fs_fte_get_hws_actions() 798 if (fte_action->pkt_reformat->owner == MLX5_FLOW_RESOURCE_OWNER_FW) { in mlx5_fs_fte_get_hws_actions() 805 pr_data = fte_action->pkt_reformat->fs_hws_action.pr_data; in mlx5_fs_fte_get_hws_actions() 810 fte_action->pkt_reformat->fs_hws_action.hws_action; in mlx5_fs_fte_get_hws_actions() 813 fte_action->pkt_reformat->fs_hws_action.hws_action; in mlx5_fs_fte_get_hws_actions() 868 pr_data = fte_action->pkt_reformat->fs_hws_action.pr_data; in mlx5_fs_fte_get_hws_actions() 872 fte_action->pkt_reformat->fs_hws_action.hws_action; in mlx5_fs_fte_get_hws_actions() 1270 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_hws_packet_reformat_alloc() argument 1350 pkt_reformat->fs_hws_action.pr_data = pr_data; in mlx5_cmd_hws_packet_reformat_alloc() 1353 mutex_init(&pkt_reformat->fs_hws_action.lock); in mlx5_cmd_hws_packet_reformat_alloc() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | tc_tun_encap.c | 171 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, in mlx5e_tc_encap_flows_add() 174 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_encap_flows_add() 176 e->pkt_reformat); in mlx5e_tc_encap_flows_add() 190 esw_attr->dests[flow->tmp_entry_index].pkt_reformat = e->pkt_reformat; in mlx5e_tc_encap_flows_add() 241 esw_attr->dests[flow->tmp_entry_index].pkt_reformat = NULL; in mlx5e_tc_encap_flows_del() 270 mlx5_packet_reformat_dealloc(priv->mdev, e->pkt_reformat); in mlx5e_tc_encap_flows_del() 271 e->pkt_reformat = NULL; in mlx5e_tc_encap_flows_del() 472 mlx5_packet_reformat_dealloc(priv->mdev, e->pkt_reformat); in mlx5e_encap_dealloc() 486 mlx5_packet_reformat_dealloc(priv->mdev, d->pkt_reformat); in mlx5e_decap_dealloc() 927 attr->esw_attr->dests[out_index].pkt_reformat = e->pkt_reformat; in mlx5e_attach_encap() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
| H A D | bridge.c | 465 struct mlx5_pkt_reformat *pkt_reformat); 610 flow_act.pkt_reformat = vlan->pkt_reformat_push; in mlx5_esw_bridge_ingress_flow_with_esw_create() 776 flow_act.pkt_reformat = vlan->pkt_reformat_pop; in mlx5_esw_bridge_egress_flow_create() 809 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_esw_bridge_egress_miss_flow_create() argument 819 .pkt_reformat = pkt_reformat, in mlx5_esw_bridge_egress_miss_flow_create() 1033 struct mlx5_pkt_reformat *pkt_reformat; in mlx5_esw_bridge_vlan_push_create() local 1048 pkt_reformat = mlx5_packet_reformat_alloc(esw->dev, in mlx5_esw_bridge_vlan_push_create() 1051 if (IS_ERR(pkt_reformat)) { in mlx5_esw_bridge_vlan_push_create() 1053 pkt_reformat); in mlx5_esw_bridge_vlan_push_create() 1054 return PTR_ERR(pkt_reformat); in mlx5_esw_bridge_vlan_push_create() [all …]
|
| H A D | bridge_mcast.c | 595 flow_act.pkt_reformat = vlan->pkt_reformat_pop; in mlx5_esw_bridge_mcast_vlan_flow_create()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | macsec_fs.c | 69 struct mlx5_pkt_reformat *pkt_reformat; member 778 if (tx_rule->pkt_reformat) { in macsec_fs_tx_del_rule() 779 mlx5_packet_reformat_dealloc(macsec_fs->mdev, tx_rule->pkt_reformat); in macsec_fs_tx_del_rule() 780 tx_rule->pkt_reformat = NULL; in macsec_fs_tx_del_rule() 842 flow_act.pkt_reformat = mlx5_packet_reformat_alloc(mdev, in macsec_fs_tx_add_rule() 845 if (IS_ERR(flow_act.pkt_reformat)) { in macsec_fs_tx_add_rule() 846 err = PTR_ERR(flow_act.pkt_reformat); in macsec_fs_tx_add_rule() 850 tx_rule->pkt_reformat = flow_act.pkt_reformat; in macsec_fs_tx_add_rule() 1157 flow_act->pkt_reformat = mlx5_packet_reformat_alloc(mdev, in macsec_fs_rx_create_check_decap_rule() 1160 if (IS_ERR(flow_act->pkt_reformat)) { in macsec_fs_rx_create_check_decap_rule() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| H A D | ipsec_fs.c | 1925 struct mlx5_pkt_reformat *pkt_reformat; in setup_pkt_reformat() local 1942 pkt_reformat = in setup_pkt_reformat() 1945 if (IS_ERR(pkt_reformat)) in setup_pkt_reformat() 1946 return PTR_ERR(pkt_reformat); in setup_pkt_reformat() 1948 flow_act->pkt_reformat = pkt_reformat; in setup_pkt_reformat() 2132 sa_entry->ipsec_rule.pkt_reformat = flow_act.pkt_reformat; in rx_add_rule() 2150 if (flow_act.pkt_reformat) in rx_add_rule() 2151 mlx5_packet_reformat_dealloc(mdev, flow_act.pkt_reformat); in rx_add_rule() 2238 sa_entry->ipsec_rule.pkt_reformat = flow_act.pkt_reformat; in tx_add_rule() 2244 if (flow_act.pkt_reformat) in tx_add_rule() [all …]
|
| H A D | ipsec.h | 213 struct mlx5_pkt_reformat *pkt_reformat; member
|
| /linux/include/linux/mlx5/ |
| H A D | fs.h | 195 struct mlx5_pkt_reformat *pkt_reformat; member 296 struct mlx5_pkt_reformat *pkt_reformat; member
|
| /linux/drivers/infiniband/hw/mlx5/ |
| H A D | fs.c | 179 action->pkt_reformat = in parse_flow_flow_action() 180 maction->flow_action_raw.pkt_reformat; in parse_flow_flow_action() 2235 maction->flow_action_raw.pkt_reformat); in destroy_flow_action_raw() 3223 maction->flow_action_raw.pkt_reformat = in mlx5_ib_flow_action_create_packet_reformat_ctx() 3226 if (IS_ERR(maction->flow_action_raw.pkt_reformat)) { in mlx5_ib_flow_action_create_packet_reformat_ctx() 3227 ret = PTR_ERR(maction->flow_action_raw.pkt_reformat); in mlx5_ib_flow_action_create_packet_reformat_ctx()
|