* [dts] [PATCH V1 0/1] tests/uni_pkt: x722 support
@ 2020-02-19 7:09 yufengmx
2020-02-19 7:09 ` [dts] [PATCH V1 1/1] " yufengmx
0 siblings, 1 reply; 3+ messages in thread
From: yufengmx @ 2020-02-19 7:09 UTC (permalink / raw)
To: dts, lijuan.tu, lihongx.ma; +Cc: yufengmx
x722 support.
yufengmx (1):
tests/uni_pkt: x722 support
tests/TestSuite_uni_pkt.py | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
--
2.21.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [dts] [PATCH V1 1/1] tests/uni_pkt: x722 support
2020-02-19 7:09 [dts] [PATCH V1 0/1] tests/uni_pkt: x722 support yufengmx
@ 2020-02-19 7:09 ` yufengmx
2020-02-21 1:51 ` Tu, Lijuan
0 siblings, 1 reply; 3+ messages in thread
From: yufengmx @ 2020-02-19 7:09 UTC (permalink / raw)
To: dts, lijuan.tu, lihongx.ma; +Cc: yufengmx
x722 support.
Signed-off-by: yufengmx <yufengx.mo@intel.com>
---
tests/TestSuite_uni_pkt.py | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/tests/TestSuite_uni_pkt.py b/tests/TestSuite_uni_pkt.py
index e32bc2c..fbca8df 100644
--- a/tests/TestSuite_uni_pkt.py
+++ b/tests/TestSuite_uni_pkt.py
@@ -121,11 +121,14 @@ class TestUniPacket(TestCase):
else:
raise VerifyFailure("Failed to detect L2 %s" % l2_type)
+
def test_IPv4_L4(self):
"""
checked that whether L3 and L4 packet can be normally detected.
"""
- if "fortville" in self.nic or "fortpark_TLV" in self.nic or "carlsville" in self.nic or "columbiaville" in self.nic:
+ if "fortville" in self.nic or "fortpark_TLV" in self.nic or \
+ "carlsville" in self.nic or "columbiaville" in self.nic or \
+ "x722" 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():
@@ -143,7 +146,9 @@ class TestUniPacket(TestCase):
}
# delete the unsupported packet based on nic type
- if "fortville" in self.nic or "fortpark_TLV" in self.nic or "carlsville" in self.nic or "columbiaville" in self.nic:
+ if "fortville" in self.nic or "fortpark_TLV" in self.nic or \
+ "carlsville" in self.nic or "columbiaville" in self.nic or \
+ "x722" 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():
@@ -156,7 +161,9 @@ 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 or "carlsville" in self.nic or "columbiaville" in self.nic:
+ if "fortville" in self.nic or "fortpark_TLV" in self.nic or \
+ "carlsville" in self.nic or "columbiaville" in self.nic or \
+ "x722" 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():
@@ -172,7 +179,9 @@ class TestUniPacket(TestCase):
}
# delete the unsupported packet based on nic type
- if "fortville" in self.nic or "fortpark_TLV" in self.nic or "carlsville" in self.nic or "columbiaville" in self.nic:
+ if "fortville" in self.nic or "fortpark_TLV" in self.nic or \
+ "carlsville" in self.nic or "columbiaville" in self.nic or \
+ "x722" 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")
--
2.21.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V1 1/1] tests/uni_pkt: x722 support
2020-02-19 7:09 ` [dts] [PATCH V1 1/1] " yufengmx
@ 2020-02-21 1:51 ` Tu, Lijuan
0 siblings, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-02-21 1:51 UTC (permalink / raw)
To: Mo, YufengX, dts, Ma, LihongX
Applied, thanks
> -----Original Message-----
> From: Mo, YufengX
> Sent: Wednesday, February 19, 2020 3:09 PM
> To: dts@dpdk.org; Tu, Lijuan <lijuan.tu@intel.com>; Ma, LihongX
> <lihongx.ma@intel.com>
> Cc: Mo, YufengX <yufengx.mo@intel.com>
> Subject: [dts][PATCH V1 1/1] tests/uni_pkt: x722 support
>
>
> x722 support.
>
> Signed-off-by: yufengmx <yufengx.mo@intel.com>
> ---
> tests/TestSuite_uni_pkt.py | 17 +++++++++++++----
> 1 file changed, 13 insertions(+), 4 deletions(-)
>
> diff --git a/tests/TestSuite_uni_pkt.py b/tests/TestSuite_uni_pkt.py index
> e32bc2c..fbca8df 100644
> --- a/tests/TestSuite_uni_pkt.py
> +++ b/tests/TestSuite_uni_pkt.py
> @@ -121,11 +121,14 @@ class TestUniPacket(TestCase):
> else:
> raise VerifyFailure("Failed to detect L2 %s" % l2_type)
>
> +
> def test_IPv4_L4(self):
> """
> checked that whether L3 and L4 packet can be normally detected.
> """
> - if "fortville" in self.nic or "fortpark_TLV" in self.nic or "carlsville" in
> self.nic or "columbiaville" in self.nic:
> + if "fortville" in self.nic or "fortpark_TLV" in self.nic or \
> + "carlsville" in self.nic or "columbiaville" in self.nic or \
> + "x722" 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():
> @@ -143,7 +146,9 @@ class TestUniPacket(TestCase):
> }
>
> # delete the unsupported packet based on nic type
> - if "fortville" in self.nic or "fortpark_TLV" in self.nic or "carlsville" in
> self.nic or "columbiaville" in self.nic:
> + if "fortville" in self.nic or "fortpark_TLV" in self.nic or \
> + "carlsville" in self.nic or "columbiaville" in self.nic or \
> + "x722" 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():
> @@ -156,7 +161,9 @@ 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 or "carlsville" in
> self.nic or "columbiaville" in self.nic:
> + if "fortville" in self.nic or "fortpark_TLV" in self.nic or \
> + "carlsville" in self.nic or "columbiaville" in self.nic or \
> + "x722" 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():
> @@ -172,7 +179,9 @@ class TestUniPacket(TestCase):
> }
>
> # delete the unsupported packet based on nic type
> - if "fortville" in self.nic or "fortpark_TLV" in self.nic or "carlsville" in
> self.nic or "columbiaville" in self.nic:
> + if "fortville" in self.nic or "fortpark_TLV" in self.nic or \
> + "carlsville" in self.nic or "columbiaville" in self.nic or \
> + "x722" 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")
> --
> 2.21.0
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-02-21 1:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-19 7:09 [dts] [PATCH V1 0/1] tests/uni_pkt: x722 support yufengmx
2020-02-19 7:09 ` [dts] [PATCH V1 1/1] " yufengmx
2020-02-21 1:51 ` Tu, Lijuan
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).