summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
authorMaria Jan Matejka <mq@jmq.cz>2019-06-11 13:19:21 +0000
committerMaria Matejka <mq@ucw.cz>2019-07-01 09:05:54 +0200
commit026bfedb332d8c0dde28c693c177fe993b5df26d (patch)
tree2accd60dea97d2d5245db8314d893bfdce51b0c9 /proto
parent9dac814ee89fe41856923a532c87ffd14dbc0f79 (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.
Diffstat (limited to 'proto')
-rw-r--r--proto/bgp/attrs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c
index 64a25995..9a1528a0 100644
--- a/proto/bgp/attrs.c
+++ b/proto/bgp/attrs.c
@@ -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)