From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 817D91BE82 for ; Thu, 5 Jul 2018 08:21:59 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Jul 2018 23:21:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,310,1526367600"; d="scan'208";a="70208224" Received: from dpdktest46-2.sh.intel.com ([10.67.111.92]) by orsmga001.jf.intel.com with ESMTP; 04 Jul 2018 23:21:57 -0700 From: Wang Fei To: dts@dpdk.org Date: Thu, 5 Jul 2018 08:14:04 +0800 Message-Id: <1530749644-147371-1-git-send-email-feix.y.wang@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [DTS][Patch v1 1/2] test_plan/uni_pkt_test_plan: add nsh test plan X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jul 2018 06:22:00 -0000 Signed-off-by: Wang Fei --- 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