Skip to content
Snippets Groups Projects
Commit 026bfedb authored by Maria Matejka's avatar Maria Matejka Committed by Maria Matejka
Browse files

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.
parent 9dac814e
Branches
Tags
No related merge requests found
Pipeline #49803 passed with stages
in 4 minutes and 8 seconds
......@@ -1302,7 +1302,7 @@ bgp_withdraw_bucket(struct bgp_channel *c, struct bgp_bucket *b)
#define PXH_FN(n,i,h) h
#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)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment