Home
last modified time | relevance | path

Searched refs:ns_type (Results 1 – 25 of 27) sorted by relevance

12

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dpost_act.c11 enum mlx5_flow_namespace_type ns_type; member
19 enum mlx5_flow_namespace_type ns_type; member
31 enum mlx5_flow_namespace_type ns_type) in mlx5e_tc_post_act_init() argument
33 enum fs_flow_table_type table_type = ns_type == MLX5_FLOW_NAMESPACE_FDB ? in mlx5e_tc_post_act_init()
57 post_act->ns_type = ns_type; in mlx5e_tc_post_act_init()
111 u32 attr_sz = ns_to_attr_sz(post_act->ns_type); in mlx5e_tc_post_act_add()
117 post_attr = mlx5_alloc_flow_attr(post_act->ns_type); in mlx5e_tc_post_act_add()
133 handle->ns_type = post_act->ns_type; in mlx5e_tc_post_act_add()
135 if (handle->ns_type == MLX5_FLOW_NAMESPACE_FDB) in mlx5e_tc_post_act_add()
183 return mlx5e_tc_match_to_reg_set(dev, acts, handle->ns_type, FTEID_TO_REG, handle->id); in mlx5e_tc_post_act_set_handle()
Dpost_meter.c26 enum mlx5_flow_namespace_type ns_type, in mlx5e_post_meter_table_create() argument
32 root_ns = mlx5_get_flow_namespace(priv->mdev, ns_type); in mlx5e_post_meter_table_create()
165 enum mlx5_flow_namespace_type ns_type, in mlx5e_post_meter_init() argument
177 err = mlx5e_post_meter_table_create(priv, ns_type, post_meter); in mlx5e_post_meter_init()
Dmeter.c35 enum mlx5_flow_namespace_type ns_type; member
501 return flow_meters->ns_type; in mlx5e_tc_meter_get_namespace()
506 enum mlx5_flow_namespace_type ns_type, in mlx5e_flow_meters_init() argument
544 flow_meters->ns_type = ns_type; in mlx5e_flow_meters_init()
Dpost_meter.h22 enum mlx5_flow_namespace_type ns_type,
Dpost_act.h16 enum mlx5_flow_namespace_type ns_type);
Dmeter.h65 enum mlx5_flow_namespace_type ns_type,
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
Dvlan_mangle.c68 enum mlx5_flow_namespace_type ns_type; in tc_act_parse_vlan_mangle() local
71 ns_type = mlx5e_get_flow_namespace(parse_state->flow); in tc_act_parse_vlan_mangle()
72 err = mlx5e_tc_act_vlan_add_rewrite_action(priv, ns_type, act, attr->parse_attr, in tc_act_parse_vlan_mangle()
77 if (ns_type == MLX5_FLOW_NAMESPACE_FDB) in tc_act_parse_vlan_mangle()
Dpedit.c98 enum mlx5_flow_namespace_type ns_type; in tc_act_parse_pedit() local
101 ns_type = mlx5e_get_flow_namespace(flow); in tc_act_parse_pedit()
103 err = mlx5e_tc_act_pedit_parse_action(flow->priv, act, ns_type, attr->parse_attr->hdrs, in tc_act_parse_pedit()
110 if (ns_type == MLX5_FLOW_NAMESPACE_FDB) in tc_act_parse_pedit()
Dact.c54 enum mlx5_flow_namespace_type ns_type) in mlx5e_tc_act_get() argument
58 tc_acts = ns_type == MLX5_FLOW_NAMESPACE_FDB ? tc_acts_fdb : tc_acts_nic; in mlx5e_tc_act_get()
109 enum mlx5_flow_namespace_type ns_type) in mlx5e_tc_act_post_parse() argument
119 tc_act = mlx5e_tc_act_get(act->id, ns_type); in mlx5e_tc_act_post_parse()
Dact.h93 enum mlx5_flow_namespace_type ns_type);
109 enum mlx5_flow_namespace_type ns_type);
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
Dtc.c522 enum mlx5_flow_namespace_type ns_type; in mlx5e_rep_indr_replace_act() local
535 ns_type = MLX5_FLOW_NAMESPACE_FDB; in mlx5e_rep_indr_replace_act()
537 ns_type = MLX5_FLOW_NAMESPACE_KERNEL; in mlx5e_rep_indr_replace_act()
540 act = mlx5e_tc_act_get(action->id, ns_type); in mlx5e_rep_indr_replace_act()
560 enum mlx5_flow_namespace_type ns_type; in mlx5e_rep_indr_destroy_act() local
564 ns_type = MLX5_FLOW_NAMESPACE_FDB; in mlx5e_rep_indr_destroy_act()
566 ns_type = MLX5_FLOW_NAMESPACE_KERNEL; in mlx5e_rep_indr_destroy_act()
568 act = mlx5e_tc_act_get(fl_act->id, ns_type); in mlx5e_rep_indr_destroy_act()
582 enum mlx5_flow_namespace_type ns_type; in mlx5e_rep_indr_stats_act() local
586 ns_type = MLX5_FLOW_NAMESPACE_FDB; in mlx5e_rep_indr_stats_act()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_ct.c74 enum mlx5_flow_namespace_type ns_type; member
563 enum mlx5_flow_namespace_type ns = ct_priv->ns_type; in mlx5_tc_ct_entry_set_registers()
691 modact = mlx5e_mod_hdr_alloc(mdev, ct_priv->ns_type, mod_acts); in mlx5_tc_ct_entry_create_nat()
756 attr->modify_hdr = mlx5_modify_header_alloc(ct_priv->dev, ct_priv->ns_type, in mlx5_tc_ct_entry_create_mod_hdr()
768 ct_priv->ns_type, in mlx5_tc_ct_entry_create_mod_hdr()
815 attr = mlx5_alloc_flow_attr(ct_priv->ns_type); in mlx5_tc_ct_entry_add_rule()
844 if (ct_priv->ns_type == MLX5_FLOW_NAMESPACE_FDB) in mlx5_tc_ct_entry_add_rule()
1470 err = mlx5e_tc_match_to_reg_set(dev, &pre_mod_acts, ct_priv->ns_type, in tc_ct_pre_ct_add_rules()
1477 mod_hdr = mlx5_modify_header_alloc(dev, ct_priv->ns_type, in tc_ct_pre_ct_add_rules()
1564 ns = mlx5_get_flow_namespace(dev, ct_priv->ns_type); in mlx5_tc_ct_alloc_pre_ct()
[all …]
Dtc_ct.h96 enum mlx5_flow_namespace_type ns_type,
140 enum mlx5_flow_namespace_type ns_type, in mlx5_tc_ct_init() argument
/linux-6.1.9/include/linux/mlx5/
Dfs.h295 u8 ns_type, u8 num_actions,
301 enum mlx5_flow_namespace_type ns_type, u16 format_id,
317 enum mlx5_flow_namespace_type ns_type);
/linux-6.1.9/drivers/infiniband/hw/mlx5/
Dfs.c1421 enum mlx5_flow_namespace_type ns_type, in _get_flow_table() argument
1438 switch (ns_type) { in _get_flow_table()
1483 ns = mlx5_get_flow_namespace(dev->mdev, ns_type); in _get_flow_table()
1487 switch (ns_type) { in _get_flow_table()
1632 fs_matcher->ns_type, mcast); in raw_fs_rule_add()
1820 if (fs_matcher->ns_type == MLX5_FLOW_NAMESPACE_BYPASS) { in get_dests()
1828 if (fs_matcher->ns_type == MLX5_FLOW_NAMESPACE_FDB_BYPASS && in get_dests()
1833 if ((fs_matcher->ns_type == MLX5_FLOW_NAMESPACE_RDMA_RX) && in get_dests()
1849 if ((fs_matcher->ns_type == MLX5_FLOW_NAMESPACE_FDB_BYPASS || in get_dests()
1850 fs_matcher->ns_type == MLX5_FLOW_NAMESPACE_RDMA_RX) && in get_dests()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_core.h53 enum mlx5_flow_namespace_type ns_type; member
58 enum mlx5_flow_namespace_type ns_type; member
66 enum mlx5_flow_namespace_type ns_type; member
Dfs_core.c3352 *get_root_namespace(struct mlx5_core_dev *dev, enum mlx5_flow_namespace_type ns_type) in get_root_namespace() argument
3356 if (ns_type == MLX5_FLOW_NAMESPACE_ESW_EGRESS || in get_root_namespace()
3357 ns_type == MLX5_FLOW_NAMESPACE_ESW_INGRESS) in get_root_namespace()
3358 ns = mlx5_get_flow_vport_acl_namespace(dev, ns_type, 0); in get_root_namespace()
3360 ns = mlx5_get_flow_namespace(dev, ns_type); in get_root_namespace()
3368 u8 ns_type, u8 num_actions, in mlx5_modify_header_alloc() argument
3375 root = get_root_namespace(dev, ns_type); in mlx5_modify_header_alloc()
3383 modify_hdr->ns_type = ns_type; in mlx5_modify_header_alloc()
3384 err = root->cmds->modify_header_alloc(root, ns_type, num_actions, in mlx5_modify_header_alloc()
3400 root = get_root_namespace(dev, modify_hdr->ns_type); in mlx5_modify_header_dealloc()
[all …]
Den_tc.c406 enum mlx5_flow_namespace_type ns_type; in mlx5e_tc_add_flow_meter() local
415 ns_type = mlx5e_tc_meter_get_namespace(meter->flow_meters); in mlx5e_tc_add_flow_meter()
416 post_meter = mlx5e_post_meter_init(priv, ns_type, post_act, meter->green_counter, in mlx5e_tc_add_flow_meter()
3584 enum mlx5_flow_namespace_type ns_type; in actions_prepare_mod_hdr_actions() local
3591 ns_type = mlx5e_get_flow_namespace(flow); in actions_prepare_mod_hdr_actions()
3593 err = alloc_tc_pedit_action(priv, ns_type, parse_attr, &attr->action, extack); in actions_prepare_mod_hdr_actions()
3604 if (ns_type != MLX5_FLOW_NAMESPACE_FDB) in actions_prepare_mod_hdr_actions()
3616 enum mlx5_flow_namespace_type ns_type) in mlx5e_clone_flow_attr_for_post_act() argument
3619 u32 attr_sz = ns_to_attr_sz(ns_type); in mlx5e_clone_flow_attr_for_post_act()
3622 attr2 = mlx5_alloc_flow_attr(ns_type); in mlx5e_clone_flow_attr_for_post_act()
[all …]
/linux-6.1.9/net/wireless/
Dsysfs.c164 .ns_type = &net_ns_type_operations,
/linux-6.1.9/include/linux/device/
Dclass.h70 const struct kobj_ns_type_operations *ns_type; member
/linux-6.1.9/drivers/net/ipvlan/
Dipvtap.c42 .ns_type = &net_ns_type_operations,
/linux-6.1.9/drivers/net/
Dmacvtap.c47 .ns_type = &net_ns_type_operations,
/linux-6.1.9/drivers/base/
Dclass.c70 return class->ns_type; in class_child_ns_type()
Dcore.c2342 if (dev->class && dev->class->ns_type) in device_namespace()
3030 return dir->class->ns_type; in class_dir_child_ns_type()
3088 else if (parent->class && !dev->class->ns_type) in get_device_parent()
/linux-6.1.9/net/core/
Dnet-sysfs.c1029 if (dev->class && dev->class->ns_type) in rx_queue_namespace()
1632 if (dev->class && dev->class->ns_type) in netdev_queue_namespace()
1933 .ns_type = &net_ns_type_operations,

12