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 07DF4A00E6 for ; Thu, 8 Aug 2019 06:46:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BAC2E2082; Thu, 8 Aug 2019 06:46:42 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 89B5CDE3 for ; Thu, 8 Aug 2019 06:46:40 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Aug 2019 21:46:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,360,1559545200"; d="scan'208";a="179725535" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga006.jf.intel.com with ESMTP; 07 Aug 2019 21:46:38 -0700 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.439.0; Wed, 7 Aug 2019 21:46:38 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 7 Aug 2019 21:46:37 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.80]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.250]) with mapi id 14.03.0439.000; Thu, 8 Aug 2019 12:46:36 +0800 From: "Tu, Lijuan" To: "Peng, Yuan" , "dts@dpdk.org" CC: "Peng, Yuan" Thread-Topic: [dts] [PATCH]test_plans: add a test case to TestSuite_vlan.py Thread-Index: AQHVQRy2sGwE5jHU4EKjdAwwqiU2l6bwxkDA Date: Thu, 8 Aug 2019 04:46:35 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BAFF428@SHSMSX101.ccr.corp.intel.com> References: <1563862224-40917-1-git-send-email-yuan.peng@intel.com> In-Reply-To: <1563862224-40917-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.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMWQ0YzFiNmUtZDRhZC00MWY0LWI2M2EtYjU3MWMwNGYyYzc5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiaEVHT1wvSlJTTkFrTENPUUpJcld1WUFCXC9qQ0w0TWY2OEZtSUl3MWMxQTc0ZWFQcTVcL3RFQ3d0bUZLTkE4Q1wvOTMifQ== 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 TestSuite_vlan.py 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Peng Yuan > Sent: Tuesday, July 23, 2019 2:10 PM > To: dts@dpdk.org > Cc: Peng, Yuan > Subject: [dts] [PATCH]test_plans: add a test case to TestSuite_vlan.py >=20 > add "Enable receipt of VLAN packets and disable VLAN header stripping" to > TestSuite_vlan.py >=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 beaab9b..a5058f8 100644 > --- a/test_plans/vlan_test_plan.rst > +++ b/test_plans/vlan_test_plan.rst > @@ -76,10 +76,10 @@ 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 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 > +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 >=20 > Setup the ``mac`` forwarding mode:: >=20 > @@ -89,6 +89,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 off 0 > testpmd> start > rxonly packet forwarding - CRC stripping disabled - packets/burst=3D= 32 > nb forwarding cores=3D1 - nb forwarding ports=3D10 @@ -108,6 +109,31= @@ > Identifier and send 1 packet on port ``A``. > Verify that the VLAN packet was not correctly received on port ``B`` wit= h > 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 > + > +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 on 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`` without > VLAN tag ``1``. > + > 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 >=20 > -- > 2.14.3