test suite reviews and discussions
 help / color / mirror / Atom feed
From: "huilongx,xu" <huilongx.xu@intel.com>
To: dts@dpdk.org
Subject: [dts]  add rss hash key size case
Date: Mon, 13 Jul 2015 13:43:25 +0800	[thread overview]
Message-ID: <1436766205-4943-1-git-send-email-huilongx.xu@intel.com> (raw)

From: huilong xu <huilongx.xu@intel.com>


Signed-off-by: huilong xu <huilongx.xu@intel.com>
---
 tests/TestSuite_pmdrssreta.py |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/tests/TestSuite_pmdrssreta.py b/tests/TestSuite_pmdrssreta.py
index 60f340d..1749889 100644
--- a/tests/TestSuite_pmdrssreta.py
+++ b/tests/TestSuite_pmdrssreta.py
@@ -241,6 +241,30 @@ class TestPmdrssreta(TestCase):
                 self.send_packet(itf, iptype)
 
             self.dut.send_expect("quit", "# ", 30)
+    def test_rss_key_size(self):
+        nic_rss_key_size = {"fortville_eagle":52, "fortville_spirit":52, "fortville_spirit_single":52, "niantic": 40, "e1000": 40}
+        dutPorts = self.dut.get_ports(self.nic)
+        localPort = self.tester.get_local_port(dutPorts[0])
+        itf = self.tester.get_interface(localPort)
+        self.dut.kill_all()
+        self.dut.send_expect("./%s/app/testpmd  -c fffff -n %d -- -i --coremask=0xffffe --rxq=2 --txq=2" % (self.target, self.dut.get_memory_channels()), "testpmd> ", 120)
+        self.dut.send_expect("start", "testpmd> ", 120)
+        out = self.dut.send_expect("show port info all", "testpmd> ", 120)
+        self.dut.send_expect("quit", "# ", 30)
+        print out
+
+        pattern = re.compile("Hash key size in bytes:\s(\d+)")
+        m = pattern.search(out)
+        if m is not None:
+            size = m.group(1)
+            print "******************"
+            print size
+            print self.nic
+            print nic_rss_key_size[self.nic]
+            if (nic_rss_key_size[self.nic] == int(size)):
+                self.verify(True, "pass")
+            else:
+                self.verify(False, "fail")
 
     def tear_down(self):
         """
-- 
1.7.4.4

             reply	other threads:[~2015-07-13  5:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-13  5:43 huilongx,xu [this message]
2015-07-13  5:51 ` Liu, Yong
2015-07-13  6:17   ` Xu, HuilongX

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=1436766205-4943-1-git-send-email-huilongx.xu@intel.com \
    --to=huilongx.xu@intel.com \
    --cc=dts@dpdk.org \
    /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).