]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Auto size the tcbhashsize structure based on max sockets.
authorAlfred Perlstein <alfred@FreeBSD.org>
Tue, 27 Nov 2012 03:04:24 +0000 (03:04 +0000)
committerAlfred Perlstein <alfred@FreeBSD.org>
Tue, 27 Nov 2012 03:04:24 +0000 (03:04 +0000)
commit08373e0bc484032a7adffcf8cfe8ba86dd7791f1
tree84684381b067ac961f7a193e334f321e9d113235
parent5466211d6d6d6bd02fe0a2e6ed856ca0a6cd9957
Auto size the tcbhashsize structure based on max sockets.

While here, also make the code that enforces power-of-two more
forgiving, instead of just resetting to 512, graciously round-down
to the next lower power of two.
sys/netinet/tcp_subr.c