From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 795B82C57 for ; Tue, 23 Jan 2018 15:27:14 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Jan 2018 06:27:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,401,1511856000"; d="scan'208";a="11964669" Received: from silpixa00398673.ir.intel.com (HELO silpixa00398673.ger.corp.intel.com) ([10.237.223.54]) by orsmga007.jf.intel.com with ESMTP; 23 Jan 2018 06:27:11 -0800 From: Fan Zhang To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com Date: Tue, 23 Jan 2018 14:22:55 +0000 Message-Id: <20180123142255.68449-1-roy.fan.zhang@intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180123115425.38549-1-roy.fan.zhang@intel.com> References: <20180123115425.38549-1-roy.fan.zhang@intel.com> Subject: [dpdk-dev] [PATCH v2] app/test-crypto-perf: fix index X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jan 2018 14:27:14 -0000 Fixes: 27c2e7471961 ("app/crypto-perf: support IMIX") A bug caused index out-of-range error. This simple patch is to fix this. Signed-off-by: Fan Zhang --- v2: Removed unnecessary cdev_id assignment line. app/test-crypto-perf/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/test-crypto-perf/main.c b/app/test-crypto-perf/main.c index 83a9d7b73..dd16fbe24 100644 --- a/app/test-crypto-perf/main.c +++ b/app/test-crypto-perf/main.c @@ -582,10 +582,8 @@ main(int argc, char **argv) if (i == nb_cryptodevs) break; - cdev_id = enabled_cdevs[i]; - rte_eal_remote_launch(cperf_testmap[opts.test].runner, - ctx[cdev_id], lcore_id); + ctx[i], lcore_id); i++; } i = 0; -- 2.13.6