netdev-dpdk: Fix thread-safety breach.
authorAlex Wang <alexw@nicira.com>
Mon, 15 Sep 2014 20:15:38 +0000 (13:15 -0700)
committerAlex Wang <alexw@nicira.com>
Mon, 15 Sep 2014 21:35:41 +0000 (14:35 -0700)
commitb7ccaf673e7669499155ccf2cacdfeb9971417b7
tree722cc3d903f6c486cc9e31dc3168663eaa5c5639
parent476590621ec194c73b235ca5db15fa5e9bf50976
netdev-dpdk: Fix thread-safety breach.

dpdk_eth_dev_init() must be called with dpdk_mutex.  However,
netdev_dpdk_set_multiq() fails to follow this rule.  This commit
fixes this breach.

Found by clang.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Daniele Di Proietto <ddiproietto@vmware.com>
lib/netdev-dpdk.c