Re: [ovs-dev] [PATCH v2 1/7] netdev-dpdk: Use specific spinlock for stats.

2015-04-10 Thread Ethan Jackson
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

[ovs-dev] [PATCH v2 1/7] netdev-dpdk: Use specific spinlock for stats.

2015-04-02 Thread Daniele Di Proietto
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