Changes in the network interface queueing handoff model

Andrew Gallatin gallatin at cs.duke.edu
Tue Aug 1 12:21:55 UTC 2006


Robert Watson writes:
 > tear-down magic.  What Solaris does here, FYI, is basically add a lock around 
 > entering the device driver via their mac layer in order to prevent it from 
 > "disappearing" while in use via the ifnet interface.  I'm not sure if we want 

At least for GLDv2, this is a reader-writer lock.  The transmit and
receive paths take a read lock on the device's macinfo (like ifnet)
struct, and the detach code takes a write lock.  The Solaris driver
model does not serialize transmits (or receives), as one might think
from reading the above.


Drew


More information about the freebsd-arch mailing list