From f516d7cfe94d56fc537c4c29043fe821bf947adc Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Sat, 8 Jun 2024 18:26:02 +0200 Subject: [PATCH] Netindex: fix absurd hash parameters --- lib/netindex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/netindex.c b/lib/netindex.c index 772c3a97..cc518b58 100644 --- a/lib/netindex.c +++ b/lib/netindex.c @@ -16,10 +16,10 @@ struct netindex netindex_in_progress; #define NETINDEX_NEXT(n) (n)->next #define NETINDEX_EQ(h,n,i,o) ((h == i) && net_equal(n,o)) #define NETINDEX_FN(h,n) (h) -#define NETINDEX_ORDER 4 /* Initial */ +#define NETINDEX_ORDER 12 /* Initial */ #define NETINDEX_REHASH netindex_rehash -#define NETINDEX_PARAMS /8, *1, 2, 2, 4, 28 +#define NETINDEX_PARAMS /8, *2, 2, 2, 12, 28 static void NETINDEX_REHASH(void *_v) { netindex_spinhash *v = _v;