From owner-svn-src-head@FreeBSD.ORG Sun Oct 28 21:45:58 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B6B837B8 for ; Sun, 28 Oct 2012 21:45:58 +0000 (UTC) (envelope-from andre@freebsd.org) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.freebsd.org (Postfix) with ESMTP id 193DA8FC12 for ; Sun, 28 Oct 2012 21:45:57 +0000 (UTC) Received: (qmail 92997 invoked from network); 28 Oct 2012 23:22:59 -0000 Received: from c00l3r.networx.ch (HELO [127.0.0.1]) ([62.48.2.2]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 28 Oct 2012 23:22:59 -0000 Message-ID: <508DA793.3060608@freebsd.org> Date: Sun, 28 Oct 2012 22:45:55 +0100 From: Andre Oppermann User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: Rui Paulo Subject: Re: svn commit: r242263 - head/sys/netinet References: <201210281920.q9SJKNS0081242@svn.freebsd.org> <0220FA6E-FFCB-4489-BF57-3493C2531DD7@felyko.com> In-Reply-To: <0220FA6E-FFCB-4489-BF57-3493C2531DD7@felyko.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2012 21:45:58 -0000 On 28.10.2012 22:26, Rui Paulo wrote: > On 28 Oct 2012, at 12:20, Andre Oppermann wrote: > >> Author: andre >> Date: Sun Oct 28 19:20:23 2012 >> New Revision: 242263 >> URL: http://svn.freebsd.org/changeset/base/242263 >> >> Log: >> Add SACK_PERMIT to the list of TCP options that are switched off after >> retransmitting a SYN three times. >> >> MFC after: 2 weeks >> >> Modified: >> head/sys/netinet/tcp_timer.c >> >> Modified: head/sys/netinet/tcp_timer.c >> ============================================================================== >> --- head/sys/netinet/tcp_timer.c Sun Oct 28 19:16:22 2012 (r242262) >> +++ head/sys/netinet/tcp_timer.c Sun Oct 28 19:20:23 2012 (r242263) >> @@ -585,7 +585,7 @@ tcp_timer_rexmt(void * xtp) >> * unknown-to-them TCP options. >> */ >> if ((tp->t_state == TCPS_SYN_SENT) && (tp->t_rxtshift == 3)) >> - tp->t_flags &= ~(TF_REQ_SCALE|TF_REQ_TSTMP); >> + tp->t_flags &= ~(TF_REQ_SCALE|TF_REQ_TSTMP|TF_SACK_PERMIT); >> /* >> * If we backed off this far, our srtt estimate is probably bogus. >> * Clobber it so we'll take the next rtt measurement as our srtt; > > Do you have any data regarding this commit or you're just trying to make sure > the SACK option follows the same behaviour of the WSCALE/TSTMP options? The latter. For the purpose of turning off the options after three tries it is contradictory to leave SACK on. There is discussion of scrapping this whole option disabling altogether. Until then better have the 'correct' behavior. -- Andre