From 354afcab04407d728a4d59877767f510e0993141 Mon Sep 17 00:00:00 2001 From: Maria Jan Matejka Date: Tue, 11 Jun 2019 13:19:21 +0000 Subject: [PATCH] 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. --- proto/bgp/attrs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c index 05fcfe72..aecdee57 100644 --- a/proto/bgp/attrs.c +++ b/proto/bgp/attrs.c @@ -924,7 +924,7 @@ bgp_free_bucket(struct bgp_proto *p, struct bgp_bucket *buck) #define PXH_FN(p,l,i) ipa_hash32(p) ^ u32_hash((l << 16) ^ i) #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)