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)
commit84a3aa000eacbaf841d745b07ef3a3280899056b
tree013d13bb51e1046f6864ae634edaf0dad30da2e7
parent78ed11a56bd8679aa6d51eb36b448342c59a7824
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