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 A8002A00E6 for ; Fri, 9 Aug 2019 11:25:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 88CDB1B19; Fri, 9 Aug 2019 11:25:46 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 6677CA69 for ; Fri, 9 Aug 2019 11:25:45 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Aug 2019 02:25:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,364,1559545200"; d="scan'208";a="193355664" Received: from unknown (HELO dpdk-meijianwei-tester.sh.intel.com) ([10.240.179.33]) by fmsmga001.fm.intel.com with ESMTP; 09 Aug 2019 02:25:43 -0700 From: Jianwei Mei To: dts@dpdk.org Cc: Jianwei Mei Date: Sat, 10 Aug 2019 02:14:05 +0800 Message-Id: <1565374445-387149-1-git-send-email-jianweix.mei@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [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" 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_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 +RSS_KEY = '6EA6A420D5138E712433B813AE45B3C4BECB2B405F31AD6C331835372D15E2D5E49566EE0ED1962AFA1B7932F3549520FD71C75E' + class TestRuntimeVfQn(TestCase): supported_vf_driver = ['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 = [['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", "testpmd> ") 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=' --rxq=%d --txq=%d' % (valid_qn, valid_qn)) self.vm0_testpmd.execute_cmd("set promisc all off", "testpmd> ") 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', '# ') -- 1.8.3.1