From owner-svn-src-user@FreeBSD.ORG Fri Jun 15 08:03:22 2012 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6E77A1065689; Fri, 15 Jun 2012 08:03:22 +0000 (UTC) (envelope-from andre@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [69.147.83.44]) by mx1.freebsd.org (Postfix) with ESMTP id 59F2D8FC16; Fri, 15 Jun 2012 08:03:22 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q5F83MEA054035; Fri, 15 Jun 2012 08:03:22 GMT (envelope-from andre@svn.freebsd.org) Received: (from andre@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q5F83M6D054032; Fri, 15 Jun 2012 08:03:22 GMT (envelope-from andre@svn.freebsd.org) Message-Id: <201206150803.q5F83M6D054032@svn.freebsd.org> From: Andre Oppermann Date: Fri, 15 Jun 2012 08:03:22 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r237126 - user/andre/tcp_workqueue/sys/netinet X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2012 08:03:22 -0000 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;