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 4BF7FA09E6; Tue, 8 Dec 2020 11:04:00 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 60ADDC9BA; Tue, 8 Dec 2020 11:03:54 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 3996CC9BA for ; Tue, 8 Dec 2020 11:03:51 +0100 (CET) IronPort-SDR: bpRumVIRuiRuApl72fTxTrvNflOAtCL5Hh6D2XDrIknJHSCBHWFX0lkUJiEJcBSnzNj1csXoAP 5zCg6kYM4E2A== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293378" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293378" 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:03:50 -0800 IronPort-SDR: THsekRk9dMxDMhI4O+pOjLrj3z6CHM0nDxMz3NMIxjvpXJPUBdCjiZhn7SPgCFDFWFr8r/mJni Gn/tI8zDAyaA== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575718" 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:03:49 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:10 +0800 Message-Id: <20201208100627.9792-12-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 11/28] tests/TestSuite_l3fwdacl: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_l3fwdacl.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/tests/TestSuite_l3fwdacl.py b/tests/TestSuite_l3fwdacl.py index cc87e172..7e0ad989 100644 --- a/tests/TestSuite_l3fwdacl.py +++ b/tests/TestSuite_l3fwdacl.py @@ -172,8 +172,8 @@ class TestL3fwdacl(TestCase): if scalar: extra_args = '--alg="scalar"' - cmdline = '%s -c %s -n %d -- -p %s --config="(%d,0,2),(%d,0,3)" --rule_ipv4="%s" --rule_ipv6="%s" %s' % \ - (self.app_l3fwd_acl_path, self.core_mask, self.dut.get_memory_channels(), + cmdline = '%s %s -- -p %s --config="(%d,0,2),(%d,0,3)" --rule_ipv4="%s" --rule_ipv6="%s" %s' % \ + (self.app_l3fwd_acl_path, self.eal_para, self.port_mask, self.dut_ports[0], self.dut_ports[1], TestL3fwdacl.acl_ipv4_db, TestL3fwdacl.acl_ipv6_db, @@ -591,8 +591,8 @@ class TestL3fwdacl(TestCase): rule_list.append(TestL3fwdacl.default_rule) self.create_acl_ipv4_db(rule_list) - cmdline = '%s -c %s -n %d -- -p %s --config="(%d,0,2),(%d,0,3)" --rule_ipv4="%s" --rule_ipv6="%s"' % \ - (self.app_l3fwd_acl_path, self.core_mask, self.dut.get_memory_channels(), + cmdline = '%s %s -- -p %s --config="(%d,0,2),(%d,0,3)" --rule_ipv4="%s" --rule_ipv6="%s"' % \ + (self.app_l3fwd_acl_path, self.eal_para, self.port_mask, self.dut_ports[0], self.dut_ports[1], TestL3fwdacl.acl_ipv4_db, TestL3fwdacl.acl_ipv6_db) @@ -610,8 +610,8 @@ class TestL3fwdacl(TestCase): rule_list.append(TestL3fwdacl.default_rule) self.create_acl_ipv6_db(rule_list) - cmdline = '%s -c %s -n %d -- -p %s --config="(%d,0,2),(%d,0,3)" --rule_ipv4="%s" --rule_ipv6="%s"' % \ - (self.app_l3fwd_acl_path, self.core_mask, self.dut.get_memory_channels(), + cmdline = '%s %s -- -p %s --config="(%d,0,2),(%d,0,3)" --rule_ipv4="%s" --rule_ipv6="%s"' % \ + (self.app_l3fwd_acl_path, self.eal_para, self.port_mask, self.dut_ports[0], self.dut_ports[1], TestL3fwdacl.acl_ipv4_db, TestL3fwdacl.acl_ipv6_db) @@ -636,6 +636,7 @@ class TestL3fwdacl(TestCase): cores = self.get_core_list() self.verify(cores is not None, "Insufficient cores for speed testing") + self.eal_para = self.dut.create_eal_parameters(cores=self.get_core_list()) self.core_mask = utils.create_mask(cores) print("Core mask: %s" % self.core_mask) @@ -840,8 +841,8 @@ class TestL3fwdacl(TestCase): rule_list_ipv4.append(TestL3fwdacl.invalid_port_rule_ipv4) self.create_acl_ipv4_db(rule_list_ipv4) - cmdline = '%s -c %s -n %d -- -p %s --config="(%d,0,2),(%d,0,3)" --rule_ipv4="%s" --rule_ipv6="%s" --alg="scalar"' % \ - (self.app_l3fwd_acl_path, self.core_mask, self.dut.get_memory_channels(), + cmdline = '%s %s -- -p %s --config="(%d,0,2),(%d,0,3)" --rule_ipv4="%s" --rule_ipv6="%s" --alg="scalar"' % \ + (self.app_l3fwd_acl_path, self.eal_para, self.port_mask, self.dut_ports[0], self.dut_ports[1], TestL3fwdacl.acl_ipv4_db, TestL3fwdacl.acl_ipv6_db) @@ -852,8 +853,8 @@ class TestL3fwdacl(TestCase): rule_list_ipv6.append(TestL3fwdacl.invalid_port_rule_ipv6) self.create_acl_ipv6_db(rule_list_ipv6) - cmdline = '%s -c %s -n %d -- -p %s --config="(%d,0,2),(%d,0,3)" --rule_ipv4="%s" --rule_ipv6="%s" --alg="scalar"' % \ - (self.app_l3fwd_acl_path, self.core_mask, self.dut.get_memory_channels(), + cmdline = '%s %s -- -p %s --config="(%d,0,2),(%d,0,3)" --rule_ipv4="%s" --rule_ipv6="%s" --alg="scalar"' % \ + (self.app_l3fwd_acl_path, self.eal_para, self.port_mask, self.dut_ports[0], self.dut_ports[1], TestL3fwdacl.acl_ipv4_db, TestL3fwdacl.acl_ipv6_db) -- 2.17.1