From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B2447A00E6 for ; Wed, 10 Jul 2019 08:32:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A87531B994; Wed, 10 Jul 2019 08:32:40 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id C6C464C8E for ; Wed, 10 Jul 2019 08:32:36 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jul 2019 23:32:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,473,1557212400"; d="scan'208";a="168219328" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga003.jf.intel.com with ESMTP; 09 Jul 2019 23:32:36 -0700 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 9 Jul 2019 23:32:10 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 9 Jul 2019 23:32:10 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.134]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.55]) with mapi id 14.03.0439.000; Wed, 10 Jul 2019 14:32:08 +0800 From: "Tu, Lijuan" To: "Peng, Yuan" , "dts@dpdk.org" CC: "Peng, Yuan" Thread-Topic: [dts] [PATCH] test_plans: add a test case to test plan Thread-Index: AQHVLAKohYE7tNi8+km1xjp54jLj3KbDelkw Date: Wed, 10 Jul 2019 06:32:08 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BADEC2F@SHSMSX101.ccr.corp.intel.com> References: <1561542028-73093-1-git-send-email-yuan.peng@intel.com> In-Reply-To: <1561542028-73093-1-git-send-email-yuan.peng@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiY2QwNzcxM2ItY2FjNy00MzQ2LTllNTYtODQ4NTZiNmE3MTU2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiWlFJUWlDeXFCZWJEUEoxNldsQVJjcnNSdXNNajlkRFNSaFpPMmt3Y204dHUrTXU0blBiczBcL1dVSmpoNURLXC9nIn0= 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] test_plans: add a test case to 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Applying: test_plans: add a test case to test plan error: patch failed: test_plans/vlan_test_plan.rst:100 error: test_plans/vlan_test_plan.rst: patch does not apply Patch failed at 0001 test_plans: add a test case to test plan > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Peng Yuan > Sent: Wednesday, June 26, 2019 5:40 PM > To: dts@dpdk.org > Cc: Peng, Yuan > Subject: [dts] [PATCH] test_plans: add a test case to test plan >=20 > Add a test case to vlan_test_plan.rst >=20 > Signed-off-by: Peng Yuan >=20 > diff --git a/test_plans/vlan_test_plan.rst b/test_plans/vlan_test_plan.rs= t > index 54df0b6..a5058f8 100644 > --- a/test_plans/vlan_test_plan.rst > +++ b/test_plans/vlan_test_plan.rst > @@ -76,7 +76,38 @@ The -n command is used to select the number of > memory channels. It should match Set the verbose level to 1 to display > information for each received packet:: >=20 > testpmd> set verbose 1 > + testpmd> vlan set filter on >=20 > +Test Case: Enable receipt of VLAN packets and disable VLAN header > +stripping > +=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=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 > + > +Setup the ``mac`` forwarding mode:: > + > + testpmd> set fwd mac > + Set mac packet forwarding mode > + > +Enable the receipt of VLAN packets with VLAN Tag Identifier 1 on port 0:= : > + > + testpmd> rx_vlan add 1 0 > + testpmd> vlan set strip off 0 > + testpmd> start > + rxonly packet forwarding - CRC stripping disabled - packets/burst=3D= 32 > + nb forwarding cores=3D1 - nb forwarding ports=3D10 > + RX queues=3D1 - RX desc=3D128 - RX free threshold=3D64 > + RX threshold registers: pthresh=3D8 hthresh=3D8 wthresh=3D4 > + TX queues=3D1 - TX desc=3D512 - TX free threshold=3D0 > + TX threshold registers: pthresh=3D32 hthresh=3D8 wthresh=3D8 > + > +Configure the traffic generator to send VLAN packets with the Tag > +Identifier ``1`` and send 1 packet on port ``A``. > + > +Verify that the VLAN packet was correctly received on port ``B`` with VL= AN > tag ``1``. > + > +Configure the traffic generator to send VLAN packets with not matched > +Tag Identifier and send 1 packet on port ``A``. > + > +Verify that the VLAN packet was not correctly received on port ``B`` > +with this not matched VLAN Tag. >=20 > Test Case: Enable receipt of VLAN packets and VLAN header stripping > =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=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 > @@ -89,6 +120,7 @@ Setup the ``mac`` forwarding mode:: > Enable the receipt of VLAN packets with VLAN Tag Identifier 1 on port 0:= : >=20 > testpmd> rx_vlan add 1 0 > + testpmd> vlan set strip on 0 > testpmd> start > rxonly packet forwarding - CRC stripping disabled - packets/burst=3D= 32 > nb forwarding cores=3D1 - nb forwarding ports=3D10 @@ -100,8 +132,7 = @@ > Enable the receipt of VLAN packets with VLAN Tag Identifier 1 on port 0:: > Configure the traffic generator to send VLAN packets with the Tag Identi= fier > ``1`` and send 1 packet on port ``A``. >=20 > -Verify that the VLAN packet was correctly received on port ``B`` with VL= AN > tag ``1``. > - > +Verify that the VLAN packet was correctly received on port ``B`` without > VLAN tag ``1``. >=20 > Test Case: Disable receipt of VLAN packets > =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=3D > -- > 2.14.3