]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pf: Reduce the data returned in DIOCGETSTATESNV
authorKristof Provost <kp@FreeBSD.org>
Tue, 29 Jun 2021 08:26:40 +0000 (10:26 +0200)
committerKristof Provost <kp@FreeBSD.org>
Fri, 9 Jul 2021 08:07:52 +0000 (10:07 +0200)
commit63a8dc255208692f022beff22f38ae16ea51565b
tree43c845ed60ac2ebdad1f114f22a45210a36feb33
parentfc4e7ccde0b677d544a0f5ad42515b706071d093
pf: Reduce the data returned in DIOCGETSTATESNV

This call is particularly slow due to the large amount of data it
returns. Remove all fields pfctl does not use. There is no functional
impact to pfctl, but it somewhat speeds up the call.

It might affect other (i.e. non-FreeBSD) code that uses the new
interface, but this call is very new, so there's unlikely to be any. No
releases contained the previous version, so we choose to live with the
ABI modification.

Reviewed by: donner
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D30944

(cherry picked from commit 34285eefddc99c994c3e5374ba7836cc7cfc8e2e)
lib/libpfctl/libpfctl.c
lib/libpfctl/libpfctl.h
sys/netpfil/pf/pf_nv.c