]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
BGP: proactively rehash prefix hash up to shorten collision lists
authorMaria Matejka <mq@ucw.cz>
Sun, 7 May 2023 19:39:05 +0000 (21:39 +0200)
committerMaria Matejka <mq@ucw.cz>
Sun, 7 May 2023 19:39:05 +0000 (21:39 +0200)
proto/bgp/attrs.c

index 8863944213db0d031e8241a911943bbbc53df900..e1b2f868cec7605d2945ba8687a0dd274d8318ca 100644 (file)
@@ -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)