]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: prepare net initialization for IP accounting
authorPavel Emelyanov <xemul@openvz.org>
Thu, 17 Jul 2008 03:19:08 +0000 (20:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jul 2008 03:19:08 +0000 (20:19 -0700)
commit935fafc9ebd74d68821480c1bae49e7e165d0f9e
tree013d13bb51e1046f6864ae634edaf0dad30da2e7
parent76b79c56ca3779fb4580e2b5023b07bc4ceaed37
ipv4: prepare net initialization for IP accounting

Some places, that deal with IP statistics already have where to
get a struct net from, but use it directly, without declaring
a separate variable on the stack.

So, save this net on the stack for future IP_XXX_STATS macros.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_connection_sock.c
net/ipv4/ip_fragment.c
net/ipv4/udp.c