HomeFreeBSD

pf: Replace rwlock on PF_RULES_LOCK with rmlock

Description

pf: Replace rwlock on PF_RULES_LOCK with rmlock

Given that PF_RULES_LOCK is a mostly read lock, replace the rwlock with rmlock.
This change improves packet processing rate in high pps environments.
Benchmarking by olivier@ shows a 65% improvement in pps.

While here, also eliminate all appearances of "sys/rwlock.h" includes since it
is not used anymore.

Submitted by: farrokhi@
Differential Revision: https://reviews.freebsd.org/D15502

Details

Provenance
kpAuthored on
Differential Revision
D15502: pf: Replace rwlock on PF_RULES_LOCK with rmlock
Parents
rS334374: hwpmc: remove stale assert
Branches
Unknown
Tags
Unknown