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)
Thu, Dec 19, 6:24 PM
Unknown Object (File)
Thu, Dec 19, 3:14 PM
Unknown Object (File)
Tue, Dec 3, 7:29 PM
Unknown Object (File)
Tue, Nov 26, 12:13 AM
Unknown Object (File)
Mon, Nov 25, 10:41 AM
Unknown Object (File)
Nov 21 2024, 5:20 PM
Unknown Object (File)
Nov 18 2024, 5:56 AM
Unknown Object (File)
Sep 25 2024, 1:26 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 40171
Build 37060: arc lint + arc unit