/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | mod_hdr.c | 20 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()
|
D | tc_ct.c | 82 struct mlx5_modify_hdr *modify_hdr; member 688 attr->modify_hdr = mlx5_modify_header_alloc(ct_priv->dev, ct_priv->ns_type, in mlx5_tc_ct_entry_create_mod_hdr() 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() 1413 pre_ct->modify_hdr = mod_hdr; in tc_ct_pre_ct_add_rules() 1418 flow_act.modify_hdr = mod_hdr; in tc_ct_pre_ct_add_rules() 1455 mlx5_modify_header_dealloc(dev, pre_ct->modify_hdr); in tc_ct_pre_ct_add_rules() 1471 mlx5_modify_header_dealloc(dev, pre_ct->modify_hdr); in tc_ct_pre_ct_del_rules() [all …]
|
D | tc_tun_encap.c | 1285 mlx5_modify_header_dealloc(priv->mdev, attr->modify_hdr); in mlx5e_invalidate_encap() 1286 attr->modify_hdr = NULL; in mlx5e_invalidate_encap()
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec_fs.c | 58 struct mlx5_modify_hdr *modify_hdr; in rx_err_add_rule() local 75 modify_hdr = mlx5_modify_header_alloc(mdev, MLX5_FLOW_NAMESPACE_KERNEL, in rx_err_add_rule() 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() 102 mlx5_modify_header_dealloc(mdev, modify_hdr); in rx_err_add_rule() 466 struct mlx5_modify_hdr *modify_hdr = NULL; in rx_add_rule() local 500 modify_hdr = mlx5_modify_header_alloc(priv->mdev, MLX5_FLOW_NAMESPACE_KERNEL, in rx_add_rule() 502 if (IS_ERR(modify_hdr)) { in rx_add_rule() [all …]
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
D | sample.c | 53 struct mlx5_modify_hdr *modify_hdr; member 236 struct mlx5_modify_hdr *modify_hdr; in sample_modify_hdr_get() local 250 modify_hdr = mlx5_modify_header_alloc(mdev, MLX5_FLOW_NAMESPACE_FDB, in sample_modify_hdr_get() 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 306 modify_hdr = sample_modify_hdr_get(mdev, obj_id, post_act_handle); in sample_restore_get() 307 if (IS_ERR(modify_hdr)) { in sample_restore_get() 308 err = PTR_ERR(modify_hdr); in sample_restore_get() [all …]
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/ |
D | fs_cmd.h | 90 struct mlx5_modify_hdr *modify_hdr); 93 struct mlx5_modify_hdr *modify_hdr);
|
D | fs_cmd.c | 129 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 526 if (fte->action.modify_hdr) in mlx5_cmd_set_fte() 528 fte->action.modify_hdr->id); in mlx5_cmd_set_fte() 832 struct mlx5_modify_hdr *modify_hdr) in mlx5_cmd_modify_header_alloc() argument 893 modify_hdr->id = MLX5_GET(alloc_modify_header_context_out, out, modify_header_id); in mlx5_cmd_modify_header_alloc() 899 struct mlx5_modify_hdr *modify_hdr) in mlx5_cmd_modify_header_dealloc() argument 907 modify_hdr->id); in mlx5_cmd_modify_header_dealloc()
|
D | fs_core.c | 3149 struct mlx5_modify_hdr *modify_hdr; in mlx5_modify_header_alloc() local 3156 modify_hdr = kzalloc(sizeof(*modify_hdr), GFP_KERNEL); in mlx5_modify_header_alloc() 3157 if (!modify_hdr) in mlx5_modify_header_alloc() 3160 modify_hdr->ns_type = ns_type; in mlx5_modify_header_alloc() 3162 modify_actions, modify_hdr); in mlx5_modify_header_alloc() 3164 kfree(modify_hdr); in mlx5_modify_header_alloc() 3168 return modify_hdr; in mlx5_modify_header_alloc() 3173 struct mlx5_modify_hdr *modify_hdr) in mlx5_modify_header_dealloc() argument 3177 root = get_root_namespace(dev, modify_hdr->ns_type); in mlx5_modify_header_dealloc() 3180 root->cmds->modify_header_dealloc(root, modify_hdr); in mlx5_modify_header_dealloc() [all …]
|
D | en_tc.h | 71 struct mlx5_modify_hdr *modify_hdr; member
|
D | en_tc.c | 421 struct mlx5_modify_hdr *modify_hdr; in mlx5e_attach_mod_hdr() local 430 modify_hdr = mlx5e_mod_hdr_get(mh); in mlx5e_attach_mod_hdr() 431 flow->attr->modify_hdr = modify_hdr; in mlx5e_attach_mod_hdr() 981 flow_act.modify_hdr = attr->modify_hdr; in mlx5e_add_offloaded_nic_rule() 1369 WARN_ON(flow->attr->modify_hdr); in mlx5e_tc_add_flow_mod_hdr() 1370 flow->attr->modify_hdr = mod_hdr; in mlx5e_tc_add_flow_mod_hdr() 1570 if (vf_tun && attr->modify_hdr) in mlx5e_tc_del_fdb_flow() 1571 mlx5_modify_header_dealloc(priv->mdev, attr->modify_hdr); in mlx5e_tc_del_fdb_flow()
|
D | eswitch_offloads.c | 541 flow_act.modify_hdr = attr->modify_hdr; in mlx5_eswitch_add_offloaded_rule() 1380 flow_act.modify_hdr = esw->offloads.restore_copy_hdr_id; in esw_add_restore_rule()
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | indir_table.c | 208 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()
|
/Linux-v5.15/include/linux/mlx5/ |
D | fs.h | 213 struct mlx5_modify_hdr *modify_hdr; member 259 struct mlx5_modify_hdr *modify_hdr);
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | fs_dr.c | 341 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()
|
D | dr_cmd.c | 687 if (fte->action.modify_hdr) in mlx5dr_cmd_set_fte() 689 fte->action.modify_hdr->id); in mlx5dr_cmd_set_fte()
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
D | ingress_ofld.c | 45 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-v5.15/drivers/infiniband/hw/mlx5/ |
D | fs.c | 165 action->modify_hdr = in parse_flow_flow_action() 166 maction->flow_action_raw.modify_hdr; in parse_flow_flow_action() 1704 maction->flow_action_raw.modify_hdr); in destroy_flow_action_raw() 2169 maction->flow_action_raw.modify_hdr = in mlx5_ib_create_modify_header() 2172 if (IS_ERR(maction->flow_action_raw.modify_hdr)) { in mlx5_ib_create_modify_header() 2173 ret = PTR_ERR(maction->flow_action_raw.modify_hdr); in mlx5_ib_create_modify_header()
|
D | mlx5_ib.h | 949 struct mlx5_modify_hdr *modify_hdr; member
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | fs_chains.c | 382 act.modify_hdr = chain->miss_modify_hdr; in mlx5_chains_add_miss_rule()
|