svn commit: r278640 - head/sys/netgraph
Gleb Smirnoff
glebius at FreeBSD.org
Thu Feb 12 22:20:35 UTC 2015
Author: glebius
Date: Thu Feb 12 22:20:34 2015
New Revision: 278640
URL: https://svnweb.freebsd.org/changeset/base/278640
Log:
Revise default limit for maximum of netgraph data items.
With modern internet speeds the limit can be reached even
on a single L2TP link.
Modified:
head/sys/netgraph/ng_base.c
Modified: head/sys/netgraph/ng_base.c
==============================================================================
--- head/sys/netgraph/ng_base.c Thu Feb 12 21:20:28 2015 (r278639)
+++ head/sys/netgraph/ng_base.c Thu Feb 12 22:20:34 2015 (r278640)
@@ -2952,7 +2952,7 @@ uma_zone_t ng_qzone;
uma_zone_t ng_qdzone;
static int numthreads = 0; /* number of queue threads */
static int maxalloc = 4096;/* limit the damage of a leak */
-static int maxdata = 512; /* limit the damage of a DoS */
+static int maxdata = 4096; /* limit the damage of a DoS */
SYSCTL_INT(_net_graph, OID_AUTO, threads, CTLFLAG_RDTUN, &numthreads,
0, "Number of queue processing threads");
More information about the svn-src-all
mailing list