]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: 16 slots in initial fib_info hash table
authorEric Dumazet <edumazet@google.com>
Sun, 21 Oct 2012 20:12:09 +0000 (20:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Oct 2012 18:29:06 +0000 (14:29 -0400)
commit6add8c5e60bb4a72335cb17c6bfc323ae798af71
tree77762849ae55afdd9ba6a9fbbf0855a68f7c6372
parent31565f43b253fa52d018d79460dc02586dbdb4e0
ipv4: 16 slots in initial fib_info hash table

A small host typically needs ~10 fib_info structures, so create initial
hash table with 16 slots instead of only one. This removes potential
false sharing and reallocs/rehashes (1->2->4->8->16)

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_semantics.c