-----Original Message-----
From: Stephen Hemminger [mailto:stephen@networkplumber.org]
What exactly is the spinlock protecting? The control operations in DPDK are
defined to be not thread safe. I.e it is responsibility of caller to synchronize.
Therefore is lock really needed?
The implementation assumes that interrupts (for VM live-migration) may be serviced on a thread other than the thread used to do normal device operations (i.e., configure, start, stop, etc...). We use the spinlock to protect the device flags and the request/response queue against concurrent access from the management thread and the interrupt thread.