]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Introduce tcp_hostcache and remove the tcp specific metrics from
authorAndre Oppermann <andre@FreeBSD.org>
Thu, 20 Nov 2003 21:47:20 +0000 (21:47 +0000)
committerAndre Oppermann <andre@FreeBSD.org>
Thu, 20 Nov 2003 21:47:20 +0000 (21:47 +0000)
commitfc906dd88f37c3196167ff966b5d6e108f67bd40
tree4d5bd06dc10baff74a390f96602bc94b37a38dab
parentd784bc82f2720525889cc209ece2ca908d6a7515
Introduce tcp_hostcache and remove the tcp specific metrics from
the routing table.  Move all usage and references in the tcp stack
from the routing table metrics to the tcp hostcache.

It caches measured parameters of past tcp sessions to provide better
initial start values for following connections from or to the same
source or destination.  Depending on the network parameters to/from
the remote host this can lead to significant speedups for new tcp
connections after the first one because they inherit and shortcut
the learning curve.

tcp_hostcache is designed for multiple concurrent access in SMP
environments with high contention and is hash indexed by remote
ip address.

It removes significant locking requirements from the tcp stack with
regard to the routing table.

Reviewed by: sam (mentor), bms
Reviewed by: -net, -current, core@kame.net (IPv6 parts)
Approved by: re (scottl)
sys/netinet6/raw_ip6.c