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)
commit0ca7a4c87d27dd2fde0783dec94a821d6d035696
tree3f9d1cd9a8146ce751e43f8f103a255fc7ec199d
parent4e5ca78541c549ec8886ad2fc19306f35ee672e1
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