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.
This commit is contained in:
Alexander Motin 2008-07-26 23:07:34 +00:00
parent 0ca3b0967b
commit e2ed8f3514
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180836

View File

@ -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 */