From: Maria Jan Matejka Date: Tue, 11 Jun 2019 13:19:21 +0000 (+0000) Subject: BGP: Prefix hash is too small, increase its max size. X-Git-Tag: v2.0.5~31 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fbird.git;a=commitdiff_plain;h=026bfedb332d8c0dde28c693c177fe993b5df26d BGP: Prefix hash is too small, increase its max size. 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. --- diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c index 64a259951..9a1528a0d 100644 --- a/proto/bgp/attrs.c +++ b/proto/bgp/attrs.c @@ -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)