diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-13 12:04:48 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-13 12:04:48 -0500 |
commit | 31083eba370fbc5d544ac2fe67ca549c0aa2bdf7 (patch) | |
tree | 9531e720d8d3cd8d82b7a3e4d2a1c6c306e769b4 /net/core | |
parent | a7fe77161da48a74c60dc19fc4ca3a73ab761d37 (diff) | |
parent | 53756524e42a71011f5ae6410d6ac386bf3a9e7b (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
* 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (45 commits)
[NETFILTER]: xt_time should not assume CONFIG_KTIME_SCALAR
[NET]: Move unneeded data to initdata section.
[NET]: Cleanup pernet operation without CONFIG_NET_NS
[TEHUTI]: Fix incorrect usage of strncat in bdx_get_drvinfo()
[MYRI_SBUS]: Prevent that myri_do_handshake lies about ticks.
[NETFILTER]: bridge: fix double POSTROUTING hook invocation
[NETFILTER]: Consolidate nf_sockopt and compat_nf_sockopt
[NETFILTER]: nf_nat: fix memset error
[INET]: Use list_head-s in inetpeer.c
[IPVS]: Remove unused exports.
[NET]: Unexport sysctl_{r,w}mem_max.
[TG3]: Update version to 3.86
[TG3]: MII => TP
[TG3]: Add A1 revs
[TG3]: Increase the PCI MRRS
[TG3]: Prescaler fix
[TG3]: Limit 5784 / 5764 to MAC LED mode
[TG3]: Disable GPHY autopowerdown
[TG3]: CPMU adjustments for loopback tests
[TG3]: Fix nvram selftest failures
...
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/dev.c | 6 | ||||
-rw-r--r-- | net/core/dev_mcast.c | 2 | ||||
-rw-r--r-- | net/core/net_namespace.c | 18 | ||||
-rw-r--r-- | net/core/sock.c | 4 |
4 files changed, 22 insertions, 8 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index dd7e30754cbc..dd40b35bb006 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -2688,7 +2688,7 @@ static void __net_exit dev_proc_net_exit(struct net *net) | |||
2688 | proc_net_remove(net, "dev"); | 2688 | proc_net_remove(net, "dev"); |
2689 | } | 2689 | } |
2690 | 2690 | ||
2691 | static struct pernet_operations dev_proc_ops = { | 2691 | static struct pernet_operations __net_initdata dev_proc_ops = { |
2692 | .init = dev_proc_net_init, | 2692 | .init = dev_proc_net_init, |
2693 | .exit = dev_proc_net_exit, | 2693 | .exit = dev_proc_net_exit, |
2694 | }; | 2694 | }; |
@@ -4353,7 +4353,7 @@ static void __net_exit netdev_exit(struct net *net) | |||
4353 | kfree(net->dev_index_head); | 4353 | kfree(net->dev_index_head); |
4354 | } | 4354 | } |
4355 | 4355 | ||
4356 | static struct pernet_operations netdev_net_ops = { | 4356 | static struct pernet_operations __net_initdata netdev_net_ops = { |
4357 | .init = netdev_init, | 4357 | .init = netdev_init, |
4358 | .exit = netdev_exit, | 4358 | .exit = netdev_exit, |
4359 | }; | 4359 | }; |
@@ -4384,7 +4384,7 @@ static void __net_exit default_device_exit(struct net *net) | |||
4384 | rtnl_unlock(); | 4384 | rtnl_unlock(); |
4385 | } | 4385 | } |
4386 | 4386 | ||
4387 | static struct pernet_operations default_device_ops = { | 4387 | static struct pernet_operations __net_initdata default_device_ops = { |
4388 | .exit = default_device_exit, | 4388 | .exit = default_device_exit, |
4389 | }; | 4389 | }; |
4390 | 4390 | ||
diff --git a/net/core/dev_mcast.c b/net/core/dev_mcast.c index 647973daca2b..69fff16ece10 100644 --- a/net/core/dev_mcast.c +++ b/net/core/dev_mcast.c | |||
@@ -285,7 +285,7 @@ static void __net_exit dev_mc_net_exit(struct net *net) | |||
285 | proc_net_remove(net, "dev_mcast"); | 285 | proc_net_remove(net, "dev_mcast"); |
286 | } | 286 | } |
287 | 287 | ||
288 | static struct pernet_operations dev_mc_net_ops = { | 288 | static struct pernet_operations __net_initdata dev_mc_net_ops = { |
289 | .init = dev_mc_net_init, | 289 | .init = dev_mc_net_init, |
290 | .exit = dev_mc_net_exit, | 290 | .exit = dev_mc_net_exit, |
291 | }; | 291 | }; |
diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c index 3f6d37deac45..383252b50411 100644 --- a/net/core/net_namespace.c +++ b/net/core/net_namespace.c | |||
@@ -188,6 +188,7 @@ static int __init net_ns_init(void) | |||
188 | 188 | ||
189 | pure_initcall(net_ns_init); | 189 | pure_initcall(net_ns_init); |
190 | 190 | ||
191 | #ifdef CONFIG_NET_NS | ||
191 | static int register_pernet_operations(struct list_head *list, | 192 | static int register_pernet_operations(struct list_head *list, |
192 | struct pernet_operations *ops) | 193 | struct pernet_operations *ops) |
193 | { | 194 | { |
@@ -228,6 +229,23 @@ static void unregister_pernet_operations(struct pernet_operations *ops) | |||
228 | ops->exit(net); | 229 | ops->exit(net); |
229 | } | 230 | } |
230 | 231 | ||
232 | #else | ||
233 | |||
234 | static int register_pernet_operations(struct list_head *list, | ||
235 | struct pernet_operations *ops) | ||
236 | { | ||
237 | if (ops->init == NULL) | ||
238 | return 0; | ||
239 | return ops->init(&init_net); | ||
240 | } | ||
241 | |||
242 | static void unregister_pernet_operations(struct pernet_operations *ops) | ||
243 | { | ||
244 | if (ops->exit) | ||
245 | ops->exit(&init_net); | ||
246 | } | ||
247 | #endif | ||
248 | |||
231 | /** | 249 | /** |
232 | * register_pernet_subsys - register a network namespace subsystem | 250 | * register_pernet_subsys - register a network namespace subsystem |
233 | * @ops: pernet operations structure for the subsystem | 251 | * @ops: pernet operations structure for the subsystem |
diff --git a/net/core/sock.c b/net/core/sock.c index 8fc2f84209e4..c519b439b8b1 100644 --- a/net/core/sock.c +++ b/net/core/sock.c | |||
@@ -2097,7 +2097,3 @@ EXPORT_SYMBOL(sock_wmalloc); | |||
2097 | EXPORT_SYMBOL(sock_i_uid); | 2097 | EXPORT_SYMBOL(sock_i_uid); |
2098 | EXPORT_SYMBOL(sock_i_ino); | 2098 | EXPORT_SYMBOL(sock_i_ino); |
2099 | EXPORT_SYMBOL(sysctl_optmem_max); | 2099 | EXPORT_SYMBOL(sysctl_optmem_max); |
2100 | #ifdef CONFIG_SYSCTL | ||
2101 | EXPORT_SYMBOL(sysctl_rmem_max); | ||
2102 | EXPORT_SYMBOL(sysctl_wmem_max); | ||
2103 | #endif | ||