summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_hostcache.c
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2004-11-02 22:22:22 +0000
committerandre <andre@FreeBSD.org>2004-11-02 22:22:22 +0000
commitd06f3bef4e5637b17335e5d7d51b5c3d5157cf66 (patch)
treef082b55921c42f223ca230e7961d047b01a25539 /sys/netinet/tcp_hostcache.c
parenta033067901d630caa7ecc38fcf8a0d416a4b6d3d (diff)
downloadFreeBSD-src-d06f3bef4e5637b17335e5d7d51b5c3d5157cf66.zip
FreeBSD-src-d06f3bef4e5637b17335e5d7d51b5c3d5157cf66.tar.gz
Remove RFC1644 T/TCP support from the TCP side of the network stack.
A complete rationale and discussion is given in this message and the resulting discussion: http://docs.freebsd.org/cgi/mid.cgi?4177C8AD.6060706 Note that this commit removes only the functional part of T/TCP from the tcp_* related functions in the kernel. Other features introduced with RFC1644 are left intact (socket layer changes, sendmsg(2) on connection oriented protocols) and are meant to be reused by a simpler and less intrusive reimplemention of the previous T/TCP functionality. Discussed on: -arch
Diffstat (limited to 'sys/netinet/tcp_hostcache.c')
-rw-r--r--sys/netinet/tcp_hostcache.c60
1 files changed, 0 insertions, 60 deletions
diff --git a/sys/netinet/tcp_hostcache.c b/sys/netinet/tcp_hostcache.c
index bebd51f..e8fa357 100644
--- a/sys/netinet/tcp_hostcache.c
+++ b/sys/netinet/tcp_hostcache.c
@@ -121,7 +121,6 @@ struct hc_metrics {
u_long rmx_cwnd; /* congestion window */
u_long rmx_sendpipe; /* outbound delay-bandwidth product */
u_long rmx_recvpipe; /* inbound delay-bandwidth product */
- struct rmxp_tao rmx_tao; /* TAO cache for T/TCP */
/* tcp hostcache internal data */
int rmx_expire; /* lifetime for object */
u_long rmx_hits; /* number of hits */
@@ -457,28 +456,6 @@ tcp_hc_getmtu(struct in_conninfo *inc)
}
/*
- * External function: lookup an entry in the hostcache and fill out the
- * supplied t/tcp tao structure. Fills in null when no entry was found
- * or a value is not set.
- */
-void
-tcp_hc_gettao(struct in_conninfo *inc, struct rmxp_tao *tao)
-{
- struct hc_metrics *hc_entry;
-
- hc_entry = tcp_hc_lookup(inc);
- if (hc_entry == NULL) {
- bzero(tao, sizeof(*tao));
- return;
- }
- hc_entry->rmx_hits++;
- hc_entry->rmx_expire = tcp_hostcache.expire; /* start over again */
-
- bcopy(&hc_entry->rmx_tao, tao, sizeof(*tao));
- THC_UNLOCK(&hc_entry->rmx_head->hch_mtx);
-}
-
-/*
* External function: update the mtu value of an entry in the hostcache.
* Creates a new entry if none was found.
*/
@@ -598,43 +575,6 @@ tcp_hc_update(struct in_conninfo *inc, struct hc_metrics_lite *hcml)
}
/*
- * External function: update the t/tcp tao of an entry in the hostcache.
- * Creates a new entry if none was found.
- */
-void
-tcp_hc_updatetao(struct in_conninfo *inc, int field, tcp_cc ccount, u_short mss)
-{
- struct hc_metrics *hc_entry;
-
- hc_entry = tcp_hc_lookup(inc);
- if (hc_entry == NULL) {
- hc_entry = tcp_hc_insert(inc);
- if (hc_entry == NULL)
- return;
- }
- hc_entry->rmx_updates++;
- hc_entry->rmx_expire = tcp_hostcache.expire; /* start over again */
-
- switch(field) {
- case TCP_HC_TAO_CC:
- hc_entry->rmx_tao.tao_cc = ccount;
- break;
-
- case TCP_HC_TAO_CCSENT:
- hc_entry->rmx_tao.tao_ccsent = ccount;
- break;
-
- case TCP_HC_TAO_MSSOPT:
- hc_entry->rmx_tao.tao_mssopt = mss;
- break;
- }
-
- TAILQ_REMOVE(&hc_entry->rmx_head->hch_bucket, hc_entry, rmx_q);
- TAILQ_INSERT_HEAD(&hc_entry->rmx_head->hch_bucket, hc_entry, rmx_q);
- THC_UNLOCK(&hc_entry->rmx_head->hch_mtx);
-}
-
-/*
* Sysctl function: prints the list and values of all hostcache entries in
* unsorted order.
*/
OpenPOWER on IntegriCloud