diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2007-12-01 08:55:54 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:55:36 -0500 |
commit | 66f27a52037c89183e83689b0531412577be0101 (patch) | |
tree | a746d24ad70e9eb7d3aef9e4c798cd65db2cfe63 /drivers/ieee1394/highlevel.c | |
parent | edae58ead57319b0bcf16e48a32365145c7bf0b7 (diff) |
[IPV4]: Unify and cleanup calls to devinet_sysctl_register
Currently this call is used to register sysctls for devices
and for the "default" confs. The "all" sysctls are registered
separately.
Besides, the inet_device is passed to this function, but it is
not needed there at all - just the device name and ifindex are
required.
Thanks to Herbert, who noticed, that this call doesn't even
require the devconf pointer (the last argument) - all we need
we can take from the in_device itself.
The fix is to make a __devinet_sysctl_register(), which registers
sysctls for all "devices" we need, including "default" and "all" :)
The original devinet_sysctl_register() works with struct net_device,
not the inet_device, and calls the introduced function, passing
the device name and ifindex (to be used as procname and ctl_name)
into it.
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>
Diffstat (limited to 'drivers/ieee1394/highlevel.c')
0 files changed, 0 insertions, 0 deletions