On Fri, Mar 11, 2005 at 04:55:25PM +0300, dima wrote: +> I thought about using list also, but considered it to bring +> too much overhead to the code. The original idea of handling arrays +> seems to be very elegant.
Overhead? Did you run any benchmarks to prove it? I find list-version much more elegant that using an array. I also don't like the idea of calling handler method with two locks held (one sx and one mutex)... There is still an unresolved problem (in your and our patch as well) of using ifnet structure fields without synchronization, as we don't have access tointerface's internal mutex, which protects those fields. -- Pawel Jakub Dawidek http://www.wheel.pl [EMAIL PROTECTED] http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am!
pgptRhaa0bjn4.pgp
Description: PGP signature