Home
last modified time | relevance | path

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

/linux/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()
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()
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
582 struct mlx5_pkt_reformat *pkt_reformat = fte->act_dests.action.pkt_reformat; in mlx5_cmd_set_fte() local
589 pkt_reformat->reformat_type); in mlx5_cmd_set_fte()
594 reformat_id = fte->act_dests.action.pkt_reformat->id; in mlx5_cmd_set_fte()
673 dst->dest_attr.vport.pkt_reformat) { in mlx5_cmd_set_fte()
680 dst->dest_attr.vport.pkt_reformat->id); in mlx5_cmd_set_fte()
874 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_packet_reformat_alloc() argument
926 pkt_reformat->owner = MLX5_FLOW_RESOURCE_OWNER_FW; in mlx5_cmd_packet_reformat_alloc()
933 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_packet_reformat_dealloc() argument
[all …]
A Dfs_cmd.h82 struct mlx5_pkt_reformat *pkt_reformat);
85 struct mlx5_pkt_reformat *pkt_reformat);
A Den_rep.h188 struct mlx5_pkt_reformat *pkt_reformat; member
210 struct mlx5_pkt_reformat *pkt_reformat; member
A Dfs_core.c1848 d2->vport.pkt_reformat) : true)) || in mlx5_flow_dests_cmp()
1914 act1->pkt_reformat != act2->pkt_reformat) in check_conflicting_actions()
3882 struct mlx5_pkt_reformat *pkt_reformat; in mlx5_packet_reformat_alloc() local
3890 pkt_reformat = kzalloc(sizeof(*pkt_reformat), GFP_KERNEL); in mlx5_packet_reformat_alloc()
3891 if (!pkt_reformat) in mlx5_packet_reformat_alloc()
3894 pkt_reformat->ns_type = ns_type; in mlx5_packet_reformat_alloc()
3895 pkt_reformat->reformat_type = params->type; in mlx5_packet_reformat_alloc()
3897 pkt_reformat); in mlx5_packet_reformat_alloc()
3899 kfree(pkt_reformat); in mlx5_packet_reformat_alloc()
3903 return pkt_reformat; in mlx5_packet_reformat_alloc()
[all …]
A Deswitch_offloads.c336 flow_act->pkt_reformat = esw_attr->dests[esw_attr->split_count].pkt_reformat; in esw_setup_chain_src_port_rewrite()
472 int attr_idx, int dest_idx, bool pkt_reformat) in esw_setup_dest_fwd_vport() argument
485 if (pkt_reformat) { in esw_setup_dest_fwd_vport()
487 flow_act->pkt_reformat = esw_attr->dests[attr_idx].pkt_reformat; in esw_setup_dest_fwd_vport()
490 dest[dest_idx].vport.pkt_reformat = esw_attr->dests[attr_idx].pkt_reformat; in esw_setup_dest_fwd_vport()
497 int attr_idx, int dest_idx, bool pkt_reformat) in esw_setup_dest_fwd_ipsec() argument
501 if (pkt_reformat && in esw_setup_dest_fwd_ipsec()
504 flow_act->pkt_reformat = esw_attr->dests[attr_idx].pkt_reformat; in esw_setup_dest_fwd_ipsec()
511 int attr_idx, int dest_idx, bool pkt_reformat) in esw_setup_vport_dest() argument
515 attr_idx, dest_idx, pkt_reformat); in esw_setup_vport_dest()
[all …]
A Deswitch.h532 struct mlx5_pkt_reformat *pkt_reformat; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/
A Dfs_dr.c341 is_decap = fte->act_dests.action.pkt_reformat->reformat_type == in mlx5_cmd_dr_create_fte()
346 fte->act_dests.action.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte()
399 fte->act_dests.action.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte()
463 dst->dest_attr.vport.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte()
632 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_dr_packet_reformat_alloc() argument
673 pkt_reformat->owner = MLX5_FLOW_RESOURCE_OWNER_SW; in mlx5_cmd_dr_packet_reformat_alloc()
674 pkt_reformat->action.dr_action = action; in mlx5_cmd_dr_packet_reformat_alloc()
680 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_dr_packet_reformat_dealloc() argument
682 mlx5dr_action_destroy(pkt_reformat->action.dr_action); in mlx5_cmd_dr_packet_reformat_dealloc()
833 switch (pkt_reformat->reformat_type) { in mlx5_fs_dr_action_get_pkt_reformat_id()
[all …]
A 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
A 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/drivers/net/ethernet/mellanox/mlx5/core/en/
A 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()
263 e->pkt_reformat = NULL; in mlx5e_tc_encap_flows_del()
921 attr->esw_attr->dests[out_index].pkt_reformat = e->pkt_reformat; in mlx5e_attach_encap()
993 if (IS_ERR(d->pkt_reformat)) { in mlx5e_attach_decap()
994 err = PTR_ERR(d->pkt_reformat); in mlx5e_attach_decap()
1004 attr->decap_pkt_reformat = d->pkt_reformat; in mlx5e_attach_decap()
1485 e->pkt_reformat = NULL; in mlx5e_invalidate_encap()
[all …]
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()
696 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_tun_update_header_ipv6()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
A Dbridge.c815 .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
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()
1053 vlan->pkt_reformat_push = pkt_reformat; in mlx5_esw_bridge_vlan_push_create()
1067 struct mlx5_pkt_reformat *pkt_reformat; in mlx5_esw_bridge_vlan_pop_create() local
1075 if (IS_ERR(pkt_reformat)) { in mlx5_esw_bridge_vlan_pop_create()
1077 PTR_ERR(pkt_reformat)); in mlx5_esw_bridge_vlan_pop_create()
1078 return PTR_ERR(pkt_reformat); in mlx5_esw_bridge_vlan_pop_create()
[all …]
A Dbridge_mcast.c595 flow_act.pkt_reformat = vlan->pkt_reformat_pop; in mlx5_esw_bridge_mcast_vlan_flow_create()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
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()
1776 sa_entry->ipsec_rule.pkt_reformat = flow_act.pkt_reformat; in tx_add_rule()
1782 if (flow_act.pkt_reformat) in tx_add_rule()
[all …]
A Dipsec.h199 struct mlx5_pkt_reformat *pkt_reformat; member
/linux/include/linux/mlx5/
A Dfs.h170 struct mlx5_pkt_reformat *pkt_reformat; member
268 struct mlx5_pkt_reformat *pkt_reformat; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
A Dmacsec_fs.c73 struct mlx5_pkt_reformat *pkt_reformat; member
782 if (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()
1165 err = PTR_ERR(flow_act->pkt_reformat); in macsec_fs_rx_create_check_decap_rule()
[all …]
/linux/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()
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()
A Dmlx5_ib.h1026 struct mlx5_pkt_reformat *pkt_reformat; member

Completed in 87 milliseconds