test suite reviews and discussions
 help / color / mirror / Atom feed
From: <usurekha@marvell.com>
To: <dts@dpdk.org>
Cc: <pvukkisala@marvell.com>, <zzhou@marvell.com>,
	usurekha <usurekha@marvell.com>
Subject: [dts] [PATCH] tests/TestSuite_pmdrssreta.py: Enable the rss_hash by specifying the rx_offload type
Date: Thu, 26 Nov 2020 10:23:24 +0530	[thread overview]
Message-ID: <1606366404-30711-1-git-send-email-usurekha@marvell.com> (raw)

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


             reply	other threads:[~2020-11-26  4:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-26  4:53 usurekha [this message]
2020-11-26  8:12 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1606366404-30711-1-git-send-email-usurekha@marvell.com \
    --to=usurekha@marvell.com \
    --cc=dts@dpdk.org \
    --cc=pvukkisala@marvell.com \
    --cc=zzhou@marvell.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).