From owner-svn-src-all@FreeBSD.ORG Mon Aug 4 19:42:48 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E2D514A4 for ; Mon, 4 Aug 2014 19:42:48 +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 CC24C2090 for ; Mon, 4 Aug 2014 19:42:48 +0000 (UTC) Received: from hiren (uid 1318) (envelope-from hiren@FreeBSD.org) id 5ff1 by svn.freebsd.org (DragonFly Mail Agent v0.9+); Mon, 04 Aug 2014 19:42:48 +0000 From: Hiren Panchasara Date: Mon, 4 Aug 2014 19:42:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r269526 - head/sys/netinet X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <53dfe238.5ff1.218d2d88@svn.freebsd.org> X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2014 19:42:49 -0000 Author: hiren Date: Mon Aug 4 19:42:48 2014 New Revision: 269526 URL: http://svnweb.freebsd.org/changeset/base/269526 Log: Add a comment for easier code understanding. Modified: head/sys/netinet/tcp_timewait.c Modified: head/sys/netinet/tcp_timewait.c ============================================================================== --- head/sys/netinet/tcp_timewait.c Mon Aug 4 19:02:30 2014 (r269525) +++ head/sys/netinet/tcp_timewait.c Mon Aug 4 19:42:48 2014 (r269526) @@ -275,6 +275,11 @@ tcp_twstart(struct tcpcb *tp) tw = uma_zalloc(V_tcptw_zone, M_NOWAIT); if (tw == NULL) { + /* + * Reached limit on total number of TIMEWAIT connections + * allowed. Remove a connection from TIMEWAIT queue in LRU + * fashion to make room for this connection. + */ tw = tcp_tw_2msl_reuse(); if (tw == NULL) { tp = tcp_close(tp);