test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1] tests/TestSuite_runtime_vf_queue_number:set rss-hash-key to a fixed value
@ 2019-08-09 18:14 Jianwei Mei
  2019-08-12  3:51 ` Zhang, YanX A
  2019-08-12  6:59 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: Jianwei Mei @ 2019-08-09 18:14 UTC (permalink / raw)
  To: dts; +Cc: Jianwei Mei

set rss-hash-key to a fixed value instead of default random value on vf

Signed-off-by: Jianwei Mei <jianweix.mei@intel.com>
---
 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V1] tests/TestSuite_runtime_vf_queue_number:set rss-hash-key to a fixed value
  2019-08-09 18:14 [dts] [PATCH V1] tests/TestSuite_runtime_vf_queue_number:set rss-hash-key to a fixed value Jianwei Mei
@ 2019-08-12  3:51 ` Zhang, YanX A
  2019-08-12  6:59 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Zhang, YanX A @ 2019-08-12  3:51 UTC (permalink / raw)
  To: Mei, JianweiX, dts; +Cc: Mei, JianweiX

Tested-by:  Zhang, YanX A <yanx.a.zhang@intel.com>

-----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 <jianweix.mei@intel.com>
Subject: [dts] [PATCH V1] tests/TestSuite_runtime_vf_queue_number:set rss-hash-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 <jianweix.mei@intel.com>
---
 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V1] tests/TestSuite_runtime_vf_queue_number:set rss-hash-key to a fixed value
  2019-08-09 18:14 [dts] [PATCH V1] tests/TestSuite_runtime_vf_queue_number:set rss-hash-key to a fixed value Jianwei Mei
  2019-08-12  3:51 ` Zhang, YanX A
@ 2019-08-12  6:59 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2019-08-12  6:59 UTC (permalink / raw)
  To: Mei, JianweiX, dts; +Cc: Mei, JianweiX

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 <jianweix.mei@intel.com>
> Subject: [dts] [PATCH V1] tests/TestSuite_runtime_vf_queue_number:set rss-
> hash-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 <jianweix.mei@intel.com>
> ---
>  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 =
> '6EA6A420D5138E712433B813AE45B3C4BECB2B405F31AD6C331835372D15E2
> D5E49566EE0ED1962AFA1B7932F3549520FD71C75E'
> +
>  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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-09 18:14 [dts] [PATCH V1] tests/TestSuite_runtime_vf_queue_number:set rss-hash-key to a fixed value Jianwei Mei
2019-08-12  3:51 ` Zhang, YanX A
2019-08-12  6:59 ` Tu, Lijuan

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox