netdev-dpdk: Fix locking during get_stats.
authorJoe Stringer <joe@ovn.org>
Tue, 10 May 2016 22:50:42 +0000 (15:50 -0700)
committerJoe Stringer <joe@ovn.org>
Fri, 13 May 2016 20:44:41 +0000 (13:44 -0700)
commitf925682252b82fee1cb0850ca057c7aa4074175f
tree80e02e2d87370f4eecda8df4ff8a47adeff6482a
parent85ad3f0159e6694e6fb636e485512088590ea7ae
netdev-dpdk: Fix locking during get_stats.

Clang complains:
lib/netdev-dpdk.c:1860:1: error: mutex 'dev->mutex' is not locked on every path
      through here [-Werror,-Wthread-safety-analysis]
}
^
lib/netdev-dpdk.c:1815:5: note: mutex acquired here
    ovs_mutex_lock(&dev->mutex);
    ^
./include/openvswitch/thread.h:60:9: note: expanded from macro 'ovs_mutex_lock'
        ovs_mutex_lock_at(mutex, OVS_SOURCE_LOCATOR)
        ^

Fixes: d6e3feb57c44 ("Add support for extended netdev statistics based on RFC 2819.")
Signed-off-by: Joe Stringer <joe@ovn.org>
Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
lib/netdev-dpdk.c