summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2015-04-09 08:56:23 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2015-04-09 08:56:23 +0000
commit1c0b48c79a6fd444009ea0772a2f2e5f0c8a667e (patch)
treede353b6eac9d0e064d9220d629c91456f2521842 /sys/netinet/ip_input.c
parent55c28800ad4118cc28cabd4ae90c1553f6198921 (diff)
downloadsrc-test2-1c0b48c79a6fd444009ea0772a2f2e5f0c8a667e.tar.gz
src-test2-1c0b48c79a6fd444009ea0772a2f2e5f0c8a667e.zip
Notes
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 21fec1a767d5..71db168f0e6e 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -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