From 6572aff669380203fe82d1b414faadbf395659ae Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Sun, 7 May 2023 21:39:05 +0200 Subject: [PATCH] BGP: proactively rehash prefix hash up to shorten collision lists --- 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 88639442..e1b2f868 100644 --- a/proto/bgp/attrs.c +++ b/proto/bgp/attrs.c @@ -1677,7 +1677,7 @@ bgp_withdraw_bucket(struct bgp_channel *bc, struct bgp_bucket *b) #define PXH_FN(n,i,h) h #define PXH_REHASH bgp_pxh_rehash -#define PXH_PARAMS /8, *2, 2, 2, 12, 24 +#define PXH_PARAMS /16, *1, 2, 2, 12, 24 HASH_DEFINE_REHASH_FN(PXH, struct bgp_prefix)