]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV4]: Use ctl paths to register devinet sysctls
authorPavel Emelyanov <xemul@openvz.org>
Sat, 1 Dec 2007 13:57:08 +0000 (00:57 +1100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:55:37 +0000 (14:55 -0800)
commit4efb17aa92614f4ebc435421aa40aea8b6227f2d
treeed62ad7709e70f5ee6286497bb9b975ef8fa7562
parent60a5e8a69a053975a51db60ef8f17e59512a245b
[IPV4]: Use ctl paths to register devinet sysctls

This looks very much like the patch for neighbors.

The path is also located on the stack and is prepared
inside the function. This time, the call to the registering
function is guarded with the RTNL lock, but I decided
to keep it on the stack not to litter the devinet.c file
with unneeded names and to make it look similar to the
neighbors code.

This is also intended to help us with the net namespaces
and saves the vmlinux size as well - this time by more
than 670 bytes.

The difference from the first version is just the patch
offsets, that changed due to changes in the patch #2.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c