HomeFreeBSD

MFC r334375, r334379:

Description

MFC r334375, r334379:

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@

Details

Provenance
kpAuthored on
Parents
rS339417: While preparing to move init(8) to its own package as indicated
Branches
Unknown
Tags
Unknown