From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 53542A09E5; Tue, 8 Dec 2020 11:04:20 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 604A6C9B0; Tue, 8 Dec 2020 11:04:17 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 99589C96E for ; Tue, 8 Dec 2020 11:04:15 +0100 (CET) IronPort-SDR: KCIwwryz2WHPCwR6FuTBR2HK89nzSQGOA428KtOawo4ZqVLSlLB3neeNwUUuqpopDtXM3z5AC4 AdBrZ5k4ZUyw== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293466" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293466" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:04:14 -0800 IronPort-SDR: T9oLfkncaGQihAgNcKU76DdmVPtFpkz+zcdsAAj05psikQ/mFIs01LzzsCyPeBXV6UGUcqMk+X MpymW+BNWrow== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363576030" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:04:13 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:27 +0800 Message-Id: <20201208100627.9792-29-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 28/28] tests/TestSuite_userspace_ethtool:Modify the hard coded app parameter to call the platform interface X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Signed-off-by: Zhou Jun --- tests/TestSuite_userspace_ethtool.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py index 68dace33..d73a7e16 100644 --- a/tests/TestSuite_userspace_ethtool.py +++ b/tests/TestSuite_userspace_ethtool.py @@ -68,8 +68,9 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator): cpu_cores = self.dut.send_expect('lscpu |grep "NUMA node%s CPU(s):"' % out, "# ") core = re.findall(r"\d+-(\d+)", cpu_cores)[0] core = int(core) - cores = "%d,%d,%d,%d" % (core - 1, core - 2, core - 3, core - 4) - self.cmd = "%s -l %s -n %d" % (self.app_ethtool_path, cores, self.dut.get_memory_channels()) + cores = [core - 1, core - 2, core - 3, core - 4] + eal_para = self.dut.create_eal_parameters(cores=cores) + self.cmd = "%s %s" % (self.app_ethtool_path, eal_para) # pause frame basic configuration self.pause_time = 65535 -- 2.17.1