From e2ed8f35143f38fc0b6061309c14fc79898544b0 Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Sat, 26 Jul 2008 23:07:34 +0000 Subject: [PATCH] Increase UDBHASHSIZE from 16 to 128 items. Previous value was chosen 10 years ago and not very effective now. This change gives several percents speedup on 1000 L2TP mpd links. --- sys/netinet/udp_usrreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 29015d3a5f7..715599e8b6a 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -132,7 +132,7 @@ struct inpcbhead udb; /* from udp_var.h */ struct inpcbinfo udbinfo; #ifndef UDBHASHSIZE -#define UDBHASHSIZE 16 +#define UDBHASHSIZE 128 #endif struct udpstat udpstat; /* from udp_var.h */