]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
BGP: Prefix hash is too small, increase its max size.
authorMaria Jan Matejka <mq@jmq.cz>
Tue, 11 Jun 2019 13:19:21 +0000 (13:19 +0000)
committerMaria Matejka <mq@ucw.cz>
Mon, 1 Jul 2019 07:05:54 +0000 (09:05 +0200)
This doesn't make any change for you until you have
millions of updates waiting to be sent. Increasing
the max hash size from 2^20 to 2^24.

proto/bgp/attrs.c

index 64a259951a97ee5e73894a089aea317dac703355..9a1528a0d161ba9820854c46d28ced9173b1aac5 100644 (file)
@@ -1302,7 +1302,7 @@ bgp_withdraw_bucket(struct bgp_channel *c, struct bgp_bucket *b)
 #define PXH_FN(n,i,h)          h
 
 #define PXH_REHASH             bgp_pxh_rehash
-#define PXH_PARAMS             /8, *2, 2, 2, 8, 20
+#define PXH_PARAMS             /8, *2, 2, 2, 8, 24
 
 
 HASH_DEFINE_REHASH_FN(PXH, struct bgp_prefix)