[dpdk-dev] [PATCH v2 07/15] net/avp: driver registration
Legacy, Allain
Allain.Legacy at windriver.com
Mon Feb 27 18:09:42 CET 2017
> -----Original Message-----
> From: Stephen Hemminger [mailto:stephen at 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.
More information about the dev
mailing list