From owner-svn-src-all@FreeBSD.ORG Thu Apr 9 08:56:24 2015 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D09E79EC; Thu, 9 Apr 2015 08:56:24 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BBC50B3; Thu, 9 Apr 2015 08:56:24 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t398uOBK077263; Thu, 9 Apr 2015 08:56:24 GMT (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t398uOAk077262; Thu, 9 Apr 2015 08:56:24 GMT (envelope-from glebius@FreeBSD.org) Message-Id: <201504090856.t398uOAk077262@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: glebius set sender to glebius@FreeBSD.org using -f From: Gleb Smirnoff Date: Thu, 9 Apr 2015 08:56:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r281295 - head/sys/netinet X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 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: Thu, 09 Apr 2015 08:56:24 -0000 Author: glebius Date: Thu Apr 9 08:56:23 2015 New Revision: 281295 URL: https://svnweb.freebsd.org/changeset/base/281295 Log: If V_maxnipq is set to zero, drain the queue here and now, instead of relying on timeouts. Sponsored by: Nginx, Inc. Modified: head/sys/netinet/ip_input.c Modified: head/sys/netinet/ip_input.c ============================================================================== --- head/sys/netinet/ip_input.c Thu Apr 9 08:52:02 2015 (r281294) +++ head/sys/netinet/ip_input.c Thu Apr 9 08:56:23 2015 (r281295) @@ -826,12 +826,12 @@ maxnipq_update(void) if (V_maxnipq > 0) uma_zone_set_max(V_ipq_zone, V_maxnipq); /* - * Zero specifies no further fragment queue allocation -- set the - * bound very low, but rely on implementation elsewhere to actually - * prevent allocation and reclaim current queues. + * Zero specifies no further fragment queue allocation. */ - if (V_maxnipq == 0) + if (V_maxnipq == 0) { uma_zone_set_max(V_ipq_zone, 1); + ip_drain_vnet(); + } } static void