From: Pavel Emelyanov Date: Sun, 16 Dec 2007 21:31:14 +0000 (-0800) Subject: [IPV4]: Store the net pointer on devinet's ctl tables X-Git-Tag: v2.6.25-rc1~1162^2~1076 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0ce9fb304871daa0dd2bf0efb1b241b9fa4a279;p=pandora-kernel.git [IPV4]: Store the net pointer on devinet's ctl tables Some handers and strategies of devinet sysctl tables need to know the net to propagate the ctl change to all the net devices. I use the (currently unused) extra2 pointer on the tables to get it. Holding the reference on the struct net is not possible, because otherwise we'll get a net->ctl_table->net circular dependency. But since the ctl tables are unregistered during the net destruction, this is safe to get it w/o additional protection. Signed-off-by: Pavel Emelyanov Signed-off-by: David S. Miller --- Reading git-diff-tree failed