From owner-svn-src-head@FreeBSD.ORG Fri Oct 24 13:57:16 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3CC52AF4; Fri, 24 Oct 2014 13:57:16 +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 28311874; Fri, 24 Oct 2014 13:57:16 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s9ODvG4F036740; Fri, 24 Oct 2014 13:57:16 GMT (envelope-from melifaro@FreeBSD.org) Received: (from melifaro@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s9ODvGvh036739; Fri, 24 Oct 2014 13:57:16 GMT (envelope-from melifaro@FreeBSD.org) Message-Id: <201410241357.s9ODvGvh036739@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: melifaro set sender to melifaro@FreeBSD.org using -f From: "Alexander V. Chernikov" Date: Fri, 24 Oct 2014 13:57:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r273588 - head/sys/netpfil/ipfw X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 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: Fri, 24 Oct 2014 13:57:16 -0000 Author: melifaro Date: Fri Oct 24 13:57:15 2014 New Revision: 273588 URL: https://svnweb.freebsd.org/changeset/base/273588 Log: Bump default dynamic limit to 16k entries. Print better log message when limit is hit. PR: 193300 Submitted by: me at nileshgr.com Modified: head/sys/netpfil/ipfw/ip_fw_dynamic.c Modified: head/sys/netpfil/ipfw/ip_fw_dynamic.c ============================================================================== --- head/sys/netpfil/ipfw/ip_fw_dynamic.c Fri Oct 24 13:34:22 2014 (r273587) +++ head/sys/netpfil/ipfw/ip_fw_dynamic.c Fri Oct 24 13:57:15 2014 (r273588) @@ -592,8 +592,9 @@ add_dyn_rule(struct ipfw_flow_id *id, in if (r == NULL) { if (last_log != time_uptime) { last_log = time_uptime; - log(LOG_DEBUG, "ipfw: %s: Cannot allocate rule\n", - __func__); + log(LOG_DEBUG, + "ipfw: Cannot allocate dynamic state, " + "consider increasing net.inet.ip.fw.dyn_max\n"); } return NULL; } @@ -1385,7 +1386,7 @@ ipfw_dyn_init(struct ip_fw_chain *chain) V_dyn_keepalive = 1; /* do send keepalives */ V_dyn_keepalive_last = time_uptime; - V_dyn_max = 4096; /* max # of dynamic rules */ + V_dyn_max = 16384; /* max # of dynamic rules */ V_ipfw_dyn_rule_zone = uma_zcreate("IPFW dynamic rule", sizeof(ipfw_dyn_rule), NULL, NULL, NULL, NULL,