[IPV6]: Unify and cleanup calls to addrconf_sysctl_register
authorPavel Emelyanov <xemul@openvz.org>
Sat, 1 Dec 2007 13:58:37 +0000 (00:58 +1100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:55:38 +0000 (14:55 -0800)
commitf52295a9c55ccb4d9b3580ce889f958ac740a44b
treec78f96914eba466c30172a7d02b7af9943e10d89
parentbfada697bd534d2c16fd07fbef3a4924c4d4e014
[IPV6]: Unify and cleanup calls to addrconf_sysctl_register

Currently this call is (ab)used similar to devinet one - it
registers sysctls for devices and for the "default" confs, while
the "all" sysctls are registered separately. But unlike its
devinet brother, the passed inet6_device is needed.

The fix is to make a __addrconf_sysctl_register(), which registers
sysctls for all "devices" we need, including "default" and "all" :)

The original addrconf_sysctl_register() calls the introduced
function, passing the inet6_device, device name and ifindex (to
be used as procname and ctl_name) into it.

Thanks to Herbert again for pointing out, that we can shrink the
argument list to 1 :)

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/ipv6/addrconf.c