summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJesper Dangaard Brouer <brouer@redhat.com>2013-04-25 11:52:25 +0200
committerDavid S. Miller <davem@davemloft.net>2013-04-29 19:33:06 +0200
commita4c4009f4f54dabaaea1bb2b2c3c8930e93cd409 (patch)
tree72c85c751bb4ef2207fb68fb5952f58f5c3777b7 /include/net
parentatm: he: use mdelay instead of large udelay constants (diff)
downloadlinux-a4c4009f4f54dabaaea1bb2b2c3c8930e93cd409.tar.xz
linux-a4c4009f4f54dabaaea1bb2b2c3c8930e93cd409.zip
net: increase frag hash size
Increase fragmentation hash bucket size to 1024 from old 64 elems. After we increased the frag mem limits commit c2a93660 (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>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/inet_frag.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/inet_frag.h b/include/net/inet_frag.h
index 6f41b45e819e..4182c9be8bb5 100644
--- a/include/net/inet_frag.h
+++ b/include/net/inet_frag.h
@@ -41,7 +41,7 @@ struct inet_frag_queue {
struct netns_frags *net;
};
-#define INETFRAGS_HASHSZ 64
+#define INETFRAGS_HASHSZ 1024
/* averaged:
* max_depth = default ipfrag_high_thresh / INETFRAGS_HASHSZ /