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 4BA7C423BC; Fri, 13 Jan 2023 04:41:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2DD08410EF; Fri, 13 Jan 2023 04:41:22 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 3754D410D4 for ; Fri, 13 Jan 2023 04:41:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673581281; x=1705117281; h=from:to:cc:subject:date:message-id; bh=zXSMDwX8EuWjO33SqjpU+9XzQy618rzRwgAHLuW6J3Q=; b=cbOcmJ5jWTkf6K25fDHYEDxHfJWIoB9jA77MDhigTDgl3iodabTLxtyL 8ms1P7wbwAYYHGZDSL6ob2zZNhvkAEcpMRuYZCnjYP7OYepbypqJeFDdF pfiLY9ISbE15uFyDeDOpUGvef11ErZQuSQYDGS5BBw1C7fHTJ1e6lAIuS VlTgLWGGOvIt9s/V13eP6AduMXn/VaYUf1iYcVvIBOsLizJvPRx+PpdO9 glALJ+vKLEhKE31BtdOke6dTTAhO8k+1cNPbOelP5B3RyyqrFEyK0YQ8B Eq1rWSs/fT43+QVKh7rkiqMdSK0+XpIWVc1lZp8cI3DueCbPMY6V/Pxlx w==; X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="410140247" X-IronPort-AV: E=Sophos;i="5.97,212,1669104000"; d="scan'208";a="410140247" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2023 19:41:20 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="721370879" X-IronPort-AV: E=Sophos;i="5.97,212,1669104000"; d="scan'208";a="721370879" Received: from unknown (HELO localhost.localdomain) ([10.239.252.99]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2023 19:41:19 -0800 From: Lingli Chen To: dts@dpdk.org Cc: zhiminx.huang@intel.com, Lingli Chen Subject: [dts][PATCH V1] tests/ice_limit_value_test: modify for 2 ports card sync with testplan Date: Thu, 12 Jan 2023 21:41:09 -0500 Message-Id: <20230113024109.66287-1-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 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 1 pf and 2 vfs can create 15360 rules at most on 2 ports card. Signed-off-by: Lingli Chen --- tests/TestSuite_ice_limit_value_test.py | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_ice_limit_value_test.py b/tests/TestSuite_ice_limit_value_test.py index d6f2f969..7901a796 100644 --- a/tests/TestSuite_ice_limit_value_test.py +++ b/tests/TestSuite_ice_limit_value_test.py @@ -646,7 +646,7 @@ class TestICELimitValue(TestCase): """ 2*100G NIC, each pf can create 1024 rules at least, vfs share 14336 rules table 4*25G NIC, each pf can create 512 rules at least, vfs share 14336 rules table - so if 2*25G NIC, max number is 14848 on 1pf and 2vfs. + so if 2*25G NIC, max number is (1024 + 14336) = 15360 on 1pf and 2vfs. if hardware is chapman beach 100g*2, 1 pf can create 2048 rules,vfs generated by the same pf share 14336 rules, so this card can create (2048 + 14336)*2=32768 rules """ @@ -656,11 +656,15 @@ class TestICELimitValue(TestCase): self.session_secondary = self.dut.new_session() # create kernel rules on pf1 rule = "ethtool -N {} flow-type tcp4 src-ip 192.168.{}.{} dst-ip 192.168.100.2 src-port 32 dst-port 33 action 8 \n" - if self.nic in ["ICE_100G-E810C_QSFP"]: + if self.nic in [ + "ICE_100G-E810C_QSFP", + "ICE_25G-E810_XXV_SFP", + "ICE_25G-E823C_QSFP", + ]: num = 4 if self.is_chapman: num = 8 - if self.nic in ["ICE_25G-E810C_SFP", "ICE_25G-E810_XXV_SFP"]: + if self.nic in ["ICE_25G-E810C_SFP"]: num = 2 for i in range(num): for j in range(256): @@ -826,7 +830,7 @@ class TestICELimitValue(TestCase): """ 2*100G NIC, each pf can create 1024 rules at least, vfs share 14336 rules table 4*25G NIC, each pf can create 512 rules at least, vfs share 14336 rules table - so if 2*25G NIC, max number is 14848 on 1pf and vfs. + so if 2*25G NIC, max number is 15360 on 1pf and vfs. create 15360/14848 rules on pf1, check failed to create rule on vf00 and vf10 if hardware is chapman beach 100g*2, 1 pf can create 2048 rules,vfs generated by the same pf share 14336 rules, so if create 14386 rules on pf1,check failed to create rule on vf00 and vf10(vf00 and vf10 generated by pf1) @@ -842,7 +846,11 @@ class TestICELimitValue(TestCase): num = 60 if self.is_chapman: num = 64 - if self.nic in ["ICE_100G-E810C_QSFP"]: + if self.nic in [ + "ICE_100G-E810C_QSFP", + "ICE_25G-E810_XXV_SFP", + "ICE_25G-E823C_QSFP", + ]: for i in range(num): for j in range(256): flows.write( @@ -855,7 +863,7 @@ class TestICELimitValue(TestCase): count == num * 256, "failed to create %s fdir rules on pf." % (num * 256), ) - elif self.nic in ["ICE_25G-E810C_SFP", "ICE_25G-E810_XXV_SFP"]: + elif self.nic in ["ICE_25G-E810C_SFP"]: for i in range(58): for j in range(256): flows.write( -- 2.17.1