]> git.baikalelectronics.ru Git - kernel.git/commit
net: increase frag hash size
authorJesper Dangaard Brouer <brouer@redhat.com>
Thu, 25 Apr 2013 09:52:25 +0000 (09:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Apr 2013 17:33:06 +0000 (13:33 -0400)
commitc530717d7c9c2d3b2859aff30010ba08e70942cc
tree72c85c751bb4ef2207fb68fb5952f58f5c3777b7
parent554b1cf2097350d6a06cce8007573fa183b3da51
net: increase frag hash size

Increase fragmentation hash bucket size to 1024 from old 64 elems.

After we increased the frag mem limits commit fcdcf020 (net: increase
fragment memory usage limits) the hash size of 64 elements is simply
too small.  Also considering the mem limit is per netns and the hash
table is shared for all netns.

For the embedded people, note that this increase will change the hash
table/array from using approx 1 Kbytes to 16 Kbytes.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_frag.h