Date: Fri, 15 Jun 2012 08:03:22 +0000 (UTC) From: Andre Oppermann <andre@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r237126 - user/andre/tcp_workqueue/sys/netinet Message-ID: <201206150803.q5F83M6D054032@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: andre Date: Fri Jun 15 08:03:21 2012 New Revision: 237126 URL: http://svn.freebsd.org/changeset/base/237126 Log: For retransmits of SYN|ACK from the syncache use the more aggressive and dedicated tcp_syn_backoff[] retransmit schedule instead of the tcp_backoff[] schedule for established connections. Modified: user/andre/tcp_workqueue/sys/netinet/tcp_syncache.c user/andre/tcp_workqueue/sys/netinet/tcp_timer.h Modified: user/andre/tcp_workqueue/sys/netinet/tcp_syncache.c ============================================================================== --- user/andre/tcp_workqueue/sys/netinet/tcp_syncache.c Fri Jun 15 08:01:16 2012 (r237125) +++ user/andre/tcp_workqueue/sys/netinet/tcp_syncache.c Fri Jun 15 08:03:21 2012 (r237126) @@ -379,7 +379,7 @@ static void syncache_timeout(struct syncache *sc, struct syncache_head *sch, int docallout) { sc->sc_rxttime = ticks + - TCPTV_RTOBASE * (tcp_backoff[sc->sc_rxmits]); + TCPTV_RTOBASE * (tcp_syn_backoff[sc->sc_rxmits]); sc->sc_rxmits++; if (TSTMP_LT(sc->sc_rxttime, sch->sch_nextc)) { sch->sch_nextc = sc->sc_rxttime; Modified: user/andre/tcp_workqueue/sys/netinet/tcp_timer.h ============================================================================== --- user/andre/tcp_workqueue/sys/netinet/tcp_timer.h Fri Jun 15 08:01:16 2012 (r237125) +++ user/andre/tcp_workqueue/sys/netinet/tcp_timer.h Fri Jun 15 08:03:21 2012 (r237126) @@ -170,6 +170,7 @@ extern int tcp_rexmit_slop; extern int tcp_msl; extern int tcp_ttl; /* time to live for TCP segs */ extern int tcp_backoff[]; +extern int tcp_syn_backoff[]; extern int tcp_finwait2_timeout; extern int tcp_fast_finwait2_recycle;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206150803.q5F83M6D054032>