]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/blobdiff - net/ipv4/fib_semantics.c
ipv4: 16 slots in initial fib_info hash table
[can-eth-gw-linux.git] / net / ipv4 / fib_semantics.c
index 71b125cd5db18a3af37d124d4eb3495f3e03fdea..4797a800faf809dd7fae7c958de67181d67e58d2 100644 (file)
@@ -803,7 +803,7 @@ struct fib_info *fib_create_info(struct fib_config *cfg)
                unsigned int bytes;
 
                if (!new_size)
-                       new_size = 1;
+                       new_size = 16;
                bytes = new_size * sizeof(struct hlist_head *);
                new_info_hash = fib_info_hash_alloc(bytes);
                new_laddrhash = fib_info_hash_alloc(bytes);