test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] tests/TestSuite_pmdrssreta.py: Enable the rss_hash by specifying the rx_offload type
@ 2020-11-26  4:53 usurekha
  2020-11-26  8:12 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: usurekha @ 2020-11-26  4:53 UTC (permalink / raw)
  To: dts; +Cc: pvukkisala, zzhou, usurekha

From: usurekha <usurekha@marvell.com>

Signed-off-by: usurekha <usurekha@marvell.com>
---
 tests/TestSuite_pmdrssreta.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_pmdrssreta.py b/tests/TestSuite_pmdrssreta.py
index 168119f..4f7c791 100644
--- a/tests/TestSuite_pmdrssreta.py
+++ b/tests/TestSuite_pmdrssreta.py
@@ -153,6 +153,7 @@ class TestPmdrssreta(TestCase):
                 # compute the hash result using simple XOR.
                 hash_index_tmp = 0
                 index_tmp = tmp_reta_line["RSS hash"].strip("0x")
+                index_tmp = index_tmp.zfill(8)
                 index_tmp = textwrap.wrap(index_tmp,2)
                 index_tmp = [hex(int(index,16)) for index in index_tmp]
                 for index in  index_tmp:
@@ -219,10 +220,10 @@ class TestPmdrssreta(TestCase):
         for queue in testQueues:
             if(queue == 16):
                 self.pmdout.start_testpmd(
-                    "all", "--rxq=%d --txq=%d" % (queue, queue), socket=self.ports_socket)
+                    "all", "--rxq=%d --txq=%d --rx-offloads=0x00080000 " % (queue, queue), socket=self.ports_socket)
             else:
                 self.pmdout.start_testpmd(
-                    "all", "--mbcache=128 --rxq=%d --txq=%d" % (queue, queue), socket=self.ports_socket)
+                    "all", "--mbcache=128 --rxq=%d --txq=%d --rx-offloads=0x00080000" % (queue, queue), socket=self.ports_socket)
 
             for iptype, rsstype in list(iptypes.items()):
                 self.dut.send_expect("set verbose 8", "testpmd> ")
-- 
2.7.4


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

* Re: [dts] [PATCH] tests/TestSuite_pmdrssreta.py: Enable the rss_hash by specifying the rx_offload type
  2020-11-26  4:53 [dts] [PATCH] tests/TestSuite_pmdrssreta.py: Enable the rss_hash by specifying the rx_offload type usurekha
@ 2020-11-26  8:12 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2020-11-26  8:12 UTC (permalink / raw)
  To: usurekha, dts; +Cc: pvukkisala, zzhou

> Signed-off-by: usurekha <usurekha@marvell.com>

Applied

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

end of thread, other threads:[~2020-11-26  8:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-26  4:53 [dts] [PATCH] tests/TestSuite_pmdrssreta.py: Enable the rss_hash by specifying the rx_offload type usurekha
2020-11-26  8:12 ` Tu, Lijuan

test suite reviews and discussions

This inbox may be cloned and mirrored by anyone:

	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

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


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