Searched refs:pkt_reformat (Results 1 – 12 of 12) sorted by relevance
| /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.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 | 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/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
|