]> 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)
commit1feb43813b1eeab473fc85495e52124b2ff8e9ac
tree3f9d1cd9a8146ce751e43f8f103a255fc7ec199d
parenta1783e5b890b027156020ca3b04aaddddfb61bdc
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