From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 4BD2EB114 for ; Thu, 12 Jun 2014 09:10:41 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 12 Jun 2014 00:10:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,462,1400050800"; d="scan'208";a="527285284" Received: from shilc102.sh.intel.com ([10.239.39.44]) by orsmga001.jf.intel.com with ESMTP; 12 Jun 2014 00:10:23 -0700 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shilc102.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id s5C7AJ31012357; Thu, 12 Jun 2014 15:10:21 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id s5C7AGb5025102; Thu, 12 Jun 2014 15:10:18 +0800 Received: (from couyang@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id s5C7AGpN025098; Thu, 12 Jun 2014 15:10:16 +0800 From: Ouyang Changchun To: dev@dpdk.org Date: Thu, 12 Jun 2014 15:10:05 +0800 Message-Id: <1402557005-24997-1-git-send-email-changchun.ouyang@intel.com> X-Mailer: git-send-email 1.7.0.7 Subject: [dpdk-dev] [PATCH] examples/vmdq: Fix core id issue for TX burst X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2014 07:10:41 -0000 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