From owner-svn-src-head@FreeBSD.ORG Sat Aug 9 21:01:24 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A986267A for ; Sat, 9 Aug 2014 21:01:24 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 80D2A283F for ; Sat, 9 Aug 2014 21:01:24 +0000 (UTC) Received: from hiren (uid 1318) (envelope-from hiren@FreeBSD.org) id 209b by svn.freebsd.org (DragonFly Mail Agent v0.9+); Sat, 09 Aug 2014 21:01:24 +0000 From: Hiren Panchasara Date: Sat, 9 Aug 2014 21:01:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r269766 - head/sys/netinet X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <53e68c24.209b.71b21d96@svn.freebsd.org> X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 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: Sat, 09 Aug 2014 21:01:24 -0000 Author: hiren Date: Sat Aug 9 21:01:24 2014 New Revision: 269766 URL: http://svnweb.freebsd.org/changeset/base/269766 Log: Improve comments by listing a criteria for automatic increment of receive socket buffer. Reviewed by: jmg Modified: head/sys/netinet/tcp_input.c Modified: head/sys/netinet/tcp_input.c ============================================================================== --- head/sys/netinet/tcp_input.c Sat Aug 9 20:40:03 2014 (r269765) +++ head/sys/netinet/tcp_input.c Sat Aug 9 21:01:24 2014 (r269766) @@ -1793,11 +1793,13 @@ tcp_do_segment(struct mbuf *m, struct tc * reassembly queue. * * The criteria to step up the receive buffer one notch are: - * 1. the number of bytes received during the time it takes + * 1. Application has not set receive buffer size with + * SO_RCVBUF. Setting SO_RCVBUF clears SB_AUTOSIZE. + * 2. the number of bytes received during the time it takes * one timestamp to be reflected back to us (the RTT); - * 2. received bytes per RTT is within seven eighth of the + * 3. received bytes per RTT is within seven eighth of the * current socket buffer size; - * 3. receive buffer size has not hit maximal automatic size; + * 4. receive buffer size has not hit maximal automatic size; * * This algorithm does one step per RTT at most and only if * we receive a bulk stream w/o packet losses or reorderings.