]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pf: Initialize the table entry zone limit at initialization time
authorMark Johnston <markj@FreeBSD.org>
Wed, 30 Mar 2022 19:41:44 +0000 (15:41 -0400)
committerMark Johnston <markj@FreeBSD.org>
Wed, 30 Mar 2022 19:41:44 +0000 (15:41 -0400)
commit7d1ab866911a2b29e041d64bc83a93638533f957
tree82b13cdbb9cf8d0ab8f404569dc123ef2d3bcdcc
parent8299f9a5c167618416c21acd8a9fdd188f400172
pf: Initialize the table entry zone limit at initialization time

The limit may later be updated by the "set limit" directive in pf.conf.
UMA does not permit a limit to be set on a zone after any items have
been allocated from a zone.

Other UMA zones used by pf do not appear to be susceptible to this
problem: they either set a limit at zone creation time or never set one
at all.

PR: 260406
Reviewed by: kp
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34713
sys/netpfil/pf/pf_table.c