diff options
author | Maria Matejka <mq@ucw.cz> | 2023-05-07 21:39:05 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2023-05-11 11:41:01 +0200 |
commit | bb28b16fd6b9173ffdfaedddb3b2fd6de772674f (patch) | |
tree | e012af61ea65610dee4939a5f7862b29772687b3 | |
parent | 318ac8720fcf5ab14ef794d36947870abb7d85f9 (diff) |
BGP: proactively rehash prefix hash up to shorten collision lists
-rw-r--r-- | proto/bgp/attrs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |