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 22C1EA0471 for ; Mon, 12 Aug 2019 08:59:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 00E6E3257; Mon, 12 Aug 2019 08:59:48 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 40BD42C5 for ; Mon, 12 Aug 2019 08:59:46 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Aug 2019 23:59:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,376,1559545200"; d="scan'208";a="327258867" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga004.jf.intel.com with ESMTP; 11 Aug 2019 23:59:45 -0700 Received: from fmsmsx605.amr.corp.intel.com (10.18.126.85) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 11 Aug 2019 23:59:45 -0700 Received: from fmsmsx605.amr.corp.intel.com (10.18.126.85) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sun, 11 Aug 2019 23:59:45 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Sun, 11 Aug 2019 23:59:44 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.80]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.112]) with mapi id 14.03.0439.000; Mon, 12 Aug 2019 14:59:43 +0800 From: "Tu, Lijuan" To: "Mei, JianweiX" , "dts@dpdk.org" CC: "Mei, JianweiX" Thread-Topic: [dts] [PATCH V1] tests/TestSuite_runtime_vf_queue_number:set rss-hash-key to a fixed value Thread-Index: AQHVTpR0bHlvbJkKP0y3WynIc+/gmKb3GdqQ Date: Mon, 12 Aug 2019 06:59:42 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB018DD@SHSMSX101.ccr.corp.intel.com> References: <1565374445-387149-1-git-send-email-jianweix.mei@intel.com> In-Reply-To: <1565374445-387149-1-git-send-email-jianweix.mei@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-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOTY5YzFhNjMtYjhhNS00NWMyLWFjN2ItM2I0YmE4YmU3OGYzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiM3F4U1lBNDhFYnNSNDZtbk11dFBBTWp0bUZwQmxQYmpMXC9sZytHeEJDcE1XcWhXZXc1UkRWUisrdXl0OTFnUVEifQ== x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] tests/TestSuite_runtime_vf_queue_number:set rss-hash-key to a fixed value 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 [mailto:dts-bounces@dpdk.org] On Behalf Of Jianwei Mei > Sent: Saturday, August 10, 2019 2:14 AM > To: dts@dpdk.org > Cc: Mei, JianweiX > Subject: [dts] [PATCH V1] tests/TestSuite_runtime_vf_queue_number:set rss= - > hash-key to a fixed value >=20 > set rss-hash-key to a fixed value instead of default random value on vf >=20 > Signed-off-by: Jianwei Mei > --- > tests/TestSuite_runtime_vf_queue_number.py | 5 +++++ > 1 file changed, 5 insertions(+) >=20 > diff --git a/tests/TestSuite_runtime_vf_queue_number.py > b/tests/TestSuite_runtime_vf_queue_number.py > index 69d22fd..3e04489 100644 > --- a/tests/TestSuite_runtime_vf_queue_number.py > +++ b/tests/TestSuite_runtime_vf_queue_number.py > @@ -40,6 +40,8 @@ from qemu_kvm import QEMUKvm from test_case > import TestCase from pmd_output import PmdOutput >=20 > +RSS_KEY =3D > '6EA6A420D5138E712433B813AE45B3C4BECB2B405F31AD6C331835372D15E2 > D5E49566EE0ED1962AFA1B7932F3549520FD71C75E' > + > class TestRuntimeVfQn(TestCase): > supported_vf_driver =3D ['pci-stub', 'vfio-pci'] > def set_up_all(self): > @@ -185,6 +187,7 @@ class TestRuntimeVfQn(TestCase): > def testpmd_config_cmd_list(self, qn): > cmd_list =3D [['stop'], > ['port stop all'], > + ['port config 0 rss-hash-key ipv4 %s' % RSS_KEY], > ['port config all txq %d' % qn], > ['port config all rxq %d' % qn], > ['port start all']] @@ -275,6 +278,7 @@ class > TestRuntimeVfQn(TestCase): > self.vm0_testpmd.execute_cmd('set verbose 1') > self.vm0_testpmd.execute_cmd("set promisc all off", "tes= tpmd> ") > self.vm0_testpmd.execute_cmd("set fwd mac", "testpmd> ") > + self.vm0_testpmd.execute_cmd('port config 0 > + rss-hash-key ipv4 %s' % RSS_KEY) > self.verify_result(valid_qn, 500) > self.vm0_testpmd.execute_cmd('quit', '# ') > else: > @@ -282,6 +286,7 @@ class TestRuntimeVfQn(TestCase): > param=3D' --rxq=3D%d --tx= q=3D%d' % (valid_qn, > valid_qn)) > self.vm0_testpmd.execute_cmd("set promisc all off", "tes= tpmd> ") > self.vm0_testpmd.execute_cmd("set fwd mac", "testpmd> ") > + self.vm0_testpmd.execute_cmd('port config 0 > + rss-hash-key ipv4 %s' % RSS_KEY) > self.verify_result(valid_qn, 500) > self.vm0_testpmd.execute_cmd('quit', '# ') >=20 > -- > 1.8.3.1