summaryrefslogtreecommitdiff
path: root/examples/vmdq
diff options
context:
space:
mode:
authorOuyang Changchun <changchun.ouyang@intel.com>2014-06-12 15:10:05 +0800
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-06-17 11:51:42 +0200
commitc2bebe5f5a6dacb1e82047032835276002c5a793 (patch)
tree933f1ccffface8fd5e30b0cb09c9e5b6ae3d9dc3 /examples/vmdq
parent60a70d4e042350ca0f9200334b341063438be89b (diff)
downloaddpdk-c2bebe5f5a6dacb1e82047032835276002c5a793.zip
dpdk-c2bebe5f5a6dacb1e82047032835276002c5a793.tar.gz
dpdk-c2bebe5f5a6dacb1e82047032835276002c5a793.tar.xz
examples/vmdq: fix Tx queue id
This patch fixes a core id issue in sample vmdq, in case core mask doesn't start with lcore_id 0 but 20, for instance, queue id should use core_id instead of lcore_id. Signed-off-by: Ouyang Changchun <changchun.ouyang@intel.com> Tested-by: Waterman Cao <waterman.cao@intel.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Diffstat (limited to 'examples/vmdq')
-rw-r--r--examples/vmdq/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/vmdq/main.c b/examples/vmdq/main.c
index 3600549..35df234 100644
--- a/examples/vmdq/main.c
+++ b/examples/vmdq/main.c
@@ -534,7 +534,7 @@ lcore_main(__attribute__((__unused__)) void* dummy)
update_mac_address(buf[i], dport);
const uint16_t txCount = rte_eth_tx_burst(dport,
- lcore_id, buf, rxCount);
+ core_id, buf, rxCount);
if (txCount != rxCount) {
for (i = txCount; i < rxCount; i++)