netdev-dpdk: Use specific spinlock for stats.
authorDaniele Di Proietto <diproiettod@vmware.com>
Fri, 22 May 2015 16:14:21 +0000 (17:14 +0100)
committerEthan Jackson <ethan@nicira.com>
Fri, 22 May 2015 18:28:19 +0000 (11:28 -0700)
commit45d947c400ded435a1b90fbcb3897c6fa8dd686d
tree521ae53f26242904d1e4105b46fe2df2bcb08111
parentd5c199ea7ff7fa696be27d35a92276ce02deb54d
netdev-dpdk: Use specific spinlock for stats.

Right now ethernet and ring devices use a mutex, while vhost devices use
a mutex or a spinlock to protect statistics.  This commit introduces a
single spinlock that's always used for stats updates.

Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
lib/netdev-dpdk.c