test suite reviews and discussions
 help / color / mirror / Atom feed
From: qifu <qi.fu@intel.com>
To: dts@dpdk.org
Cc: qifu <qi.fu@intel.com>
Subject: [dts] [PATCH 14/17] tests/TestSuite_uni_pkt: add carlsville to support nic of uni_pkt
Date: Mon, 19 Aug 2019 11:06:22 +0000	[thread overview]
Message-ID: <20190819110625.73544-15-qi.fu@intel.com> (raw)
In-Reply-To: <20190819110625.73544-1-qi.fu@intel.com>

Add carlsville to support nic of uni_pkt.
Signed-off-by: qifu <qi.fu@intel.com>
---
 tests/TestSuite_uni_pkt.py | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/tests/TestSuite_uni_pkt.py b/tests/TestSuite_uni_pkt.py
index 2b60320..e70bc0d 100644
--- a/tests/TestSuite_uni_pkt.py
+++ b/tests/TestSuite_uni_pkt.py
@@ -93,7 +93,7 @@ class TestUniPacket(TestCase):
         """
         Check whether L2 packet can be detected"
         """
-        self.verify(("fortville" in self.nic or "fortpark_TLV" in self.nic),
+        self.verify(("fortville" in self.nic or "fortpark_TLV" in self.nic or "carlsville" in self.nic),
                     "L2 packet detect only support by Fortville")
         self.L2_types = {
             "TIMESYNC": "L2_ETHER_TIMESYNC",
@@ -115,7 +115,7 @@ class TestUniPacket(TestCase):
         """
         checked that whether L3 and L4 packet can be normally detected.
         """
-        if "fortville" in self.nic or "fortpark_TLV" in self.nic:
+        if "fortville" in self.nic or "fortpark_TLV" in self.nic or "carlsville" in self.nic:
             outerL4Type = "L4_NONFRAG"
             ipv4_default_packet_type = ["L2_ETHER", "L3_IPV4_EXT_UNKNOWN"]
         elif "niantic" in self.nic.lower() or "powerville" in self.nic.lower() or "cavium" in self.nic.lower() or "twinpond" in self.nic.lower() or "twinville" in self.nic.lower() or "sageville" in self.nic.lower() or "sagepond" in self.nic.lower() or "springville" in self.nic.lower():
@@ -133,7 +133,7 @@ class TestUniPacket(TestCase):
         }
 
         # delete the unsupported packet based on nic type
-        if "fortville" in self.nic or "fortpark_TLV" in self.nic:
+        if "fortville" in self.nic or "fortpark_TLV" in self.nic or "carlsville" in self.nic:
             pktType.pop("MAC_IPihl_PKT")
             pktType.pop("MAC_IPihl_SCTP_PKT")
         elif "niantic" in self.nic.lower() or "powerville" in self.nic.lower() or "cavium" in self.nic.lower() or "twinpond" in self.nic.lower() or "twinville" in self.nic.lower() or "sageville" in self.nic.lower() or "sagepond" in self.nic.lower() or "springville" in self.nic.lower():
@@ -146,7 +146,7 @@ class TestUniPacket(TestCase):
         """
         checked that whether IPv6 and L4 packet can be normally detected.
         """
-        if "fortville" in self.nic or "fortpark_TLV" in self.nic:
+        if "fortville" in self.nic or "fortpark_TLV" in self.nic or "carlsville" in self.nic:
             outerL4Type = "L4_NONFRAG"
             ipv6_default_packet_type = ["L2_ETHER", "L3_IPV6_EXT_UNKNOWN"]
         elif "niantic" in self.nic.lower() or "powerville" in self.nic.lower() or "cavium" in self.nic.lower() or "twinpond" in self.nic.lower() or "twinville" in self.nic.lower() or "sageville" in self.nic.lower() or "sagepond" in self.nic.lower() or "springville" in self.nic.lower():
@@ -162,7 +162,7 @@ class TestUniPacket(TestCase):
         }
 
         # delete the unsupported packet based on nic type
-        if "fortville" in self.nic or "fortpark_TLV" in self.nic:
+        if "fortville" in self.nic or "fortpark_TLV" in self.nic or "carlsville" in self.nic:
             pktType.pop("MAC_IPv6FRAG_PKT_N")
         elif "niantic" in self.nic.lower() or "powerville" in self.nic.lower() or "cavium" in self.nic.lower() or "twinpond" in self.nic.lower() or "twinville" in self.nic.lower() or "sageville" in self.nic.lower() or "sagepond" in self.nic.lower() or "springville" in self.nic.lower():
             pktType.pop("MAC_IPv6FRAG_PKT_F")
