summaryrefslogtreecommitdiffstats
path: root/net/ipv4/devinet.c
diff options
context:
space:
mode:
authorPavel Emelyanov2007-12-01 14:08:16 +0100
committerDavid S. Miller2008-01-28 23:55:24 +0100
commitc3bac5a71b24f6ed892b250d4f7511cedc33d34c (patch)
tree449fac046faf749a6c24e5edc9c03c2441e853b3 /net/ipv4/devinet.c
parent[NEIGH]: Cleanup the neigh_sysctl_register (diff)
downloadkernel-qcow2-linux-c3bac5a71b24f6ed892b250d4f7511cedc33d34c.tar.gz
kernel-qcow2-linux-c3bac5a71b24f6ed892b250d4f7511cedc33d34c.tar.xz
kernel-qcow2-linux-c3bac5a71b24f6ed892b250d4f7511cedc33d34c.zip
[NEIGH]: Use the ctl paths to create neighbours sysctls
The appropriate path is prepared right inside this function. It is prepared similar to how the ctl tables were. Since the path is modified, it is put on the stack, to avoid possible races with multiple calls to neigh_sysctl_register() : it is called by protocols and I didn't find any protection in this case. Did I overlooked the rtnl lock?. The stack growth of the neigh_sysctl_register() is 40 bytes. I believe this is OK, since this is not that much and this function is not called with the deep stack (device/protocols register). The device's name is stored on the template to free it later. This will help with the net namespaces, as each namespace should have its own set of these ctls. Besides, this saves ~350 bytes from the neigh template :) 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/devinet.c')
0 files changed, 0 insertions, 0 deletions