diff options
| -rw-r--r-- | net/Kconfig | 8 | ||||
| -rw-r--r-- | net/core/net-sysfs.c | 8 |
2 files changed, 3 insertions, 13 deletions
diff --git a/net/Kconfig b/net/Kconfig index f49532053a98..0d68b40fc0e6 100644 --- a/net/Kconfig +++ b/net/Kconfig | |||
| @@ -45,14 +45,6 @@ config COMPAT_NETLINK_MESSAGES | |||
| 45 | 45 | ||
| 46 | menu "Networking options" | 46 | menu "Networking options" |
| 47 | 47 | ||
| 48 | config NET_NS | ||
| 49 | bool "Network namespace support" | ||
| 50 | default n | ||
| 51 | depends on EXPERIMENTAL && NAMESPACES | ||
| 52 | help | ||
| 53 | Allow user space to create what appear to be multiple instances | ||
| 54 | of the network stack. | ||
| 55 | |||
| 56 | source "net/packet/Kconfig" | 48 | source "net/packet/Kconfig" |
| 57 | source "net/unix/Kconfig" | 49 | source "net/unix/Kconfig" |
| 58 | source "net/xfrm/Kconfig" | 50 | source "net/xfrm/Kconfig" |
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index b388cdab9316..6881e65944c8 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c | |||
| @@ -469,6 +469,7 @@ static struct attribute_group wireless_group = { | |||
| 469 | .attrs = wireless_attrs, | 469 | .attrs = wireless_attrs, |
| 470 | }; | 470 | }; |
| 471 | #endif | 471 | #endif |
| 472 | #endif /* CONFIG_SYSFS */ | ||
| 472 | 473 | ||
| 473 | #ifdef CONFIG_RPS | 474 | #ifdef CONFIG_RPS |
| 474 | /* | 475 | /* |
| @@ -796,11 +797,10 @@ static void net_kobj_ns_exit(struct net *net) | |||
| 796 | kobj_ns_exit(KOBJ_NS_TYPE_NET, net); | 797 | kobj_ns_exit(KOBJ_NS_TYPE_NET, net); |
| 797 | } | 798 | } |
| 798 | 799 | ||
| 799 | static struct pernet_operations sysfs_net_ops = { | 800 | static struct pernet_operations kobj_net_ops = { |
| 800 | .exit = net_kobj_ns_exit, | 801 | .exit = net_kobj_ns_exit, |
| 801 | }; | 802 | }; |
| 802 | 803 | ||
| 803 | #endif /* CONFIG_SYSFS */ | ||
| 804 | 804 | ||
| 805 | #ifdef CONFIG_HOTPLUG | 805 | #ifdef CONFIG_HOTPLUG |
| 806 | static int netdev_uevent(struct device *d, struct kobj_uevent_env *env) | 806 | static int netdev_uevent(struct device *d, struct kobj_uevent_env *env) |
| @@ -948,8 +948,6 @@ void netdev_initialize_kobject(struct net_device *net) | |||
| 948 | int netdev_kobject_init(void) | 948 | int netdev_kobject_init(void) |
| 949 | { | 949 | { |
| 950 | kobj_ns_type_register(&net_ns_type_operations); | 950 | kobj_ns_type_register(&net_ns_type_operations); |
| 951 | #ifdef CONFIG_SYSFS | 951 | register_pernet_subsys(&kobj_net_ops); |
| 952 | register_pernet_subsys(&sysfs_net_ops); | ||
| 953 | #endif | ||
| 954 | return class_register(&net_class); | 952 | return class_register(&net_class); |
| 955 | } | 953 | } |