@@ -174,7 +174,7 @@ class TestUniPacket(TestCase):
         checked that whether IP in IPv4 tunnel packet can be normally
         detected by Fortville.
         """
-        self.verify(("fortville" in self.nic or "fortpark_TLV" in self.nic),
+        self.verify(("fortville" in self.nic or "fortpark_TLV" in self.nic or "carlsville" in self.nic),
                     "IP in IPv4 tunnel packet type detect only support by Fortville")
         ipv4_in_ipv4_packet_type = ["L2_ETHER", "L3_IPV4_EXT_UNKNOWN", "TUNNEL_IP", "INNER_L3_IPV4_EXT_UNKNOWN"]
         ipv6_in_ipv4_packet_type = ["L2_ETHER", "L3_IPV4_EXT_UNKNOWN", "TUNNEL_IP", "INNER_L3_IPV6_EXT_UNKNOWN"]
@@ -202,7 +202,7 @@ class TestUniPacket(TestCase):
         detected.
         """
         self.verify(self.nic in ["niantic", "fortville_eagle", "fortville_spirit","powerville", "fortpark_TLV",
-            "fortville_25g", "fortville_spirit_single"], "not support %s" % self.nic)
+            "fortville_25g", "fortville_spirit_single", "carlsville"], "not support %s" % self.nic)
         pktType = {
             "MAC_IP_IPv6_PKT":            ["L2_ETHER", "L3_IPV4", "TUNNEL_IP",  "INNER_L3_IPV6"],
             "MAC_IP_IPv6EXT2_PKT":        ["L2_ETHER", "L3_IPV4", "TUNNEL_IP",  "INNER_L3_IPV6_EXT"],
@@ -218,7 +218,7 @@ class TestUniPacket(TestCase):
         checked that whether IP in IPv6 tunnel packet can be normally
         detected by Fortville.
         """
-        self.verify(("fortville" in self.nic or "fortpark_TLV" in self.nic),
+        self.verify(("fortville" in self.nic or "fortpark_TLV" in self.nic or "carlsville" in self.nic),
                     "IP in IPv6 tunnel packet type detect only support by Fortville")
         ipv4_in_ipv6_packet_type = ["L2_ETHER", "L3_IPV4_EXT_UNKNOWN", "TUNNEL_IP", "INNER_L3_IPV4_EXT_UNKNOWN"]
         ipv6_in_ipv6_packet_type = ["L2_ETHER", "L3_IPV4_EXT_UNKNOWN", "TUNNEL_IP", "INNER_L3_IPV6_EXT_UNKNOWN"]
@@ -244,7 +244,7 @@ class TestUniPacket(TestCase):
         checked that whether NVGRE tunnel packet can be normally detected
         by Fortville.
         """
-        self.verify(("fortville" in self.nic or "fortpark_TLV" in self.nic),
+        self.verify(("fortville" in self.nic or "fortpark_TLV" in self.nic or "carlsville" in self.nic),
                     "NVGRE tunnel packet type detect only support by Fortville")
         nvgre_base_packet_type = ["L2_ETHER", "L3_IPV4_EXT_UNKNOWN", "TUNNEL_GRENAT"]
         # INNER IPV4 not with vlan
@@ -281,7 +281,7 @@ class TestUniPacket(TestCase):
         checked that whether NVGRE in IPv6 tunnel packet can be normally
         detected by Fortville.
         """
-        self.verify(("fortville" in self.nic or "fortpark_TLV" in self.nic),
+        self.verify(("fortville" in self.nic or "fortpark_TLV" in self.nic or "carlsville" in self.nic),
                     "NVGRE in IPv6 detect only support by Fortville")
         nvgre_base_packet_type = ["L2_ETHER", "L3_IPV6_EXT_UNKNOWN", "TUNNEL_GRENAT"]
         # INNER IPV4 not with vlan
@@ -352,7 +352,7 @@ class TestUniPacket(TestCase):
         """
         checked that whether GRE tunnel packet can be normally detected by Fortville.
         """
-        self.verify(("fortville" in self.nic or "fortpark_TLV" in self.nic),
+        self.verify(("fortville" in self.nic or "fortpark_TLV" in self.nic or "carlsville" in self.nic),
                     "GRE tunnel packet type detect only support by Fortville")
         base_packet_type = [" L2_ETHER", " L3_IPV4_EXT_UNKNOWN", "TUNNEL_GRENAT"]
         pktType = {
@@ -371,7 +371,7 @@ class TestUniPacket(TestCase):
         checked that whether Vxlan tunnel packet can be normally detected by
         Fortville.
         """
-        self.verify(("fortville" in self.nic or "fortpark_TLV" in self.nic),
+        self.verify(("fortville" in self.nic or "fortpark_TLV" in self.nic or "carlsville" in self.nic),
                     "Vxlan tunnel packet type detect only support by Fortville")
 
         self.dut.send_expect("rx_vxlan_port add 4789 0", "testpmd>", 10)
-- 
2.17.1


  parent reply	other threads:[~2019-08-19  2:17 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-19 11:06 [dts] [PATCH 00/17] enable carlsville qifu
2019-08-19 11:06 ` [dts] [PATCH 01/17] conf/test_case_checklist: add carlsville to checklist qifu
2019-08-29 11:44   ` [dts] [PATCH V2 01/17]conf/test_case_checklist: " qifu
2019-08-30  2:55     ` Tu, Lijuan
2019-08-19 11:06 ` [dts] [PATCH 02/17] framework/settings: add carlsville to settings qifu
2019-08-29 11:46   ` [dts] [PATCH V2 02/17]framework/settings: " qifu
2019-08-30  2:53     ` Tu, Lijuan
2019-08-19 11:06 ` [dts] [PATCH 03/17] conf/test_case_supportlist: add carlsville to supportlist qifu
2019-08-19 11:06 ` [dts] [PATCH 04/17] tests/TestSuite_dual_vlan: add carlsville to support nic of dual_vlan qifu
2019-08-19 11:06 ` [dts] [PATCH 05/17] tests/TestSuite_fdir: add carlsville to support nic of fdir qifu
2019-08-19 11:06 ` [dts] [PATCH 06/17] tests/TestSuite_fortville_rss_granularity_config: add carlsville to support nic of fortville_rss_granularity_config qifu
2019-08-19 11:06 ` [dts] [PATCH 07/17] tests/TestSuite_generic_filter: add carlsville to support nic of generic_filter qifu
2019-08-19 11:06 ` [dts] [PATCH 08/17] tests/TestSuite_ipgre: add carlsville to support nic of ipgre qifu
2019-08-19  5:05   ` Mo, YufengX
2019-08-19  5:23     ` Fu, Qi
2019-08-19  5:28       ` Mo, YufengX
2019-08-19  5:40         ` Fu, Qi
2019-08-19 18:09   ` [dts] [PATCH V2 08/17]tests/TestSuite_ipgre: " qifu
2019-08-20 11:02     ` [dts] [PATCH V3 " qifu
2019-08-28 10:39       ` Tu, Lijuan
2019-08-19 11:06 ` [dts] [PATCH 09/17] tests/TestSuite_link_status_interrupt: add carlsville to support nic of link_status_interrupt qifu
2019-08-19 11:06 ` [dts] [PATCH 10/17] tests/TestSuite_nvgre: add carlsville to support nic of nvgre qifu
2019-08-19 11:06 ` [dts] [PATCH 11/17] tests/TestSuite_pmdrss_hash: add carlsville to support nic of pmdrss_hash qifu
2019-08-19 11:06 ` [dts] [PATCH 12/17] tests/TestSuite_ptype_mapping: add carlsville to support nic of ptype_mapping qifu
2019-08-19 11:06 ` [dts] [PATCH 13/17] tests/TestSuite_scatter: add carlsville to support nic of scatter qifu
2019-08-19 11:06 ` qifu [this message]
2019-08-19 11:06 ` [dts] [PATCH 15/17] tests/TestSuite_vlan_ethertype_config: add carlsville to support nic of vlan_ethertype_config qifu
2019-08-19 11:06 ` [dts] [PATCH 16/17] tests/TestSuite_vlan: add carlsville to support nic of vlan qifu
2019-08-19 11:06 ` [dts] [PATCH 17/17] tests/TestSuite_vxlan: add carlsville to support nic of vxlan qifu
2019-08-28 10:36 ` [dts] [PATCH 00/17] enable carlsville 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=20190819110625.73544-15-qi.fu@intel.com \
    --to=qi.fu@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).