From owner-cvs-src-old@FreeBSD.ORG Sat May 28 04:41:03 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12BE11065680 for ; Sat, 28 May 2011 04:41:03 +0000 (UTC) (envelope-from lstewart@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id F16BA8FC0A for ; Sat, 28 May 2011 04:41:02 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p4S4f27c086794 for ; Sat, 28 May 2011 04:41:02 GMT (envelope-from lstewart@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p4S4f28O086793 for cvs-src-old@freebsd.org; Sat, 28 May 2011 04:41:02 GMT (envelope-from lstewart@repoman.freebsd.org) Message-Id: <201105280441.p4S4f28O086793@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to lstewart@repoman.freebsd.org using -f From: Lawrence Stewart Date: Sat, 28 May 2011 04:40:35 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sys/conf files src/sys/netinet cc.h tcp_input.c tcp_output.c tcp_sack.c tcp_subr.c tcp_timer.c tcp_usrreq.c tcp_var.h src/sys/netinet/cc cc.c cc_module.h cc_newreno.c src/sys/sys param.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 May 2011 04:41:03 -0000 lstewart 2011-05-28 04:40:35 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/conf files sys/netinet tcp_input.c tcp_output.c tcp_sack.c tcp_subr.c tcp_timer.c tcp_usrreq.c tcp_var.h sys/sys param.h Added files: (Branch: RELENG_8) sys/netinet cc.h sys/netinet/cc cc.c cc_module.h cc_newreno.c Log: SVN rev 222401 on 2011-05-28 04:40:35Z by lstewart MFC r215166,215377,215391,215392,215393,215395,216101,216103,216105,216107, 216749,216760,217748,218167: - Add a KPI and supporting infrastructure to allow modular congestion control algorithms to be used in the net stack. Algorithms can maintain per-connection state if required, and connections maintain their own algorithm pointer, which allows different connections to concurrently use different algorithms. The TCP_CONGESTION socket option can be used with getsockopt()/setsockopt() to programmatically query or change the congestion control algorithm respectively from within an application at runtime. - Integrate the framework with the TCP stack in as least intrusive a manner as possible. Care was also taken to develop the framework in a way that should allow integration with other congestion aware transport protocols (e.g. SCTP) in the future. The hope is that we will one day be able to share a single set of congestion control algorithm modules between all congestion aware transport protocols. - Introduce a new congestion recovery (TF_CONGRECOVERY) state into the TCP stack and use it to decouple the meaning of recovery from a congestion event and recovery from packet loss (TF_FASTRECOVERY) a la RFC2581. ECN and delay based congestion control protocols don't generally need to recover from packet loss and need a different way to note a congestion recovery episode within the stack. - Remove the net.inet.tcp.newreno sysctl, which simplifies some portions of code and ensures the stack always uses the appropriate mechanisms for recovering from packet loss during a congestion recovery episode. - Extract the NewReno congestion control algorithm from the TCP stack and massage it into module form. NewReno is always built into the kernel and will remain the default algorithm for the forseeable future. Implementations of additional different algorithms will become available in the near future. - Tweak the MFCed code to preserve the ABI of the 8-STABLE branch with respect to "struct tcpcb" by consuming some of the padding within the struct. - Bump __FreeBSD_version to 802504. In collaboration with: David Hayes and Grenville Armitage Sponsored by: Cisco URP, FreeBSD Foundation Reviewed by: rpaulo (r215166), bz (r215391,215395,216749,217748) Tested by: David Hayes (r215166), trociny (r215377,215391,215392,215395) Revision Changes Path 1.1459.2.59 +2 -0 src/sys/conf/files 1.5.2.2 +166 -0 src/sys/netinet/cc.h (new) 1.8.2.2 +325 -0 src/sys/netinet/cc/cc.c (new) 1.2.2.2 +70 -0 src/sys/netinet/cc/cc_module.h (new) 1.5.2.2 +236 -0 src/sys/netinet/cc/cc_newreno.c (new) 1.411.2.12 +256 -238 src/sys/netinet/tcp_input.c 1.164.2.9 +19 -40 src/sys/netinet/tcp_output.c 1.53.2.3 +1 -1 src/sys/netinet/tcp_sack.c 1.350.2.14 +92 -2 src/sys/netinet/tcp_subr.c 1.112.2.4 +11 -38 src/sys/netinet/tcp_timer.c 1.192.2.7 +61 -1 src/sys/netinet/tcp_usrreq.c 1.182.2.12 +26 -6 src/sys/netinet/tcp_var.h 1.433.2.16 +1 -1 src/sys/sys/param.h