/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec_fs.c | 60 struct mlx5_modify_hdr *modify_hdr; in rx_err_add_rule() local 77 modify_hdr = mlx5_modify_header_alloc(mdev, MLX5_FLOW_NAMESPACE_KERNEL, in rx_err_add_rule() 80 if (IS_ERR(modify_hdr)) { in rx_err_add_rule() 81 err = PTR_ERR(modify_hdr); in rx_err_add_rule() 90 flow_act.modify_hdr = modify_hdr; in rx_err_add_rule() 101 rx_err->copy_modify_hdr = modify_hdr; in rx_err_add_rule() 105 mlx5_modify_header_dealloc(mdev, modify_hdr); in rx_err_add_rule() 403 struct mlx5_modify_hdr *modify_hdr = NULL; in rx_add_rule() local 437 modify_hdr = mlx5_modify_header_alloc(priv->mdev, MLX5_FLOW_NAMESPACE_KERNEL, in rx_add_rule() 439 if (IS_ERR(modify_hdr)) { in rx_add_rule() [all …]
|
D | macsec_fs.c | 1120 struct mlx5_modify_hdr *modify_hdr = NULL; in macsec_fs_rx_add_rule() local 1156 modify_hdr = mlx5_modify_header_alloc(macsec_fs->mdev, MLX5_FLOW_NAMESPACE_KERNEL_RX_MACSEC, in macsec_fs_rx_add_rule() 1158 if (IS_ERR(modify_hdr)) { in macsec_fs_rx_add_rule() 1159 err = PTR_ERR(modify_hdr); in macsec_fs_rx_add_rule() 1161 modify_hdr = NULL; in macsec_fs_rx_add_rule() 1164 rx_rule->meta_modhdr = modify_hdr; in macsec_fs_rx_add_rule() 1169 flow_act.modify_hdr = modify_hdr; in macsec_fs_rx_add_rule() 1194 flow_act.modify_hdr = modify_hdr; in macsec_fs_rx_add_rule()
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
D | sample.c | 54 struct mlx5_modify_hdr *modify_hdr; member 236 struct mlx5_modify_hdr *modify_hdr; in sample_modify_hdr_get() local 244 modify_hdr = mlx5_modify_header_alloc(mdev, MLX5_FLOW_NAMESPACE_FDB, in sample_modify_hdr_get() 247 if (IS_ERR(modify_hdr)) { in sample_modify_hdr_get() 248 err = PTR_ERR(modify_hdr); in sample_modify_hdr_get() 253 return modify_hdr; in sample_modify_hdr_get() 268 struct mlx5_modify_hdr *modify_hdr; in sample_restore_get() local 283 modify_hdr = sample_modify_hdr_get(mdev, obj_id, mod_acts); in sample_restore_get() 284 if (IS_ERR(modify_hdr)) { in sample_restore_get() 285 err = PTR_ERR(modify_hdr); in sample_restore_get() [all …]
|
D | ct_fs_smfs.c | 316 actions[num_actions++] = attr->modify_hdr->action.dr_action; in mlx5_ct_fs_smfs_ct_rule_add()
|
/Linux-v6.1/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 | 104 struct mlx5_modify_hdr *modify_hdr; member 756 attr->modify_hdr = mlx5_modify_header_alloc(ct_priv->dev, ct_priv->ns_type, in mlx5_tc_ct_entry_create_mod_hdr() 759 if (IS_ERR(attr->modify_hdr)) { in mlx5_tc_ct_entry_create_mod_hdr() 760 err = PTR_ERR(attr->modify_hdr); in mlx5_tc_ct_entry_create_mod_hdr() 774 attr->modify_hdr = mlx5e_mod_hdr_get(*mh); in mlx5_tc_ct_entry_create_mod_hdr() 794 mlx5_modify_header_dealloc(ct_priv->dev, attr->modify_hdr); in mlx5_tc_ct_entry_destroy_mod_hdr() 1486 pre_ct->modify_hdr = mod_hdr; in tc_ct_pre_ct_add_rules() 1491 flow_act.modify_hdr = mod_hdr; in tc_ct_pre_ct_add_rules() 1528 mlx5_modify_header_dealloc(dev, pre_ct->modify_hdr); in tc_ct_pre_ct_add_rules() 1544 mlx5_modify_header_dealloc(dev, pre_ct->modify_hdr); in tc_ct_pre_ct_del_rules() [all …]
|
D | tc_tun_encap.c | 1345 mlx5_modify_header_dealloc(priv->mdev, attr->modify_hdr); in mlx5e_invalidate_encap() 1346 attr->modify_hdr = NULL; in mlx5e_invalidate_encap()
|
/Linux-v6.1/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 | 131 struct mlx5_modify_hdr *modify_hdr) in mlx5_cmd_stub_modify_header_alloc() argument 137 struct mlx5_modify_hdr *modify_hdr) in mlx5_cmd_stub_modify_header_dealloc() argument 576 if (fte->action.modify_hdr) in mlx5_cmd_set_fte() 578 fte->action.modify_hdr->id); in mlx5_cmd_set_fte() 910 struct mlx5_modify_hdr *modify_hdr) in mlx5_cmd_modify_header_alloc() argument 972 modify_hdr->id = MLX5_GET(alloc_modify_header_context_out, out, modify_header_id); in mlx5_cmd_modify_header_alloc() 978 struct mlx5_modify_hdr *modify_hdr) in mlx5_cmd_modify_header_dealloc() argument 986 modify_hdr->id); in mlx5_cmd_modify_header_dealloc()
|
D | fs_core.c | 1637 act1->modify_hdr != act2->modify_hdr) in check_conflicting_actions() 3372 struct mlx5_modify_hdr *modify_hdr; in mlx5_modify_header_alloc() local 3379 modify_hdr = kzalloc(sizeof(*modify_hdr), GFP_KERNEL); in mlx5_modify_header_alloc() 3380 if (!modify_hdr) in mlx5_modify_header_alloc() 3383 modify_hdr->ns_type = ns_type; in mlx5_modify_header_alloc() 3385 modify_actions, modify_hdr); in mlx5_modify_header_alloc() 3387 kfree(modify_hdr); in mlx5_modify_header_alloc() 3391 return modify_hdr; in mlx5_modify_header_alloc() 3396 struct mlx5_modify_hdr *modify_hdr) in mlx5_modify_header_dealloc() argument 3400 root = get_root_namespace(dev, modify_hdr->ns_type); in mlx5_modify_header_dealloc() [all …]
|
D | en_tc.c | 624 struct mlx5_modify_hdr *modify_hdr; in mlx5e_attach_mod_hdr() local 633 modify_hdr = mlx5e_mod_hdr_get(mh); in mlx5e_attach_mod_hdr() 634 flow->attr->modify_hdr = modify_hdr; in mlx5e_attach_mod_hdr() 1191 flow_act.modify_hdr = attr->modify_hdr; in mlx5e_add_offloaded_nic_rule() 1446 slow_attr->modify_hdr = mlx5e_mod_hdr_get(mh); in mlx5e_tc_offload_to_slow_path() 1494 slow_attr->modify_hdr = mlx5e_mod_hdr_get(flow->slow_mh); in mlx5e_tc_unoffload_from_slow_path() 1626 WARN_ON(attr->modify_hdr); in mlx5e_tc_add_flow_mod_hdr() 1627 attr->modify_hdr = mod_hdr; in mlx5e_tc_add_flow_mod_hdr() 1921 if (vf_tun && attr->modify_hdr) in mlx5e_tc_del_fdb_flow() 1922 mlx5_modify_header_dealloc(priv->mdev, attr->modify_hdr); in mlx5e_tc_del_fdb_flow() [all …]
|
D | en_tc.h | 73 struct mlx5_modify_hdr *modify_hdr; member
|
D | eswitch_offloads.c | 610 flow_act.modify_hdr = attr->modify_hdr; in mlx5_eswitch_add_offloaded_rule() 1425 flow_act.modify_hdr = esw->offloads.restore_copy_hdr_id; in esw_add_restore_rule()
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | indir_table.c | 213 flow_act.modify_hdr = mlx5_modify_header_alloc(esw->dev, MLX5_FLOW_NAMESPACE_FDB, in mlx5_esw_indir_table_rule_get() 215 if (IS_ERR(flow_act.modify_hdr)) { in mlx5_esw_indir_table_rule_get() 216 err = PTR_ERR(flow_act.modify_hdr); in mlx5_esw_indir_table_rule_get() 237 rule->mh = flow_act.modify_hdr; in mlx5_esw_indir_table_rule_get() 248 mlx5_modify_header_dealloc(esw->dev, flow_act.modify_hdr); in mlx5_esw_indir_table_rule_get()
|
D | bridge.c | 694 flow_act.modify_hdr = vlan->pkt_mod_hdr_push_mark; in mlx5_esw_bridge_ingress_flow_with_esw_create()
|
/Linux-v6.1/include/linux/mlx5/ |
D | fs.h | 246 struct mlx5_modify_hdr *modify_hdr; member 298 struct mlx5_modify_hdr *modify_hdr);
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | fs_dr.c | 356 fte->action.modify_hdr->action.dr_action; in mlx5_cmd_dr_create_fte() 657 struct mlx5_modify_hdr *modify_hdr) in mlx5_cmd_dr_modify_header_alloc() argument 673 modify_hdr->action.dr_action = action; in mlx5_cmd_dr_modify_header_alloc() 679 struct mlx5_modify_hdr *modify_hdr) in mlx5_cmd_dr_modify_header_dealloc() argument 681 mlx5dr_action_destroy(modify_hdr->action.dr_action); in mlx5_cmd_dr_modify_header_dealloc()
|
D | dr_cmd.c | 699 if (fte->action.modify_hdr) in mlx5dr_cmd_set_fte() 701 fte->action.modify_hdr->id); in mlx5dr_cmd_set_fte()
|
/Linux-v6.1/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-v6.1/drivers/infiniband/hw/mlx5/ |
D | fs.c | 156 action->modify_hdr = in parse_flow_flow_action() 157 maction->flow_action_raw.modify_hdr; in parse_flow_flow_action() 1694 maction->flow_action_raw.modify_hdr); in destroy_flow_action_raw() 2236 maction->flow_action_raw.modify_hdr = in mlx5_ib_create_modify_header() 2239 if (IS_ERR(maction->flow_action_raw.modify_hdr)) { in mlx5_ib_create_modify_header() 2240 ret = PTR_ERR(maction->flow_action_raw.modify_hdr); in mlx5_ib_create_modify_header()
|
D | mlx5_ib.h | 956 struct mlx5_modify_hdr *modify_hdr; member
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | fs_chains.c | 386 act.modify_hdr = chain->miss_modify_hdr; in mlx5_chains_add_miss_rule()
|