| /linux/kernel/ |
| H A D | nstree.c | 220 VFS_WARN_ON_ONCE(owner->ns_type != CLONE_NEWUSER); in __ns_tree_add_raw() 286 static struct ns_tree_root *ns_tree_from_type(int ns_type) in ns_tree_from_type() argument 288 switch (ns_type) { in ns_tree_from_type() 325 static struct ns_common *__ns_tree_lookup_rcu(u64 ns_id, int ns_type) in __ns_tree_lookup_rcu() argument 331 ns_tree = ns_tree_from_type(ns_type); in __ns_tree_lookup_rcu() 345 struct ns_common *ns_tree_lookup_rcu(u64 ns_id, int ns_type) in ns_tree_lookup_rcu() argument 349 if (ns_type) in ns_tree_lookup_rcu() 350 return __ns_tree_lookup_rcu(ns_id, ns_type); in ns_tree_lookup_rcu() 408 u32 ns_type; member 445 if (kreq->ns_type & ~NS_ALL) in copy_ns_id_req() [all …]
|
| H A D | nscommon.c | 13 switch (ns->ns_type) { in ns_debug() 56 int __ns_common_init(struct ns_common *ns, u32 ns_type, const struct proc_ns_operations *ops, int i… in __ns_common_init() argument 64 ns->ns_type = ns_type; in __ns_common_init()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
| H A D | post_act.c | 11 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() 132 handle->ns_type = post_act->ns_type; in mlx5e_tc_post_act_add() 134 if (handle->ns_type == MLX5_FLOW_NAMESPACE_FDB) in mlx5e_tc_post_act_add() 180 return mlx5e_tc_match_to_reg_set(dev, acts, handle->ns_type, FTEID_TO_REG, handle->id); in mlx5e_tc_post_act_set_handle()
|
| H A D | post_meter.c | 60 enum mlx5_flow_namespace_type ns_type) in mlx5e_post_meter_table_create() argument 65 root_ns = mlx5_get_flow_namespace(priv->mdev, ns_type); in mlx5e_post_meter_table_create() 250 enum mlx5_flow_namespace_type ns_type, in mlx5e_post_meter_rate_create() argument 263 ft = mlx5e_post_meter_table_create(priv, ns_type); in mlx5e_post_meter_rate_create() 294 enum mlx5_flow_namespace_type ns_type, in mlx5e_post_meter_create_mtu_table() argument 306 table->ft = mlx5e_post_meter_table_create(priv, ns_type); in mlx5e_post_meter_create_mtu_table() 335 enum mlx5_flow_namespace_type ns_type, in mlx5e_post_meter_mtu_create() argument 350 err = mlx5e_post_meter_create_mtu_table(priv, ns_type, &mtu_tables->green_table); in mlx5e_post_meter_mtu_create() 365 err = mlx5e_post_meter_create_mtu_table(priv, ns_type, &mtu_tables->red_table); in mlx5e_post_meter_mtu_create() 394 enum mlx5_flow_namespace_type ns_type, in mlx5e_post_meter_init() argument [all …]
|
| H A D | meter.c | 36 enum mlx5_flow_namespace_type ns_type; member 507 return flow_meters->ns_type; in mlx5e_tc_meter_get_namespace() 512 enum mlx5_flow_namespace_type ns_type, in mlx5e_flow_meters_init() argument 550 flow_meters->ns_type = ns_type; in mlx5e_flow_meters_init()
|
| H A D | post_act.h | 16 enum mlx5_flow_namespace_type ns_type);
|
| /linux/tools/testing/selftests/namespaces/ |
| H A D | listns_test.c | 32 .ns_type = 0, /* All types */ in TEST() 68 .ns_type = CLONE_NEWNET, /* Only network namespaces */ in TEST() 92 .ns_type = CLONE_NEWNET, in TEST() 108 int ns_type; in TEST() local 110 ns_type = ioctl(fd, NS_GET_NSTYPE); in TEST() 111 if (ns_type >= 0) { in TEST() 112 ASSERT_EQ(ns_type, CLONE_NEWNET); in TEST() 129 .ns_type = 0, in TEST() 182 .ns_type = 0, in TEST() 215 .ns_type = CLONE_NEWNET, in TEST() [all …]
|
| H A D | ns_active_ref_test.c | 744 parent_fh->ns_type = 0; in TEST() 752 child_fh->ns_type = 0; in TEST() 1064 gp_fh->ns_type = 0; in TEST() 1072 p_fh->ns_type = 0; in TEST() 1080 c_fh->ns_type = 0; in TEST() 1229 p_fh->ns_type = 0; in TEST() 1237 c1_fh->ns_type = 0; in TEST() 1245 c2_fh->ns_type = 0; in TEST() 1397 u_fh->ns_type = 0; in TEST() 1405 n_fh->ns_type = 0; in TEST() [all …]
|
| H A D | stress_test.c | 41 .ns_type = CLONE_NEWUSER, in TEST() 97 .ns_type = CLONE_NEWUSER, in TEST() 219 .ns_type = 0, /* All types */ in TEST() 282 .ns_type = CLONE_NEWUSER, in TEST() 350 .ns_type = CLONE_NEWUSER, in TEST() 489 .ns_type = 0, in TEST() 568 .ns_type = CLONE_NEWUSER | CLONE_NEWNET | CLONE_NEWUTS, in TEST()
|
| H A D | listns_permissions_test.c | 33 .ns_type = CLONE_NEWNET, in TEST() 141 .ns_type = 0, /* All types */ in TEST() 312 .ns_type = CLONE_NEWNET, in TEST() 391 .ns_type = 0, in TEST() 523 req.ns_type = 0; in TEST() 614 req.ns_type = CLONE_NEWUSER; in TEST() 693 .ns_type = CLONE_NEWNET, in TEST()
|
| H A D | listns_efault_test.c | 84 .ns_type = 0, /* All types */ in TEST() 197 .ns_type = 0, in TEST() 226 .ns_type = 0, in TEST() 290 .ns_type = 0, in TEST() 438 .ns_type = CLONE_NEWNS, /* Only mount namespaces */ in TEST()
|
| H A D | cred_change_test.c | 40 .ns_type = CLONE_NEWUSER, in TEST() 177 .ns_type = CLONE_NEWUSER, in TEST() 293 .ns_type = CLONE_NEWUSER, in TEST() 412 .ns_type = CLONE_NEWUSER, in TEST() 582 .ns_type = CLONE_NEWUSER, in TEST() 716 .ns_type = CLONE_NEWUSER, in TEST()
|
| /linux/fs/ |
| H A D | nsfs.c | 240 return ns->ns_type; in ns_ioctl() 242 if (ns->ns_type != CLONE_NEWUSER) in ns_ioctl() 255 if (ns->ns_type != CLONE_NEWPID) in ns_ioctl() 294 if (ns->ns_type != CLONE_NEWNS) in ns_ioctl() 314 if (ns->ns_type != CLONE_NEWNS) in ns_ioctl() 334 if (ns->ns_type != CLONE_NEWNS) in ns_ioctl() 474 fid->ns_type = ns->ns_type; in nsfs_encode_fh() 481 switch (ns->ns_type) { in is_current_namespace() 546 if (!fid->ns_inum != !fid->ns_type) in nsfs_fh_to_dentry() 550 ns = ns_tree_lookup_rcu(fid->ns_id, fid->ns_type); in nsfs_fh_to_dentry() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
| H A D | vlan_mangle.c | 59 enum mlx5_flow_namespace_type ns_type; in tc_act_parse_vlan_mangle() local 62 ns_type = mlx5e_get_flow_namespace(parse_state->flow); in tc_act_parse_vlan_mangle() 63 err = mlx5e_tc_act_vlan_add_rewrite_action(priv, ns_type, act, attr->parse_attr, in tc_act_parse_vlan_mangle() 68 if (ns_type == MLX5_FLOW_NAMESPACE_FDB) { in tc_act_parse_vlan_mangle()
|
| H A D | pedit.c | 90 enum mlx5_flow_namespace_type ns_type; in tc_act_parse_pedit() local 93 ns_type = mlx5e_get_flow_namespace(flow); in tc_act_parse_pedit() 95 err = mlx5e_tc_act_pedit_parse_action(flow->priv, act, ns_type, attr->parse_attr->hdrs, in tc_act_parse_pedit() 102 if (ns_type == MLX5_FLOW_NAMESPACE_FDB) { in tc_act_parse_pedit()
|
| H A D | act.c | 54 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() 89 enum mlx5_flow_namespace_type ns_type) in mlx5e_tc_act_post_parse() argument 104 tc_act = mlx5e_tc_act_get(act->id, ns_type); in mlx5e_tc_act_post_parse()
|
| H A D | act.h | 100 enum mlx5_flow_namespace_type ns_type); 112 enum mlx5_flow_namespace_type ns_type);
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
| H A D | tc.c | 554 enum mlx5_flow_namespace_type ns_type; in mlx5e_rep_indr_replace_act() local 567 ns_type = MLX5_FLOW_NAMESPACE_FDB; in mlx5e_rep_indr_replace_act() 569 ns_type = MLX5_FLOW_NAMESPACE_KERNEL; in mlx5e_rep_indr_replace_act() 572 act = mlx5e_tc_act_get(action->id, ns_type); in mlx5e_rep_indr_replace_act() 592 enum mlx5_flow_namespace_type ns_type; in mlx5e_rep_indr_destroy_act() local 596 ns_type = MLX5_FLOW_NAMESPACE_FDB; in mlx5e_rep_indr_destroy_act() 598 ns_type = MLX5_FLOW_NAMESPACE_KERNEL; in mlx5e_rep_indr_destroy_act() 600 act = mlx5e_tc_act_get(fl_act->id, ns_type); in mlx5e_rep_indr_destroy_act() 614 enum mlx5_flow_namespace_type ns_type; in mlx5e_rep_indr_stats_act() local 618 ns_type = MLX5_FLOW_NAMESPACE_FDB; in mlx5e_rep_indr_stats_act() [all …]
|
| /linux/include/uapi/linux/ |
| H A D | nsfs.h | 63 __u32 ns_type; member 84 enum ns_type { enum 114 __u32 ns_type; member
|
| /linux/tools/include/uapi/linux/ |
| H A D | nsfs.h | 63 __u32 ns_type; member 84 enum ns_type { enum 114 __u32 ns_type; member
|
| /linux/drivers/infiniband/hw/mlx5/ |
| H A D | fs.c | 1909 enum mlx5_flow_namespace_type ns_type, in _get_flow_table() argument 1932 switch (ns_type) { in _get_flow_table() 1976 ret = mlx5_ib_fill_transport_ns_info(dev, ns_type, &flags, in _get_flow_table() 1983 if (ns_type == MLX5_FLOW_NAMESPACE_RDMA_TRANSPORT_RX) in _get_flow_table() 1999 if (ns_type == MLX5_FLOW_NAMESPACE_RDMA_TRANSPORT_RX || in _get_flow_table() 2000 ns_type == MLX5_FLOW_NAMESPACE_RDMA_TRANSPORT_TX) in _get_flow_table() 2001 ns = mlx5_get_flow_vport_namespace(ft_mdev, ns_type, vport_idx); in _get_flow_table() 2003 ns = mlx5_get_flow_namespace(ft_mdev, ns_type); in _get_flow_table() 2008 switch (ns_type) { in _get_flow_table() 2164 fs_matcher->ns_type, mcast, in raw_fs_rule_add() [all …]
|
| /linux/include/linux/mlx5/ |
| H A D | fs.h | 347 u8 ns_type, u8 num_actions, 353 enum mlx5_flow_namespace_type ns_type, u16 format_id, 369 enum mlx5_flow_namespace_type ns_type); 376 mlx5_get_root_namespace(struct mlx5_core_dev *dev, enum mlx5_flow_namespace_type ns_type);
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | tc_ct.c | 78 enum mlx5_flow_namespace_type ns_type; member 570 enum mlx5_flow_namespace_type ns = ct_priv->ns_type; in mlx5_tc_ct_entry_set_registers() 692 modact = mlx5e_mod_hdr_alloc(mdev, ct_priv->ns_type, mod_acts); in mlx5_tc_ct_entry_create_nat() 760 attr->modify_hdr = mlx5_modify_header_alloc(ct_priv->dev, ct_priv->ns_type, in mlx5_tc_ct_entry_create_mod_hdr() 772 ct_priv->ns_type, in mlx5_tc_ct_entry_create_mod_hdr() 819 attr = mlx5_alloc_flow_attr(ct_priv->ns_type); in mlx5_tc_ct_entry_add_rule() 848 if (ct_priv->ns_type == MLX5_FLOW_NAMESPACE_FDB) in mlx5_tc_ct_entry_add_rule() 894 old_attr = mlx5_alloc_flow_attr(ct_priv->ns_type); in mlx5_tc_ct_entry_update_rule() 1628 err = mlx5e_tc_match_to_reg_set(dev, &pre_mod_acts, ct_priv->ns_type, in tc_ct_pre_ct_add_rules() 1635 mod_hdr = mlx5_modify_header_alloc(dev, ct_priv->ns_type, in tc_ct_pre_ct_add_rules() [all …]
|
| /linux/include/linux/ |
| H A D | ns_common.h | 12 int __ns_common_init(struct ns_common *ns, u32 ns_type, const struct proc_ns_operations *ops, int i… 31 .ns_type = ns_common_type(&nsname), \
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | fs_core.c | 4107 mlx5_get_root_namespace(struct mlx5_core_dev *dev, enum mlx5_flow_namespace_type ns_type) in mlx5_get_root_namespace() argument 4111 if (ns_type == MLX5_FLOW_NAMESPACE_ESW_EGRESS || in mlx5_get_root_namespace() 4112 ns_type == MLX5_FLOW_NAMESPACE_ESW_INGRESS || in mlx5_get_root_namespace() 4113 ns_type == MLX5_FLOW_NAMESPACE_RDMA_TRANSPORT_TX || in mlx5_get_root_namespace() 4114 ns_type == MLX5_FLOW_NAMESPACE_RDMA_TRANSPORT_RX) in mlx5_get_root_namespace() 4115 ns = mlx5_get_flow_vport_namespace(dev, ns_type, 0); in mlx5_get_root_namespace() 4117 ns = mlx5_get_flow_namespace(dev, ns_type); in mlx5_get_root_namespace() 4125 u8 ns_type, u8 num_actions, in mlx5_modify_header_alloc() argument 4132 root = mlx5_get_root_namespace(dev, ns_type); in mlx5_modify_header_alloc() 4140 modify_hdr->ns_type = ns_type; in mlx5_modify_header_alloc() [all …]
|