Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
A Dipsec_fs.c58 struct mlx5_modify_hdr *modify_hdr; in rx_err_add_rule() local
78 if (IS_ERR(modify_hdr)) { in rx_err_add_rule()
79 err = PTR_ERR(modify_hdr); in rx_err_add_rule()
88 flow_act.modify_hdr = modify_hdr; in rx_err_add_rule()
98 rx_err->copy_modify_hdr = modify_hdr; in rx_err_add_rule()
502 if (IS_ERR(modify_hdr)) { in rx_add_rule()
503 err = PTR_ERR(modify_hdr); in rx_add_rule()
506 modify_hdr = NULL; in rx_add_rule()
514 flow_act.modify_hdr = modify_hdr; in rx_add_rule()
525 ipsec_rule->set_modify_hdr = modify_hdr; in rx_add_rule()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dmod_hdr.c20 struct mlx5_modify_hdr *modify_hdr; member
117 mh->modify_hdr = mlx5_modify_header_alloc(mdev, namespace, in mlx5e_mod_hdr_attach()
120 if (IS_ERR(mh->modify_hdr)) { in mlx5e_mod_hdr_attach()
121 err = PTR_ERR(mh->modify_hdr); in mlx5e_mod_hdr_attach()
148 mlx5_modify_header_dealloc(mdev, mh->modify_hdr); in mlx5e_mod_hdr_detach()
155 return mh->modify_hdr; in mlx5e_mod_hdr_get()
A Dtc_ct.c82 struct mlx5_modify_hdr *modify_hdr; member
691 if (IS_ERR(attr->modify_hdr)) { in mlx5_tc_ct_entry_create_mod_hdr()
692 err = PTR_ERR(attr->modify_hdr); in mlx5_tc_ct_entry_create_mod_hdr()
706 attr->modify_hdr = mlx5e_mod_hdr_get(*mh); in mlx5_tc_ct_entry_create_mod_hdr()
726 mlx5_modify_header_dealloc(ct_priv->dev, attr->modify_hdr); in mlx5_tc_ct_entry_destroy_mod_hdr()
1428 pre_ct->modify_hdr = mod_hdr; in tc_ct_pre_ct_add_rules()
1433 flow_act.modify_hdr = mod_hdr; in tc_ct_pre_ct_add_rules()
1470 mlx5_modify_header_dealloc(dev, pre_ct->modify_hdr); in tc_ct_pre_ct_add_rules()
1486 mlx5_modify_header_dealloc(dev, pre_ct->modify_hdr); in tc_ct_pre_ct_del_rules()
1854 pre_ct_attr->modify_hdr = mod_hdr; in __mlx5_tc_ct_flow_offload()
[all …]
A Dtc_tun_encap.c1326 mlx5_modify_header_dealloc(priv->mdev, attr->modify_hdr); in mlx5e_invalidate_encap()
1327 attr->modify_hdr = NULL; in mlx5e_invalidate_encap()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
A Dsample.c53 struct mlx5_modify_hdr *modify_hdr; member
236 struct mlx5_modify_hdr *modify_hdr; in sample_modify_hdr_get() local
253 if (IS_ERR(modify_hdr)) { in sample_modify_hdr_get()
254 err = PTR_ERR(modify_hdr); in sample_modify_hdr_get()
259 return modify_hdr; in sample_modify_hdr_get()
288 struct mlx5_modify_hdr *modify_hdr; in sample_restore_get() local
307 if (IS_ERR(modify_hdr)) { in sample_restore_get()
308 err = PTR_ERR(modify_hdr); in sample_restore_get()
311 restore->modify_hdr = modify_hdr; in sample_restore_get()
326 mlx5_modify_header_dealloc(mdev, restore->modify_hdr); in sample_restore_get()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Dfs_cmd.h90 struct mlx5_modify_hdr *modify_hdr);
93 struct mlx5_modify_hdr *modify_hdr);
A Dfs_cmd.c129 struct mlx5_modify_hdr *modify_hdr) in mlx5_cmd_stub_modify_header_alloc() argument
135 struct mlx5_modify_hdr *modify_hdr) in mlx5_cmd_stub_modify_header_dealloc() argument
540 if (fte->action.modify_hdr) in mlx5_cmd_set_fte()
542 fte->action.modify_hdr->id); in mlx5_cmd_set_fte()
852 struct mlx5_modify_hdr *modify_hdr) in mlx5_cmd_modify_header_alloc() argument
913 modify_hdr->id = MLX5_GET(alloc_modify_header_context_out, out, modify_header_id); in mlx5_cmd_modify_header_alloc()
919 struct mlx5_modify_hdr *modify_hdr) in mlx5_cmd_modify_header_dealloc() argument
927 modify_hdr->id); in mlx5_cmd_modify_header_dealloc()
A Dfs_core.c3213 struct mlx5_modify_hdr *modify_hdr; in mlx5_modify_header_alloc() local
3220 modify_hdr = kzalloc(sizeof(*modify_hdr), GFP_KERNEL); in mlx5_modify_header_alloc()
3221 if (!modify_hdr) in mlx5_modify_header_alloc()
3224 modify_hdr->ns_type = ns_type; in mlx5_modify_header_alloc()
3226 modify_actions, modify_hdr); in mlx5_modify_header_alloc()
3228 kfree(modify_hdr); in mlx5_modify_header_alloc()
3232 return modify_hdr; in mlx5_modify_header_alloc()
3237 struct mlx5_modify_hdr *modify_hdr) in mlx5_modify_header_dealloc() argument
3241 root = get_root_namespace(dev, modify_hdr->ns_type); in mlx5_modify_header_dealloc()
3244 root->cmds->modify_header_dealloc(root, modify_hdr); in mlx5_modify_header_dealloc()
[all …]
A Den_tc.h72 struct mlx5_modify_hdr *modify_hdr; member
A Den_tc.c436 struct mlx5_modify_hdr *modify_hdr; in mlx5e_attach_mod_hdr() local
445 modify_hdr = mlx5e_mod_hdr_get(mh); in mlx5e_attach_mod_hdr()
446 flow->attr->modify_hdr = modify_hdr; in mlx5e_attach_mod_hdr()
996 flow_act.modify_hdr = attr->modify_hdr; in mlx5e_add_offloaded_nic_rule()
1375 WARN_ON(flow->attr->modify_hdr); in mlx5e_tc_add_flow_mod_hdr()
1376 flow->attr->modify_hdr = mod_hdr; in mlx5e_tc_add_flow_mod_hdr()
1629 if (vf_tun && attr->modify_hdr) in mlx5e_tc_del_fdb_flow()
1630 mlx5_modify_header_dealloc(priv->mdev, attr->modify_hdr); in mlx5e_tc_del_fdb_flow()
A Deswitch_offloads.c574 flow_act.modify_hdr = attr->modify_hdr; in mlx5_eswitch_add_offloaded_rule()
1421 flow_act.modify_hdr = esw->offloads.restore_copy_hdr_id; in esw_add_restore_rule()
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
A Dindir_table.c208 flow_act.modify_hdr = mlx5_modify_header_alloc(esw->dev, MLX5_FLOW_NAMESPACE_FDB, in mlx5_esw_indir_table_rule_get()
210 if (IS_ERR(flow_act.modify_hdr)) { in mlx5_esw_indir_table_rule_get()
211 err = PTR_ERR(flow_act.modify_hdr); in mlx5_esw_indir_table_rule_get()
232 rule->mh = flow_act.modify_hdr; in mlx5_esw_indir_table_rule_get()
243 mlx5_modify_header_dealloc(esw->dev, flow_act.modify_hdr); in mlx5_esw_indir_table_rule_get()
A Dbridge.c560 flow_act.modify_hdr = vlan->pkt_mod_hdr_push_mark; in mlx5_esw_bridge_ingress_flow_with_esw_create()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/
A Dfs_dr.c341 fte->action.modify_hdr->action.dr_action; in mlx5_cmd_dr_create_fte()
601 struct mlx5_modify_hdr *modify_hdr) in mlx5_cmd_dr_modify_header_alloc() argument
617 modify_hdr->action.dr_action = action; in mlx5_cmd_dr_modify_header_alloc()
623 struct mlx5_modify_hdr *modify_hdr) in mlx5_cmd_dr_modify_header_dealloc() argument
625 mlx5dr_action_destroy(modify_hdr->action.dr_action); in mlx5_cmd_dr_modify_header_dealloc()
A Ddr_cmd.c689 if (fte->action.modify_hdr) in mlx5dr_cmd_set_fte()
691 fte->action.modify_hdr->id); in mlx5dr_cmd_set_fte()
/linux/include/linux/mlx5/
A Dfs.h217 struct mlx5_modify_hdr *modify_hdr; member
267 struct mlx5_modify_hdr *modify_hdr);
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
A Dingress_ofld.c45 flow_act.modify_hdr = vport->ingress.offloads.modify_metadata; in esw_acl_ingress_prio_tag_create()
94 flow_act.modify_hdr = vport->ingress.offloads.modify_metadata; in esw_acl_ingress_mod_metadata_create()
/linux/drivers/infiniband/hw/mlx5/
A Dfs.c167 action->modify_hdr = in parse_flow_flow_action()
168 maction->flow_action_raw.modify_hdr; in parse_flow_flow_action()
1891 maction->flow_action_raw.modify_hdr); in destroy_flow_action_raw()
2356 maction->flow_action_raw.modify_hdr = in mlx5_ib_create_modify_header()
2359 if (IS_ERR(maction->flow_action_raw.modify_hdr)) { in mlx5_ib_create_modify_header()
2360 ret = PTR_ERR(maction->flow_action_raw.modify_hdr); in mlx5_ib_create_modify_header()
A Dmlx5_ib.h982 struct mlx5_modify_hdr *modify_hdr; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
A Dfs_chains.c385 act.modify_hdr = chain->miss_modify_hdr; in mlx5_chains_add_miss_rule()

Completed in 839 milliseconds