ip_tunnel: embed hash list head
authorstephen hemminger <stephen@networkplumber.org>
Tue, 6 Aug 2013 05:51:37 +0000 (22:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Aug 2013 23:47:52 +0000 (16:47 -0700)
commit6261d983f226f0a6a8d4d32b57a032bc23a5ebb6
tree4bed875ac9758214183ebbed0e9b0f62afba617b
parent8a56d243ca60c92c0b80307422ae75676873a715
ip_tunnel: embed hash list head

The IP tunnel hash heads can be embedded in the per-net structure
since it is a fixed size. Reduce the size so that the total structure
fits in a page size. The original size was overly large, even NETDEV_HASHBITS
is only 8 bits!

Also, add some white space for readability.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Pravin B Shelar <pshelar@nicira.com>.
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_tunnels.h
net/ipv4/ip_tunnel.c