test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [DTS][Patch v1 1/2] test_plan/uni_pkt_test_plan: add nsh test plan
@ 2018-07-05  0:14 Wang Fei
  2018-07-06 10:12 ` Liu, Yong
  0 siblings, 1 reply; 2+ messages in thread
From: Wang Fei @ 2018-07-05  0:14 UTC (permalink / raw)
  To: dts

Signed-off-by: Wang Fei <feix.y.wang@intel.com>
---
 test_plans/uni_pkt_test_plan.rst | 94 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 94 insertions(+)

diff --git a/test_plans/uni_pkt_test_plan.rst b/test_plans/uni_pkt_test_plan.rst
index 6db91b0..905e27a 100644
--- a/test_plans/uni_pkt_test_plan.rst
+++ b/test_plans/uni_pkt_test_plan.rst
@@ -952,3 +952,97 @@ Send IPv4+Vxlan+MAC packet and verify inner and outer L2/L3/L4 corrected::
 
     Inner L3 type: Unknown
     Inner L4 type: Unknown
+
+
+Test Case: NSH
+==================
+This case checks if NSH packets could be detected by I40e driver NIC
+
+Send a ether+nsh packet and verify the detection message::
+    sendp([Ether(type=0x894f)/NSH(Len=0x6,NextProto=0x0,NSP=0x000002,NSI=0xff)], iface=txItf)
+
+    L2 type: L2_ETHER_NSH
+
+Send a ether+nsh+ip packet and verify the detection message::
+    sendp([Ether(dst="00:00:00:00:01:00",type=0x894f)/NSH(Len=0x6,NextProto=0x1,NSP=0x000002,NSI=0xff)/IP()], iface=txItf)
+
+    L2 type: L2_ETHER_NSH
+    L3 type: L3_IPV4_EXT_UNKNOWN
+    L4 type: L4_NONFRAG
+
+Send a ether+nsh+ip+icmp packet and verify the detection message::
+    sendp([Ether(type=0x894f)/NSH(Len=0x6,NextProto=0x1,NSP=0x000002,NSI=0xff)/IP()/ICMP()], iface=txItf)
+
+    L2 type: L2_ETHER_NSH
+    L3 type: L3_IPV4_EXT_UNKNOWN
+    L4 type: L4_ICMP
+
+Send a ether+nsh+ip_frag packet and verify the detection message::
+    sendp([Ether(dst="00:00:00:00:01:00",type=0x894f)/NSH(Len=0x6,NextProto=0x1,NSP=0x000002,NSI=0xff)/IP(frag=1,flags="MF"), iface=txItf)
+
+    L2 type: L2_ETHER_NSH
+    L3 type: L3_IPV4_EXT_UNKNOWN
+    L4 type: L4_FRAG
+
+Send a ether+nsh+ip+tcp packet and verify the detection message::
+    sendp([Ether(type=0x894f)/NSH(Len=0x6,NextProto=0x1,NSP=0x000002,NSI=0xff)/IP()/TCP()], iface=txItf)
+
+    L2 type: L2_ETHER_NSH
+    L3 type: L3_IPV4_EXT_UNKNOWN
+    L4 type: L4_TCP
+
+Send a ether+nsh+ip+udp packet verify the detection message::
+    sendp([Ether(dst="00:00:00:00:01:00",type=0x894f)/NSH(Len=0x6,NextProto=0x1,NSP=0x000002,NSI=0xff)/IP()/UDP()], iface=txItf)
+
+    L2 type: L2_ETHER_NSH
+    L3 type: L3_IPV4_EXT_UNKNOWN
+    L4 type: L4_UDP
+
+Send a ether+nsh+ip+sctp packet and verify the detection message::
+    sendp([Ether(type=0x894f)/NSH(Len=0x6,NextProto=0x1,NSP=0x000002,NSI=0xff)/IP()/SCTP(tag=1)/SCTPChunkData(data=\'X\' * 16)], iface=txItf)
+
+    L2 type: L2_ETHER_NSH
+    L3 type: L3_IPV4_EXT_UNKNOWN
+    L4 type: L4_SCTP
+
+Send a ether+nsh+ipv6 packet and verify the detection message::
+    sendp([Ether(type=0x894f)/NSH(Len=0x6,NextProto=0x2,NSP=0x000002,NSI=0xff)/IPv6()], iface=txItf)
+
+    L2 type: L2_ETHER_NSH
+    L3 type: L3_IPV6_EXT_UNKNOWN
+    L4 type: L4_NONFRAG
+
+Send a ether+nsh+ipv6+icmp packet and verify the detection message::
+    sendp([Ether(type=0x894f)/NSH(Len=0x6,NextProto=0x2,NSP=0x000002,NSI=0xff)/IPv6(src="2001::1",dst="2003::2",nh=0x3A)/ICMP()], iface=txItf)
+
+    L2 type: L2_ETHER_NSH
+    L3 type: L3_IPV6_EXT_UNKNOWN
+    L4 type: L4_ICMP
+
+Send a ether+nsh+ipv6_frag packet and verify the detection message::
+    sendp([Ether(dst="00:00:00:00:01:00",type=0x894f)/NSH(Len=0x6,NextProto=0x2,NSP=0x000002,NSI=0xff)/IPv6()/IPv6ExtHdrFragment()], iface=txItf)
+
+    L2 type: L2_ETHER_NSH
+    L3 type: L3_IPV6_EXT_UNKNOWN
+    L4 type: L4_FRAG
+
+Send a ether+nsh+ipv6+tcp packet and verify the detection message::
+    sendp([Ether(type=0x894f)/NSH(Len=0x6,NextProto=0x2,NSP=0x000002,NSI=0xff)/IPv6()/TCP()],iface=txItf)
+
+    L2 type: L2_ETHER_NSH
+    L3 type: L3_IPV6_EXT_UNKNOWN
+    L4 type: L4_TCP
+
+Send a ether+nsh+ipv6+udp packet and verify the detection message::
+    sendp([Ether(dst="00:00:00:00:01:00",type=0x894f)/NSH(Len=0x6,NextProto=0x2,NSP=0x000002,NSI=0xff)/IPv6()/UDP()], iface=txItf)
+
+    L2 type: L2_ETHER_NSH
+    L3 type: L3_IPV6_EXT_UNKNOWN
+    L4 type: L4_UDP
+
+Send a ether+nsh+ipv6+sctp and verify the detection message::
+    sendp([Ether(type=0x894f)/NSH(Len=0x6,NextProto=0x2,NSP=0x000002,NSI=0xff)/IPv6(nh=0x84)/SCTP(tag=1)/SCTPChunkData("x" * 16)], iface=txItf)
+
+    L2 type: L2_ETHER_NSH
+    L3 type: L3_IPV6_EXT_UNKNOWN
+    L4 type: L4_SCTP
-- 
2.7.4

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [DTS][Patch v1 1/2] test_plan/uni_pkt_test_plan: add nsh test plan
  2018-07-05  0:14 [dts] [DTS][Patch v1 1/2] test_plan/uni_pkt_test_plan: add nsh test plan Wang Fei
@ 2018-07-06 10:12 ` Liu, Yong
  0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2018-07-06 10:12 UTC (permalink / raw)
  To: Wang Fei, dts

Thanks, Fei. Applied.

On 07/05/2018 08:14 AM, Wang Fei wrote:
> Signed-off-by: Wang Fei<feix.y.wang@intel.com>
> ---
>   test_plans/uni_pkt_test_plan.rst | 94 ++++++++++++++++++++++++++++++++++++++++
>   1 file changed, 94 insertions(+)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-07-06  2:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-05  0:14 [dts] [DTS][Patch v1 1/2] test_plan/uni_pkt_test_plan: add nsh test plan Wang Fei
2018-07-06 10:12 ` Liu, Yong

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).