Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/
H 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()
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 Dfs_cmd.h82 struct mlx5_pkt_reformat *pkt_reformat);
85 struct mlx5_pkt_reformat *pkt_reformat);
H A Den_rep.h188 struct mlx5_pkt_reformat *pkt_reformat; member
210 struct mlx5_pkt_reformat *pkt_reformat; member
H A Dfs_core.c1854 mlx5_pkt_reformat_cmp(d1->vport.pkt_reformat, in mlx5_flow_dests_cmp()
1855 d2->vport.pkt_reformat) : true)) || in mlx5_flow_dests_cmp()
1921 act1->pkt_reformat != act2->pkt_reformat) in check_conflicting_actions()
3908 struct mlx5_pkt_reformat *pkt_reformat; in mlx5_packet_reformat_alloc() local
3916 pkt_reformat = kzalloc(sizeof(*pkt_reformat), GFP_KERNEL); in mlx5_packet_reformat_alloc()
3917 if (!pkt_reformat) in mlx5_packet_reformat_alloc()
3920 pkt_reformat->ns_type = ns_type; in mlx5_packet_reformat_alloc()
3921 pkt_reformat->reformat_type = params->type; in mlx5_packet_reformat_alloc()
3923 pkt_reformat); in mlx5_packet_reformat_alloc()
3925 kfree(pkt_reformat); in mlx5_packet_reformat_alloc()
[all …]
H A 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 …]
H A Deswitch.h530 struct mlx5_pkt_reformat *pkt_reformat; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun_encap.c172 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, in mlx5e_tc_encap_flows_add()
175 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_encap_flows_add()
177 PTR_ERR(e->pkt_reformat)); in mlx5e_tc_encap_flows_add()
191 esw_attr->dests[flow->tmp_entry_index].pkt_reformat = e->pkt_reformat; in mlx5e_tc_encap_flows_add()
242 esw_attr->dests[flow->tmp_entry_index].pkt_reformat = NULL; in mlx5e_tc_encap_flows_del()
271 mlx5_packet_reformat_dealloc(priv->mdev, e->pkt_reformat); in mlx5e_tc_encap_flows_del()
272 e->pkt_reformat = NULL; in mlx5e_tc_encap_flows_del()
473 mlx5_packet_reformat_dealloc(priv->mdev, e->pkt_reformat); in mlx5e_encap_dealloc()
487 mlx5_packet_reformat_dealloc(priv->mdev, d->pkt_reformat); in mlx5e_decap_dealloc()
930 attr->esw_attr->dests[out_index].pkt_reformat = e->pkt_reformat; in mlx5e_attach_encap()
[all …]
H A Dtc_tun.c319 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, &reformat_params, in mlx5e_tc_tun_create_header_ipv4()
321 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_tun_create_header_ipv4()
322 err = PTR_ERR(e->pkt_reformat); in mlx5e_tc_tun_create_header_ipv4()
425 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, &reformat_params, in mlx5e_tc_tun_update_header_ipv4()
427 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_tun_update_header_ipv4()
428 err = PTR_ERR(e->pkt_reformat); in mlx5e_tc_tun_update_header_ipv4()
589 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, &reformat_params, in mlx5e_tc_tun_create_header_ipv6()
591 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_tun_create_header_ipv6()
592 err = PTR_ERR(e->pkt_reformat); in mlx5e_tc_tun_create_header_ipv6()
694 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, &reformat_params, in mlx5e_tc_tun_update_header_ipv6()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_fs.c1551 struct mlx5_pkt_reformat *pkt_reformat; in setup_pkt_reformat() local
1568 pkt_reformat = in setup_pkt_reformat()
1571 if (IS_ERR(pkt_reformat)) in setup_pkt_reformat()
1572 return PTR_ERR(pkt_reformat); in setup_pkt_reformat()
1574 flow_act->pkt_reformat = pkt_reformat; in setup_pkt_reformat()
1673 sa_entry->ipsec_rule.pkt_reformat = flow_act.pkt_reformat; in rx_add_rule()
1686 if (flow_act.pkt_reformat) in rx_add_rule()
1687 mlx5_packet_reformat_dealloc(mdev, flow_act.pkt_reformat); in rx_add_rule()
1774 sa_entry->ipsec_rule.pkt_reformat = flow_act.pkt_reformat; in tx_add_rule()
1780 if (flow_act.pkt_reformat) in tx_add_rule()
[all …]
H A Dipsec.h199 struct mlx5_pkt_reformat *pkt_reformat; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dbridge_mcast.c595 flow_act.pkt_reformat = vlan->pkt_reformat_pop; in mlx5_esw_bridge_mcast_vlan_flow_create()