test suite reviews and discussions
 help / color / mirror / Atom feed
From: Yan Xia <yanx.xia@intel.com>
To: dts@dpdk.org
Cc: Yan Xia <yanx.xia@intel.com>
Subject: [dts] [PATCH V1 3/4] tests/generic_filter: move case from generic_filter to generic_flow_api
Date: Wed, 29 Sep 2021 18:28:31 +0000	[thread overview]
Message-ID: <20210929182832.146624-4-yanx.xia@intel.com> (raw)
In-Reply-To: <20210929182832.146624-1-yanx.xia@intel.com>

move case from generic_filter to generic_flow_api

Signed-off-by: Yan Xia <yanx.xia@intel.com>
---
 tests/TestSuite_generic_filter.py | 67 -------------------------------
 1 file changed, 67 deletions(-)

diff --git a/tests/TestSuite_generic_filter.py b/tests/TestSuite_generic_filter.py
index 173e4f72..e789a928 100644
--- a/tests/TestSuite_generic_filter.py
+++ b/tests/TestSuite_generic_filter.py
@@ -549,73 +549,6 @@ class TestGeneric_filter(TestCase):
         else:
             self.verify(False, "%s nic not support this test" % self.nic)
 
-    def test_128_queues(self):
-        # testpmd can't support assign queue to received packet, so can't test
-        set_filter_flag = 1
-        packet_flag = 1
-        if self.kdriver == "ixgbe":
-            self.dut.send_expect("sed -i -e 's/#define IXGBE_NONE_MODE_TX_NB_QUEUES 64$/#define IXGBE_NONE_MODE_TX_NB_QUEUES 128/' drivers/net/ixgbe/ixgbe_ethdev.h", "# ",30)
-            self.dut.build_install_dpdk(self.target)
-            global valports
-            total_mbufs = self.request_mbufs(128) * len(valports)
-            self.pmdout.start_testpmd(
-                "all", "--disable-rss --rxq=128 --txq=128 --portmask=%s --nb-cores=4 --total-num-mbufs=%d" % (portMask, total_mbufs))
-            self.dut.send_expect(
-                "set stat_qmap rx %s 0 0" % valports[0], "testpmd> ")
-            self.dut.send_expect(
-                "set stat_qmap rx %s 0 0" % valports[1], "testpmd> ")
-            self.dut.send_expect(
-                "vlan set strip off %s" % valports[0], "testpmd> ")
-            self.dut.send_expect(
-                "vlan set strip off %s" % valports[1], "testpmd> ")
-            self.dut.send_expect(
-                "vlan set filter off %s" % valports[0], "testpmd> ")
-            self.dut.send_expect(
-                "vlan set filter off %s" % valports[1], "testpmd> ")
-            queue = ['64', '127', '128']
-
-            for i in [0, 1, 2]:
-                if i == 2:
-                    out = self.dut.send_expect(
-                        "set stat_qmap rx %s %s %s" % (valports[0], queue[i], (i + 1)), "testpmd> ")
-                    if 'Invalid RX queue %s' % (queue[i]) not in out:
-                        set_filter_flag = 0
-                        break
-                    cmd = "flow create {} ingress pattern eth / ".format(
-                        valports[0]) + "ipv4 dst is 2.2.2.5 src is 2.2.2.4 / tcp dst is {} src is 1 / ".format(
-                        i + 1) + "end actions queue index {} / end".format(queue[i])
-                    out = self.dut.send_expect(cmd, "testpmd> ")
-                    if 'Invalid argument' not in out:
-                        set_filter_flag = 0
-                        break
-                    continue
-                else:
-                    self.dut.send_expect("set stat_qmap rx %s %s %s" %
-                                         (valports[0], queue[i], (i + 1)), "testpmd> ")
-                    cmd = "flow create {} ingress pattern eth / ".format(
-                        valports[0]) + "ipv4 dst is 2.2.2.5 src is 2.2.2.4 / tcp dst is {} src is 1 / ".format(
-                        i + 1) + "end actions queue index {} / end".format(queue[i])
-                    self.dut.send_expect(cmd, "testpmd> ")
-                    self.dut.send_expect("start", "testpmd> ", 120)
-                global filters_index
-                filters_index = i
-                self.filter_send_packet("packet")
-                time.sleep(1)
-                out = self.dut.send_expect("stop", "testpmd> ")
-                p = re.compile(r"Forward Stats for RX Port= \d+/Queue=(\s?\d+)")
-                res = p.findall(out)
-                queues = [int(i) for i in res]
-                if queues[0] != int(queue[i]):
-                    packet_flag = 0
-                    break
-            self.dut.send_expect("quit", "#", timeout=30)
-            self.dut.send_expect("sed -i -e 's/#define IXGBE_NONE_MODE_TX_NB_QUEUES 128$/#define IXGBE_NONE_MODE_TX_NB_QUEUES 64/' drivers/net/ixgbe/ixgbe_ethdev.h", "# ",30)
-            self.dut.build_install_dpdk(self.target)
-            self.verify(set_filter_flag == 1, "set filters error")
-            self.verify(packet_flag == 1, "packet pass assert error")
-        else:
-            self.verify(False, "%s not support this test" % self.nic)
-
     def tear_down(self):
         """
         Run after each test case.
-- 
2.32.0


  parent reply	other threads:[~2021-09-29 10:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-29 18:28 [dts] [PATCH V1 0/4] *** move case from generic_filter to generic_flow_api *** Yan Xia
2021-09-29 18:28 ` [dts] [PATCH V1 1/4] test_plans/generic_filter_test_plan: move case from generic_filter to generic_flow_api Yan Xia
2021-09-29 18:28 ` [dts] [PATCH V1 2/4] test_plans/generic_flow_api_test_plan: " Yan Xia
2021-09-29 18:28 ` Yan Xia [this message]
2021-09-29 18:28 ` [dts] [PATCH V1 4/4] tests/generic_flow_api: " Yan Xia
2021-09-30  2:09   ` Chen, LingliX
2021-10-22  9:26     ` 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=20210929182832.146624-4-yanx.xia@intel.com \
    --to=yanx.xia@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).