From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4349AA0548; Wed, 15 Jun 2022 10:51:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 21E3740DDD; Wed, 15 Jun 2022 10:51:25 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 2922D40220 for ; Wed, 15 Jun 2022 10:51:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655283083; x=1686819083; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Mwty57YlriKUyi6OGeB+AwOdZqCcHYfqNgTrIvoA2Fg=; b=J4qu6jiFNlBZaYwiZr7IKf34TSkrBDYGkd9AZgsnBF+oVmOud2aC0QGh N8603jVO/WA9NfYGvLnsjx0IC2BNZOBJFC4HfktZcQ9x76ur6816uKzxg CefFE8mMOnAt1W7bHc/PKn3V0cnn0kQ2NNpsQox5q5HeX6pxQ6A3uFR6R 7REDii+4EfLRKf8huSEutC2PsGBFVWEYPtblivDKsEVtazT1YrYI6hFUB 6AygVM6vrOKx+r+hYe3OPDMc4X8spKbp7Z4FZ4pb2Wg8BQNQ9lsdSW1z5 XMjILo/AbQ9VtuHmuZNZbyVl+MiVjNTMTJlKUjyKdTbcLUDztSY3P9qAI w==; X-IronPort-AV: E=McAfee;i="6400,9594,10378"; a="277678386" X-IronPort-AV: E=Sophos;i="5.91,300,1647327600"; d="scan'208";a="277678386" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2022 01:51:22 -0700 X-IronPort-AV: E=Sophos;i="5.91,300,1647327600"; d="scan'208";a="652537162" Received: from unknown (HELO localhost.localdomain) ([10.239.252.226]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2022 01:51:21 -0700 From: Yu Jiang To: lijuan.tu@intel.com, dts@dpdk.org Cc: Yu Jiang Subject: [dts][PATCH V1] tests/unit_tests_eal: fix acl script call error and support different rx_mode Date: Wed, 15 Jun 2022 16:49:25 +0000 Message-Id: <20220615164925.1583168-1-yux.jiang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 Since DTS commit "7eaf4b60 tests/l3fwdacl: modify pmd param for acl" has incorrect usage, fix script to support different rx_mode. Signed-off-by: Yu Jiang --- tests/TestSuite_unit_tests_eal.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_unit_tests_eal.py b/tests/TestSuite_unit_tests_eal.py index c1de4884..9cac6197 100644 --- a/tests/TestSuite_unit_tests_eal.py +++ b/tests/TestSuite_unit_tests_eal.py @@ -465,15 +465,18 @@ class TestUnitTestsEal(TestCase): """ Run acl autotest. """ - eal_params = self.dut.create_eal_parameters( - other_eal_param="force-max-simd-bitwidth" - ) + eal_params = self.dut.create_eal_parameters() app_name = self.dut.apps_name["test"] test_app_cmdline = app_name + eal_params test_app_cmdline += "--no-pci" - - if self.dut.dpdk_version >= "20.11.0": - test_app_cmdline += " --force-max-simd-bitwidth=0" + # When execution.cfg set rx_mode=xxx, it should have priority. + print("eal_para = {}".format(eal_params)) + if "force-max-simd-bitwidth" in eal_params: + pass + else: + # DTS commit 68bb1b92("tests/l3fwdacl: try to use highest available method") when dpdk > 20.11.0 by konstantin.ananyev@intel.com + if self.dut.dpdk_version >= "20.11.0": + test_app_cmdline += " --force-max-simd-bitwidth=0" self.dut.send_expect(test_app_cmdline, "R.*T.*E.*>.*>", self.start_test_time) out = self.dut.send_expect("acl_autotest", "RTE>>", self.run_cmd_time) self.dut.send_expect("quit", "# ") -- 2.25.1