]> git.baikalelectronics.ru Git - kernel.git/commit
net ax25: Simplify and cleanup the ax25 sysctl handling.
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 19 Apr 2012 13:34:18 +0000 (13:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Apr 2012 01:22:28 +0000 (21:22 -0400)
commitfd315519eb56aa71ecdc77bf666a35f6eb777744
tree3f9d1cd9a8146ce751e43f8f103a255fc7ec199d
parenta33d9058cd0d1e3ae7f23814ab7583cb0722bb4c
net ax25: Simplify and cleanup the ax25 sysctl handling.

Don't register/unregister every ax25 table in a batch.  Instead register
and unregister per device ax25 sysctls as ax25 devices come and go.

This moves ax25 to be a completely modern sysctl user.  Registering the
sysctls in just the initial network namespace, removing the use of
.child entries that are no longer natively supported by the sysctl core
and taking advantage of the fact that there are no longer any ordering
constraints between registering and unregistering different sysctl
tables.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ax25.h
net/ax25/af_ax25.c
net/ax25/ax25_dev.c
net/ax25/sysctl_net_ax25.c