diff options
author | Maria Jan Matejka <mq@jmq.cz> | 2019-06-11 13:19:21 +0000 |
---|---|---|
committer | Maria Jan Matejka <mq@jmq.cz> | 2019-06-11 13:19:21 +0000 |
commit | 354afcab04407d728a4d59877767f510e0993141 (patch) | |
tree | 20de7b24e0d09384d1f68ff0478f8e92eb849fb2 | |
parent | e989b901fca6efe2e43c7cfeb5286cc8e4f2ab76 (diff) |
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.
-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 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) |