Eric Dumazet 9bef83edfb fib_hash: embed initial hash table in fn_zone
While looking for false sharing problems, I noticed
sizeof(struct fn_zone) was small (28 bytes) and possibly sharing a cache
line with an often written kernel structure.

Most of the time, fn_zone uses its initial hash table of 16 slots.

We can avoid the false sharing problem by embedding this initial hash
table in fn_zone itself, so that sizeof(fn_zone) > L1_CACHE_BYTES

We did a similar optimization in commit a6501e080c (Reduce memory needs
and speedup lookups)

Add a fz_revorder field to speedup fn_hash() a bit.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-10-17 13:53:15 -07:00
..
2010-09-23 14:33:39 -07:00
2010-09-15 22:06:05 -07:00
2010-02-22 16:20:22 -08:00
2010-10-03 21:50:51 -07:00
2010-08-19 00:08:30 -07:00
2010-09-23 14:33:39 -07:00
2010-09-23 14:33:39 -07:00
2010-06-28 23:24:29 -07:00
2010-02-22 16:20:22 -08:00
2010-10-03 21:50:53 -07:00
2010-06-30 13:31:19 -07:00
2010-08-19 00:08:30 -07:00
2010-06-26 22:00:03 -07:00
2009-03-02 03:00:15 -08:00
2009-03-02 03:00:15 -08:00
2010-10-17 13:46:33 -07:00
2010-09-23 14:33:39 -07:00
2010-09-23 14:33:39 -07:00
2009-05-25 22:44:59 -07:00
2010-09-23 14:33:39 -07:00
2010-07-12 12:57:54 -07:00
2010-07-12 12:57:54 -07:00