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 727DAA0471 for ; Mon, 12 Aug 2019 05:51:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 46B733798; Mon, 12 Aug 2019 05:51:16 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id BF5C52C55 for ; Mon, 12 Aug 2019 05:51:14 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Aug 2019 20:51:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,376,1559545200"; d="scan'208";a="375100666" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga005.fm.intel.com with ESMTP; 11 Aug 2019 20:51:13 -0700 Received: from fmsmsx158.amr.corp.intel.com (10.18.116.75) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 11 Aug 2019 20:51:13 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx158.amr.corp.intel.com (10.18.116.75) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 11 Aug 2019 20:51:13 -0700 Received: from shsmsx105.ccr.corp.intel.com ([169.254.11.15]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.80]) with mapi id 14.03.0439.000; Mon, 12 Aug 2019 11:51:11 +0800 From: "Zhang, YanX A" 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: AQHVTpR0LP+i8LwX3kC7xttJ/2l5Iab25S5w Date: Mon, 12 Aug 2019 03:51:10 +0000 Message-ID: <2C49E4B25FAD1D419F7564D633EF72E1F40380@SHSMSX105.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: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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" Tested-by: Zhang, YanX A -----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-h= ash-key to a fixed value set rss-hash-key to a fixed value instead of default random value on vf Signed-off-by: Jianwei Mei --- tests/TestSuite_runtime_vf_queue_number.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/TestSuite_runtime_vf_queue_number.py b/tests/TestSuite_r= untime_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 TestC= ase from pmd_output import PmdOutput =20 +RSS_KEY =3D '6EA6A420D5138E712433B813AE45B3C4BECB2B405F31AD6C331835372D15E= 2D5E49566EE0ED1962AFA1B7932F3549520FD71C75E' + 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 TestRunt= imeVfQn(TestCase): self.vm0_testpmd.execute_cmd('set verbose 1') self.vm0_testpmd.execute_cmd("set promisc all off", "testp= md> ") self.vm0_testpmd.execute_cmd("set fwd mac", "testpmd> ") + self.vm0_testpmd.execute_cmd('port config 0=20 + 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 --txq= =3D%d' % (valid_qn, valid_qn)) self.vm0_testpmd.execute_cmd("set promisc all off", "testp= md> ") self.vm0_testpmd.execute_cmd("set fwd mac", "testpmd> ") + self.vm0_testpmd.execute_cmd('port config 0=20 + rss-hash-key ipv4 %s' % RSS_KEY) self.verify_result(valid_qn, 500) self.vm0_testpmd.execute_cmd('quit', '# ') =20 -- 1.8.3.1