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 C027CA00C5; Thu, 11 Jun 2020 15:25:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B75D3DE0; Thu, 11 Jun 2020 15:25:19 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id BE854B62 for ; Thu, 11 Jun 2020 15:25:17 +0200 (CEST) IronPort-SDR: mPdlXA2BIRKLBx3dWnREAzcOaGs015kk8gXNE2tElgiOvmH1FQg55YT1aBJpEVROLL2ZdYSaze jUYASvgtj3nA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2020 06:25:17 -0700 IronPort-SDR: 4AdthHLM7eY8VXqmcgfx4W7OvgSLAhhdNRuyAnvOP9GCdeKaUcBaDGdLyIO4Mc6ktQ4W9yXb1U iI6c9WvrKRjA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,499,1583222400"; d="scan'208";a="447925360" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga005.jf.intel.com with ESMTP; 11 Jun 2020 06:25:16 -0700 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 11 Jun 2020 06:25:16 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 11 Jun 2020 06:25:16 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.85]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.208]) with mapi id 14.03.0439.000; Thu, 11 Jun 2020 21:25:12 +0800 From: "Tu, Lijuan" To: "Peng, Yuan" , "dts@dpdk.org" CC: "Peng, Yuan" Thread-Topic: [dts] [PATCH] add test code for 4*25G NIC Thread-Index: AQHWPsIX8+SpUVf3VUyJCux2w6ILYqjTaewA Date: Thu, 11 Jun 2020 13:25:12 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC5BE64@SHSMSX101.ccr.corp.intel.com> References: <1591776245-165515-1-git-send-email-yuan.peng@intel.com> In-Reply-To: <1591776245-165515-1-git-send-email-yuan.peng@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH] add test code for 4*25G NIC 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" Applied, thanks -----Original Message----- From: dts On Behalf Of Peng Yuan Sent: 2020=1B$BG/=1B(B6=1B$B7n=1B(B10=1B$BF|=1B(B 16:04 To: dts@dpdk.org Cc: Peng, Yuan Subject: [dts] [PATCH] add test code for 4*25G NIC add discription for 4*25 NIC in test plan. add test code for 4*25 NIC in max rules test case Signed-off-by: Peng Yuan diff --git a/test_plans/iavf_fdir_test_plan.rst b/test_plans/iavf_fdir_test= _plan.rst index 4a07c47..a201b9d 100644 --- a/test_plans/iavf_fdir_test_plan.rst +++ b/test_plans/iavf_fdir_test_plan.rst @@ -2687,6 +2687,9 @@ Subcase 3: different patterns, different actions =20 Test case: Max number =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +All the max number cases are designed based on 2*100G NIC. +If the hardware is 4*25G NIC, the guaranteed rule number of PF is 512. +So in subcase 3, there can be created at most 14848 rules on 1pf and 2vfs. =20 Subcase 1: 14336 rules on 1 vf ------------------------------ diff --git a/tests/TestSuite_iavf_fdir.py b/tests/TestSuite_iavf_fdir.py in= dex 8d11487..7463250 100644 --- a/tests/TestSuite_iavf_fdir.py +++ b/tests/TestSuite_iavf_fdir.py @@ -471,12 +471,6 @@ tv_pfcp_drop =3D { {"port_id": 0, "passthru": 1}] } =20 -tv_add_2048_rules_on_4_VFs_at_meantime =3D { - "name": "test_add_2048_rules_on_4_VFs_at_meantime", - "scapy_str": CREATE_2048_RULES_4_VFS, - "check_param": {"port_id": 0, "queue": 1} -} - tv_mac_ipv4_pay_queue_index =3D { "name": "test_mac_ipv4_pay_queue_index", "rule": "flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 = dst is 192.168.0.21 proto is 255 ttl is 2 tos is 4 / end actions queue inde= x 1 / end", @@ -2149,6 +2143,8 @@ class TestIAVFFdir(TestCase): def test_maxnum_15360rules_1pf_2vf(self): """ 2*100G NIC, each pf can create 1024 rules at least, vfs share 1433= 6 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. """ self.dut.kill_all() self.session_secondary =3D self.dut.new_session() @@ -2157,16 +215= 3,25 @@ class TestIAVFFdir(TestCase): src_file =3D 'iavf_fdir_15360_kernel_rules' flows=3Dopen(self.src_file_dir + src_file,mode=3D'w') count=3D0 - for i in range(4): - for j in range(256): - flows.write('ethtool -N enp134s0f1 flow-type tcp4 src-ip 1= 92.168.%d.%d dst-ip 192.168.100.2 src-port 32 dst-port 33 action 8 \n'%(i,j= )) - count=3Dcount+1 - flows.write('ethtool -N enp134s0f1 flow-type tcp4 src-ip 192.168.1= 00.0 dst-ip 192.168.100.2 src-port 32 dst-port 33 action 8 \n') - count=3Dcount+1 - flows.close() - self.verify(count =3D=3D 1025, "failed to create 1025 fdir rules o= n pf.") + if self.nic in ["columbiaville_100g"]: + for i in range(4): + for j in range(256): + flows.write('ethtool -N enp134s0f1 flow-type tcp4 src-= ip 192.168.%d.%d dst-ip 192.168.100.2 src-port 32 dst-port 33 action 8 \n'%= (i,j)) + count=3Dcount+1 + flows.write('ethtool -N enp134s0f1 flow-type tcp4 src-ip 192.1= 68.100.0 dst-ip 192.168.100.2 src-port 32 dst-port 33 action 8 \n') + count=3Dcount+1 + flows.close() + self.verify(count =3D=3D 1025, "failed to create 1025 fdir rul= es on pf.") + elif self.nic in ["columbiaville_25g"]: + for i in range(2): + for j in range(256): + flows.write('ethtool -N enp134s0f1 flow-type tcp4 src-= ip 192.168.%d.%d dst-ip 192.168.100.2 src-port 32 dst-port 33 action 8 \n'%= (i,j)) + count=3Dcount+1 + flows.write('ethtool -N enp134s0f1 flow-type tcp4 src-ip 192.1= 68.100.0 dst-ip 192.168.100.2 src-port 32 dst-port 33 action 8 \n') + count=3Dcount+1 + flows.close() + self.verify(count =3D=3D 513, "failed to create 1025 fdir rule= s=20 + on pf.") self.dut.session.copy_file_to(self.src_file_dir + src_file, self.d= ut_file_dir) - # create 1025 rules on pf0 fkr =3D open(self.dut_file_dir + "iavf_fdir_15360_kernel_rules", "= r+") kernel_rules =3D fkr.read() -- 2.14.3