HomeFreeBSD

pf: getstates: avoid taking the hashrow lock if the row is empty

Description

pf: getstates: avoid taking the hashrow lock if the row is empty

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

(cherry picked from commit a19ff8ce9b58548a5f965db2c46eb03c38b15edb)

Details

Provenance
kpAuthored on Jun 29 2021, 9:34 AM
Reviewer
mjg
Differential Revision
D30946: pf: getstates: avoid taking the hashrow lock if the row is empty
Parents
rG9e5d987058fe: pf: Reduce the data returned in DIOCGETSTATESNV
Branches
Unknown
Tags
Unknown