Am Montag, 10. Juli 2006 14:01 schrieb Krzysztof Halasa: > > You've got two independant flags of which one does not stop the queue. > > Is it ok to set that flag without synchronization with other flags? > I.e, from within another module and without using cross-module locks, > as I've shown at the time? Just asking, I don't know what the final > conclusion was. > > I.e., is it ok if the hardware module does netif_carrier_on/off() > (for example, from its IRQ handler) and if the protocol module does > netif_dormant_on/off() independently (for example, from its timer > or linkwatch)?
Yes, you can read and write these flags independantly. For the details, look at Documentation/networking/operstates.txt in the 2.6.17 tree. Stefan - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html