If V_maxnipq is set to zero, drain the queue here and now, instead of
relying on timeouts. Sponsored by: Nginx, Inc.
This commit is contained in:
parent
55c28800ad
commit
1c0b48c79a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=281295
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user