I'm not entirely convinced a spinlock is better, but if that's the
existing convention then I'm fine with it.
Ethan
On Fri, Apr 10, 2015 at 5:37 AM, Daniele Di Proietto
wrote:
> No particular reason: in netdev-dpdk.c we tend to use
> spinlocks in the fast path. I can use an ovs_mutex, if
> you
Right now ethernet and ring devices use a mutex, while vhost devices use
a mutex or a a spinlock to protect statistics. This commit introduces a
single spinlock that's always used for stats updates.
Signed-off-by: Daniele Di Proietto
---
lib/netdev-dpdk.c | 29 +
1 f