Searched hist:138642 (Results 1 - 1 of 1) sorted by relevance

/freebsd-9.3-release/sys/netpfil/ipfw/
H A Dip_fw2.cdiff 138642 Fri Dec 10 00:17:18 MST 2004 csjp This commit adds a shared locking mechanism very similar to the
mechanism used by pfil. This shared locking mechanism will remove
a nasty lock order reversal which occurs when ucred based rules
are used which results in hard locks while mpsafenet=1.

So this removes the debug.mpsafenet=0 requirement when using
ucred based rules with IPFW.

It should be noted that this locking mechanism does not guarantee
fairness between read and write locks, and that it will favor
firewall chain readers over writers. This seemed acceptable since
write operations to firewall chains protected by this lock tend to
be less frequent than reads.

Reviewed by: andre, rwatson
Tested by: myself, seanc
Silence on: ipfw@
MFC after: 1 month

Completed in 171 milliseconds