From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ouyang Changchun Subject: [PATCH] examples/vmdq: Fix core id issue for TX burst Date: Thu, 12 Jun 2014 15:10:05 +0800 Message-ID: <1402557005-24997-1-git-send-email-changchun.ouyang@intel.com> To: dev-VfR2kkLFssw@public.gmane.org Return-path: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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, it should use core_id instead of lcore_id. Signed-off-by: Ouyang Changchun Tested-by: Waterman Cao This patch includes 1 file, and has been tested by Intel. Please see information as the following: Fedora 20 X86_64, Linux Kernel 3.13.9, GCC 4.8.2 Intel Xeon CPU E5-2680 v2 @ 2.80GHz NIC: Intel Niantic 82599 --- examples/vmdq/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/vmdq/main.c b/examples/vmdq/main.c index 0f52bdd..4dde37a 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++) -- 1.9.0