From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id A42977D30 for ; Tue, 2 Jan 2018 09:20:48 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Jan 2018 00:20:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,495,1508828400"; d="scan'208";a="17424871" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga004.fm.intel.com with ESMTP; 02 Jan 2018 00:20:47 -0800 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 2 Jan 2018 00:20:46 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 2 Jan 2018 00:20:46 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.159]) with mapi id 14.03.0319.002; Tue, 2 Jan 2018 16:20:44 +0800 From: "Liu, Yong" To: "Wang, FeiX Y" , "dts@dpdk.org" CC: "Wang, FeiX Y" Thread-Topic: [dts] [PATCH V1 2/2] add test plan for test suite nsh Thread-Index: AQHTewg+wYUiMZdLC0aqmbCfesmajaNgTsUQ Date: Tue, 2 Jan 2018 08:20:44 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E62F3CD14@SHSMSX103.ccr.corp.intel.com> References: <1513944349-60679-1-git-send-email-feix.y.wang@intel.com> In-Reply-To: <1513944349-60679-1-git-send-email-feix.y.wang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZDEyMDFlMzUtYmQ5My00MzE0LTk1NzktMzM0MDhiZDhiN2FmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJIcUZaRDB1dENWM21iSWtGWkxDRWNBWDRpZ1pNdkpSS043bTg2Nk1adUNsYWR5YVVnY1dwXC9YOVp1OUpIN2VnVyJ9 x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1 2/2] add test plan for test suite nsh 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: Tue, 02 Jan 2018 08:20:50 -0000 Fei, NSH type detect look like one part of unified packet type feature. Could yo= u please check whether this test plan and suite can merged into that suite? Thanks, Marvin > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of wang fei > Sent: Friday, December 22, 2017 8:06 PM > To: dts@dpdk.org > Cc: Wang, FeiX Y > Subject: [dts] [PATCH V1 2/2] add test plan for test suite nsh >=20 > Signed-off-by: wang fei > --- > test_plans/nsh_test_plan.rst | 97 > ++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 97 insertions(+) > create mode 100644 test_plans/nsh_test_plan.rst >=20 > diff --git a/test_plans/nsh_test_plan.rst b/test_plans/nsh_test_plan.rst > new file mode 100644 > index 0000000..3932313 > --- /dev/null > +++ b/test_plans/nsh_test_plan.rst > @@ -0,0 +1,97 @@ > +.. Copyright (c) <2016>, Intel Corporation > + All rights reserved. > + > + Redistribution and use in source and binary forms, with or without > + modification, are permitted provided that the following conditions > + are met: > + > + - Redistributions of source code must retain the above copyright > + notice, this list of conditions and the following disclaimer. > + > + - Redistributions in binary form must reproduce the above copyright > + notice, this list of conditions and the following disclaimer in > + the documentation and/or other materials provided with the > + distribution. > + > + - Neither the name of Intel Corporation nor the names of its > + contributors may be used to endorse or promote products derived > + from this software without specific prior written permission. > + > + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS > + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT > + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS > + FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE > + COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, > + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES > + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR > + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) > + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, > + STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) > + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED > + OF THE POSSIBILITY OF SUCH DAMAGE. > + > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +Fortville, L2 NSH packet type recognition > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +Prerequisites > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +1. Hardware: > + one Fortville NIC (4x 10G or 2x10G or 2x40G or 1x10G) > + > +2. software: > + dpdk: http://dpdk.org/git/dpdk > + scapy: http://www.secdev.org/projects/scapy/ > + > +3. Assuming that DUT ports ``0`` and ``1`` are connected to the tester's > port ``A`` and ``B``. > + > +Test Case 1: NSH ptype recognition > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +1) start testpmd, start in rxonly mode, > + > +./testpmd -c 0xff -n 4 -- -i --portmask=3D0x3 --txqflags=3D0 > +testpmd> set fwd rxonly > +testpmd> set verbose 1 > +testpmd> start > + > +2) send packet as the following, verify packet type can be recognized > correctly. > + > +ether+nsh > +sendp([Ether(dst=3D"00:00:00:00:01:00",type=3D0x894f)/NSH(Len=3D0x6,Next= Proto=3D0 > x0,NSP=3D0x000002,NSI=3D0xff)], iface=3D"ens260f0") > + > +ether+nsh+ip > +sendp([Ether(dst=3D"00:00:00:00:01:00",type=3D0x894f)/NSH(Len=3D0x6,Next= Proto=3D0 > x1,NSP=3D0x000002,NSI=3D0xff)/IP(src=3D"192.168.0.1", dst=3D"192.168.0.2"= )], > iface=3D"ens260f0") > + > +ether+nsh+ip+icmp > +sendp([Ether(dst=3D"00:00:00:00:01:00",type=3D0x894f)/NSH(Len=3D0x6,Next= Proto=3D0 > x1,NSP=3D0x000002,NSI=3D0xff)/IP(src=3D"192.168.0.1", dst=3D"192.168.0.2"= )/ICMP()], > iface=3D"ens260f0") > + > +ether+nsh+ip_frag > +sendp([Ether(dst=3D"00:00:00:00:01:00",type=3D0x894f)/NSH(Len=3D0x6,Next= Proto=3D0 > x1,NSP=3D0x000002,NSI=3D0xff)/IP(src=3D"192.168.0.1", > dst=3D"192.168.0.2",frag=3D1,flags=3D"MF")], iface=3D"ens260f0") > + > +ether+nsh+ip+tcp > +sendp([Ether(dst=3D"00:00:00:00:01:00",type=3D0x894f)/NSH(Len=3D0x6,Next= Proto=3D0 > x1,NSP=3D0x000002,NSI=3D0xff)/IP(src=3D"192.168.0.1", > dst=3D"192.168.0.2")/TCP(sport=3D1024,dport=3D1025)], iface=3D"ens260f0") > + > +ether+nsh+ip+udp > +sendp([Ether(dst=3D"00:00:00:00:01:00",type=3D0x894f)/NSH(Len=3D0x6,Next= Proto=3D0 > x1,NSP=3D0x000002,NSI=3D0xff)/IP(src=3D"192.168.0.1", > dst=3D"192.168.0.2")/UDP(sport=3D1024,dport=3D1025)], iface=3D"ens260f0") > + > +ether+nsh+ip+sctp > +sendp([Ether(dst=3D"00:00:00:00:01:00",type=3D0x894f)/NSH(Len=3D0x6,Next= Proto=3D0 > x1,NSP=3D0x000002,NSI=3D0xff)/IP(src=3D"192.168.0.1", > dst=3D"192.168.0.2")/SCTP(tag=3D1)/SCTPChunkData(data=3D'X' * 16)], > iface=3D"ens260f0") > + > +ether+nsh+ipv6 > +sendp([Ether(dst=3D"00:00:00:00:01:00",type=3D0x894f)/NSH(Len=3D0x6,Next= Proto=3D0 > x2,NSP=3D0x000002,NSI=3D0xff)/IPv6(src=3D"2001::1", dst=3D"2003::2")], > iface=3D"ens260f0") > + > +ether+nsh+ipv6+icmp > +sendp([Ether(dst=3D"00:00:00:00:01:00",type=3D0x894f)/NSH(Len=3D0x6,Next= Proto=3D0 > x2,NSP=3D0x000002,NSI=3D0xff)/IPv6(src=3D"2001::1", > dst=3D"2003::2",nh=3D0x3A)/ICMP()], iface=3D"ens260f0") > + > +ether+nsh+ipv6_frag > +sendp([Ether(dst=3D"00:00:00:00:01:00",type=3D0x894f)/NSH(Len=3D0x6,Next= Proto=3D0 > x2,NSP=3D0x000002,NSI=3D0xff)/IPv6(src=3D"2001::1", > dst=3D"2003::2")/IPv6ExtHdrFragment()], iface=3D"ens260f0") > + > +ether+nsh+ipv6+tcp > +sendp([Ether(dst=3D"00:00:00:00:01:00",type=3D0x894f)/NSH(Len=3D0x6,Next= Proto=3D0 > x2,NSP=3D0x000002,NSI=3D0xff)/IPv6(src=3D"2001::1", > dst=3D"2003::2")/TCP(sport=3D1024,dport=3D1025)], iface=3D"ens260f0") > + > +ether+nsh+ipv6+udp > +sendp([Ether(dst=3D"00:00:00:00:01:00",type=3D0x894f)/NSH(Len=3D0x6,Next= Proto=3D0 > x2,NSP=3D0x000002,NSI=3D0xff)/IPv6(src=3D"2001::1", > dst=3D"2003::2")/UDP(sport=3D1024,dport=3D1025)], iface=3D"ens260f0") > + > +ether+nsh+ipv6+sctp > +sendp([Ether(dst=3D"00:00:00:00:01:00",type=3D0x894f)/NSH(Len=3D0x6,Next= Proto=3D0 > x2,NSP=3D0x000002,NSI=3D0xff)/IPv6(src=3D"2001::1", > dst=3D"2003::2",nh=3D0x84)/SCTP(tag=3D1)/SCTPChunkData(data=3D'X' * 16)], > iface=3D"ens260f0") > -- > 2.7.4