Page MenuHomeFreeBSD

pf: Reduce the data returned in DIOCGETSTATESNV
ClosedPublic

Authored by kp on Jun 29 2021, 7:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Aug 3, 10:12 AM
Unknown Object (File)
Mon, Jul 28, 8:54 AM
Unknown Object (File)
Sat, Jul 26, 12:29 AM
Unknown Object (File)
Fri, Jul 25, 7:18 PM
Unknown Object (File)
Fri, Jul 25, 4:58 AM
Unknown Object (File)
Jul 5 2025, 8:14 AM
Unknown Object (File)
Jul 2 2025, 2:02 AM
Unknown Object (File)
Jul 1 2025, 12:42 AM

Details

Summary

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.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable