diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-11-04 19:19:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-08 15:10:59 -0500 |
commit | 8ce120f11898c921329a5f618d01dcc1e8e69cac (patch) | |
tree | 471821e87eb020e4e9dcf66124e862e7471220a1 /net/ipv4/ipip.c | |
parent | 2bc8ca40f951163b3bb75949479e2755c12c1b96 (diff) |
net: better pcpu data alignment
Tunnels can force an alignment of their percpu data to reduce number of
cache lines used in fast path, or read in .ndo_get_stats()
percpu_alloc() is a very fine grained allocator, so any small hole will
be used anyway.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ipip.c')
-rw-r--r-- | net/ipv4/ipip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c index 065effd8349a..94906908a416 100644 --- a/net/ipv4/ipip.c +++ b/net/ipv4/ipip.c | |||
@@ -148,7 +148,7 @@ struct pcpu_tstats { | |||
148 | unsigned long rx_bytes; | 148 | unsigned long rx_bytes; |
149 | unsigned long tx_packets; | 149 | unsigned long tx_packets; |
150 | unsigned long tx_bytes; | 150 | unsigned long tx_bytes; |
151 | }; | 151 | } __attribute__((aligned(4*sizeof(unsigned long)))); |
152 | 152 | ||
153 | static struct net_device_stats *ipip_get_stats(struct net_device *dev) | 153 | static struct net_device_stats *ipip_get_stats(struct net_device *dev) |
154 | { | 154 | { |