From: Ouyang Changchun Date: Thu, 12 Jun 2014 07:10:05 +0000 (+0800) Subject: examples/vmdq: fix Tx queue id X-Git-Tag: spdx-start~10680 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c2bebe5f5a6dacb1e82047032835276002c5a793;p=dpdk.git 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 Tested-by: Waterman Cao Acked-by: Thomas Monjalon --- diff --git a/examples/vmdq/main.c b/examples/vmdq/main.c index 3600549a29..35df23407a 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++)