netdev-dpdk: Pass queue id to dpdk_do_tx_copy().
authorAlex Wang <alexw@nicira.com>
Fri, 19 Sep 2014 00:02:17 +0000 (17:02 -0700)
committerAlex Wang <alexw@nicira.com>
Fri, 19 Sep 2014 00:26:13 +0000 (17:26 -0700)
commit2654cc338bfb413a6295078e3a7a8e1d4f67cbcc
treec5cf4ee7f1a579ed55c2492978eea928cfbc9559
parent7f9381db10823b995e57e5c8da57ece8c8e8cf99
netdev-dpdk: Pass queue id to dpdk_do_tx_copy().

Since dpdk_do_tx_copy() will be called by both pmd and
non-pmd thread, it should take the queue id as input.
The current ovs always uses NON_PMD_THREAD_TX_QUEUE
as queue id, which causes unprotected multi-access
to the same queue.

This commit fixes the issue by passing the queue id
to dpdk_do_tx_copy().

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