diff options
author | mav <mav@FreeBSD.org> | 2008-07-26 23:07:34 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2008-07-26 23:07:34 +0000 |
commit | 8a94b46be40b505fc58db156dd09586daba53968 (patch) | |
tree | 402894904ef18c5fda0bf492a4278f8b77fab4f8 /sys | |
parent | 0023432ccb7d63af134efbd3fd6d31194cf5e73a (diff) | |
download | FreeBSD-src-8a94b46be40b505fc58db156dd09586daba53968.zip FreeBSD-src-8a94b46be40b505fc58db156dd09586daba53968.tar.gz |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/udp_usrreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 29015d3..715599e 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 */ |