From: Maria Matejka Date: Sun, 7 May 2023 19:39:05 +0000 (+0200) Subject: BGP: proactively rehash prefix hash up to shorten collision lists X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6572aff669380203fe82d1b414faadbf395659ae;p=thirdparty%2Fbird.git BGP: proactively rehash prefix hash up to shorten collision lists --- diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c index 886394421..e1b2f868c 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)