diff options
author | dg <dg@FreeBSD.org> | 1997-04-03 05:14:45 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1997-04-03 05:14:45 +0000 |
commit | 3913f72826062a29e3639b65feb86391e7b95f4e (patch) | |
tree | 9545f8a4208243eb8a2fb0174ccac502f1597e86 /sys/netinet/tcp_timewait.c | |
parent | b33b19313452a78950f97db79a75fcd82412e9f7 (diff) | |
download | FreeBSD-src-3913f72826062a29e3639b65feb86391e7b95f4e.zip FreeBSD-src-3913f72826062a29e3639b65feb86391e7b95f4e.tar.gz |
Reorganize elements of the inpcb struct to take better advantage of
cache lines. Removed the struct ip proto since only a couple of chars
were actually being used in it. Changed the order of compares in the
PCB hash lookup to take advantage of partial cache line fills (on PPro).
Discussed-with: wollman
Diffstat (limited to 'sys/netinet/tcp_timewait.c')
-rw-r--r-- | sys/netinet/tcp_timewait.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c index f7b4469..7987789 100644 --- a/sys/netinet/tcp_timewait.c +++ b/sys/netinet/tcp_timewait.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tcp_subr.c 8.2 (Berkeley) 5/24/95 - * $Id: tcp_subr.c,v 1.34 1997/02/22 09:41:41 peter Exp $ + * $Id: tcp_subr.c,v 1.35 1997/03/03 09:23:36 davidg Exp $ */ #include <sys/param.h> @@ -276,7 +276,7 @@ tcp_newtcpcb(inp) tp->t_rxtcur = TCPTV_RTOBASE; tp->snd_cwnd = TCP_MAXWIN << TCP_MAX_WINSHIFT; tp->snd_ssthresh = TCP_MAXWIN << TCP_MAX_WINSHIFT; - inp->inp_ip.ip_ttl = ip_defttl; + inp->inp_ip_ttl = ip_defttl; inp->inp_ppcb = (caddr_t)tp; return (tp); } |