diff options
author | silby <silby@FreeBSD.org> | 2001-06-23 03:21:46 +0000 |
---|---|---|
committer | silby <silby@FreeBSD.org> | 2001-06-23 03:21:46 +0000 |
commit | f41767543e91978acb89276274f32fe6566ef613 (patch) | |
tree | 8d364d91b3427e5e39be4b2952a487aee0ba2a8c /sys/netinet/tcp_usrreq.c | |
parent | cb05fc6c2a8bdf494106b7b9b73e2a36ef37f0df (diff) | |
download | FreeBSD-src-f41767543e91978acb89276274f32fe6566ef613.zip FreeBSD-src-f41767543e91978acb89276274f32fe6566ef613.tar.gz |
Eliminate the allocation of a tcp template structure for each
connection. The information contained in a tcptemp can be
reconstructed from a tcpcb when needed.
Previously, tcp templates required the allocation of one
mbuf per connection. On large systems, this change should
free up a large number of mbufs.
Reviewed by: bmilekic, jlemon, ru
MFC after: 2 weeks
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index aea92c0..ddd7d9b 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -749,12 +749,6 @@ tcp_connect(tp, nam, p) inp->inp_fport = sin->sin_port; in_pcbrehash(inp); - tp->t_template = tcp_template(tp); - if (tp->t_template == 0) { - in_pcbdisconnect(inp); - return ENOBUFS; - } - /* Compute window scaling to request. */ while (tp->request_r_scale < TCP_MAX_WINSHIFT && (TCP_MAXWIN << tp->request_r_scale) < so->so_rcv.sb_hiwat) @@ -841,12 +835,6 @@ tcp6_connect(tp, nam, p) inp->in6p_flowinfo = sin6->sin6_flowinfo; in_pcbrehash(inp); - tp->t_template = tcp_template(tp); - if (tp->t_template == 0) { - in6_pcbdisconnect(inp); - return ENOBUFS; - } - /* Compute window scaling to request. */ while (tp->request_r_scale < TCP_MAX_WINSHIFT && (TCP_MAXWIN << tp->request_r_scale) < so->so_rcv.sb_hiwat) |