K 10 svn:author V 2 kp K 8 svn:date V 27 2021-07-16T11:55:55.022896Z K 7 svn:log V 730 pf: bound DIOCGETSTATESV2 memory use Rather than allocating however much memory userspace asks for we only allocate enough for a handful of states, and copy to userspace for each completed row. We start out with enough space for 16 states (per row), but grow that as required. In most configurations we expect at most a handful of states per row (more than that would have other negative effects on packet processing performance). Reviewed by: mjg MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D31111 (cherry picked from commit 3fc12ae042040192aa43984106a75663aaa9e0f5) Git Hash: 4feb5667f59d7542395b021d1852e792b4baf90a Git Author: kp@FreeBSD.org END