I am attempting to port the Broadcom tg3 NetXtreme linux driver to rtnet. The Broadcom driver internally utilizes spin_lock_bh/spin_unlock_bh to disable/enable software interrupts. There is no rtdm lock equivalent. I believe that software interrupts are used by the driver for the following reasons: 1. To allow for simultaneous DMA read write operations 2. To use shared local variables in a critical section of the driver. 3. To receive changes to settings variables in realtime from the userpace Nextreme utilities. (not sure about this one).
What RTDM lock functions should I use to substitute for spin_lock_bh/spin_unlock_bh? Should I substitute rtdm_lock_get_irqsave/rtdm_lock_put_irqrestore? Or does rtdm need to ne extended for softirqs used internally by the driver? I looked through the other device drivers and could not detect the correct substitute. RSVP. Thanks. Best Regards, Ed ------------------------------------------------------------------------------ Virtualization is moving to the mainstream and overtaking non-virtualized environment for deploying applications. Does it make network security easier or more difficult to achieve? Read this whitepaper to separate the two and get a better understanding. http://p.sf.net/sfu/hp-phase2-d2d _______________________________________________ RTnet-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rtnet-developers

