aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_hybla.c
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2007-12-02 00:55:54 +1100
committerDavid S. Miller <davem@davemloft.net>2008-01-28 14:55:36 -0800
commit66f27a52037c89183e83689b0531412577be0101 (patch)
treea746d24ad70e9eb7d3aef9e4c798cd65db2cfe63 /net/ipv4/tcp_hybla.c
parentedae58ead57319b0bcf16e48a32365145c7bf0b7 (diff)
downloadkernel_samsung_tuna-66f27a52037c89183e83689b0531412577be0101.zip
kernel_samsung_tuna-66f27a52037c89183e83689b0531412577be0101.tar.gz
kernel_samsung_tuna-66f27a52037c89183e83689b0531412577be0101.tar.bz2
[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 'net/ipv4/tcp_hybla.c')
0 files changed, 0 insertions, 0 deletions