Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx5/core/
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()
267 term_tbl_act.pkt_reformat = attr->dests[num_vport_dests].pkt_reformat; in mlx5_eswitch_add_termtbl_rule()
270 term_tbl_act.pkt_reformat = NULL; in mlx5_eswitch_add_termtbl_rule()
295 flow_act->pkt_reformat = NULL; in mlx5_eswitch_add_termtbl_rule()
Dfs_cmd.c116 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_stub_packet_reformat_alloc() argument
122 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_stub_packet_reformat_dealloc() argument
522 if (fte->action.pkt_reformat) in mlx5_cmd_set_fte()
524 fte->action.pkt_reformat->id); in mlx5_cmd_set_fte()
576 dst->dest_attr.vport.pkt_reformat) { in mlx5_cmd_set_fte()
583 dst->dest_attr.vport.pkt_reformat->id); in mlx5_cmd_set_fte()
760 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_packet_reformat_alloc() argument
809 pkt_reformat->id = MLX5_GET(alloc_packet_reformat_context_out, in mlx5_cmd_packet_reformat_alloc()
816 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_packet_reformat_dealloc() argument
824 pkt_reformat->id); in mlx5_cmd_packet_reformat_dealloc()
Dfs_cmd.h82 struct mlx5_pkt_reformat *pkt_reformat);
85 struct mlx5_pkt_reformat *pkt_reformat);
Den_rep.h178 struct mlx5_pkt_reformat *pkt_reformat; member
193 struct mlx5_pkt_reformat *pkt_reformat; member
Dfs_core.c1558 (d1->vport.pkt_reformat->id == in mlx5_flow_dests_cmp()
1559 d2->vport.pkt_reformat->id) : true)) || in mlx5_flow_dests_cmp()
1619 act1->pkt_reformat != act2->pkt_reformat) in check_conflicting_actions()
3283 struct mlx5_pkt_reformat *pkt_reformat; in mlx5_packet_reformat_alloc() local
3291 pkt_reformat = kzalloc(sizeof(*pkt_reformat), GFP_KERNEL); in mlx5_packet_reformat_alloc()
3292 if (!pkt_reformat) in mlx5_packet_reformat_alloc()
3295 pkt_reformat->ns_type = ns_type; in mlx5_packet_reformat_alloc()
3296 pkt_reformat->reformat_type = params->type; in mlx5_packet_reformat_alloc()
3298 pkt_reformat); in mlx5_packet_reformat_alloc()
3300 kfree(pkt_reformat); in mlx5_packet_reformat_alloc()
[all …]
Deswitch_offloads.c294 flow_act->pkt_reformat = esw_attr->dests[j].pkt_reformat; in esw_setup_chain_src_port_rewrite()
382 int attr_idx, int dest_idx, bool pkt_reformat) in esw_setup_vport_dest() argument
392 if (pkt_reformat) { in esw_setup_vport_dest()
394 flow_act->pkt_reformat = esw_attr->dests[attr_idx].pkt_reformat; in esw_setup_vport_dest()
397 dest[dest_idx].vport.pkt_reformat = esw_attr->dests[attr_idx].pkt_reformat; in esw_setup_vport_dest()
527 flow_act.pkt_reformat = esw_attr->decap_pkt_reformat; in mlx5_eswitch_add_offloaded_rule()
Deswitch.h467 struct mlx5_pkt_reformat *pkt_reformat; member
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun.c312 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, &reformat_params, in mlx5e_tc_tun_create_header_ipv4()
314 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_tun_create_header_ipv4()
315 err = PTR_ERR(e->pkt_reformat); in mlx5e_tc_tun_create_header_ipv4()
417 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, &reformat_params, in mlx5e_tc_tun_update_header_ipv4()
419 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_tun_update_header_ipv4()
420 err = PTR_ERR(e->pkt_reformat); in mlx5e_tc_tun_update_header_ipv4()
577 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, &reformat_params, in mlx5e_tc_tun_create_header_ipv6()
579 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_tun_create_header_ipv6()
580 err = PTR_ERR(e->pkt_reformat); in mlx5e_tc_tun_create_header_ipv6()
681 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, &reformat_params, in mlx5e_tc_tun_update_header_ipv6()
[all …]
Dtc_tun_encap.c138 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, in mlx5e_tc_encap_flows_add()
141 if (IS_ERR(e->pkt_reformat)) { in mlx5e_tc_encap_flows_add()
143 PTR_ERR(e->pkt_reformat)); in mlx5e_tc_encap_flows_add()
156 esw_attr->dests[flow->tmp_entry_index].pkt_reformat = e->pkt_reformat; in mlx5e_tc_encap_flows_add()
224 mlx5_packet_reformat_dealloc(priv->mdev, e->pkt_reformat); in mlx5e_tc_encap_flows_del()
425 mlx5_packet_reformat_dealloc(priv->mdev, e->pkt_reformat); in mlx5e_encap_dealloc()
439 mlx5_packet_reformat_dealloc(priv->mdev, d->pkt_reformat); in mlx5e_decap_dealloc()
830 attr->esw_attr->dests[out_index].pkt_reformat = e->pkt_reformat; in mlx5e_attach_encap()
905 d->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, in mlx5e_attach_decap()
908 if (IS_ERR(d->pkt_reformat)) { in mlx5e_attach_decap()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/steering/
Dfs_dr.c306 bool is_decap = fte->action.pkt_reformat->reformat_type == in mlx5_cmd_dr_create_fte()
311 fte->action.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte()
364 fte->action.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte()
425 dst->dest_attr.vport.pkt_reformat->action.dr_action; in mlx5_cmd_dr_create_fte()
547 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_dr_packet_reformat_alloc() argument
588 pkt_reformat->action.dr_action = action; in mlx5_cmd_dr_packet_reformat_alloc()
594 struct mlx5_pkt_reformat *pkt_reformat) in mlx5_cmd_dr_packet_reformat_dealloc() argument
596 mlx5dr_action_destroy(pkt_reformat->action.dr_action); in mlx5_cmd_dr_packet_reformat_dealloc()
Ddr_cmd.c686 if (fte->action.pkt_reformat) in mlx5dr_cmd_set_fte()
688 fte->action.pkt_reformat->id); in mlx5dr_cmd_set_fte()
/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dbridge.c447 flow_act.pkt_reformat = vlan->pkt_reformat_push; in mlx5_esw_bridge_ingress_flow_with_esw_create()
579 flow_act.pkt_reformat = vlan->pkt_reformat_pop; in mlx5_esw_bridge_egress_flow_create()
763 struct mlx5_pkt_reformat *pkt_reformat; in mlx5_esw_bridge_vlan_push_create() local
778 pkt_reformat = mlx5_packet_reformat_alloc(esw->dev, in mlx5_esw_bridge_vlan_push_create()
781 if (IS_ERR(pkt_reformat)) { in mlx5_esw_bridge_vlan_push_create()
783 PTR_ERR(pkt_reformat)); in mlx5_esw_bridge_vlan_push_create()
784 return PTR_ERR(pkt_reformat); in mlx5_esw_bridge_vlan_push_create()
787 vlan->pkt_reformat_push = pkt_reformat; in mlx5_esw_bridge_vlan_push_create()
802 struct mlx5_pkt_reformat *pkt_reformat; in mlx5_esw_bridge_vlan_pop_create() local
816 pkt_reformat = mlx5_packet_reformat_alloc(esw->dev, in mlx5_esw_bridge_vlan_pop_create()
[all …]
/drivers/infiniband/hw/mlx5/
Dfs.c183 action->pkt_reformat = in parse_flow_flow_action()
184 maction->flow_action_raw.pkt_reformat; in parse_flow_flow_action()
1708 maction->flow_action_raw.pkt_reformat); in destroy_flow_action_raw()
2303 maction->flow_action_raw.pkt_reformat = in mlx5_ib_flow_action_create_packet_reformat_ctx()
2306 if (IS_ERR(maction->flow_action_raw.pkt_reformat)) { in mlx5_ib_flow_action_create_packet_reformat_ctx()
2307 ret = PTR_ERR(maction->flow_action_raw.pkt_reformat); in mlx5_ib_flow_action_create_packet_reformat_ctx()
Dmlx5_ib.h950 struct mlx5_pkt_reformat *pkt_reformat; member