From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5D03AA0C53; Tue, 10 Aug 2021 08:24:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 50B984117E; Tue, 10 Aug 2021 08:24:08 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 4D92C4068E for ; Tue, 10 Aug 2021 08:24:06 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10070"; a="214830496" X-IronPort-AV: E=Sophos;i="5.84,309,1620716400"; d="scan'208";a="214830496" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Aug 2021 23:24:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,309,1620716400"; d="scan'208";a="671559664" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga006.fm.intel.com with ESMTP; 09 Aug 2021 23:24:05 -0700 Received: from shsmsx605.ccr.corp.intel.com (10.109.6.215) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Mon, 9 Aug 2021 23:24:04 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX605.ccr.corp.intel.com (10.109.6.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Tue, 10 Aug 2021 14:23:57 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2242.010; Tue, 10 Aug 2021 14:23:57 +0800 From: "Tu, Lijuan" To: "Chen, LingliX" , "dts@dpdk.org" CC: "Chen, LingliX" Thread-Topic: [dts] [PATCH V1] test_plans/generic_flow_api: add two test cases Thread-Index: AQHXhQl0rQ0KLxiyMk+Yj3RY9eKB8KtsVZbA Date: Tue, 10 Aug 2021 06:23:57 +0000 Message-ID: References: <20210730141013.94034-1-linglix.chen@intel.com> In-Reply-To: <20210730141013.94034-1-linglix.chen@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] test_plans/generic_flow_api: add two test cases X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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" > -----Original Message----- > From: dts On Behalf Of Lingli Chen > Sent: 2021=1B$BG/=1B(B7=1B$B7n=1B(B30=1B$BF|=1B(B 22:10 > To: dts@dpdk.org > Cc: Chen, LingliX > Subject: [dts] [PATCH V1] test_plans/generic_flow_api: add two test cases >=20 > add new Test case: i40e create same rule after destroy/ i40e create diffe= rent > rule after destroy. >=20 > Signed-off-by: Lingli Chen > --- > test_plans/generic_flow_api_test_plan.rst | 48 +++++++++++++++++++++++ > 1 file changed, 48 insertions(+) >=20 > diff --git a/test_plans/generic_flow_api_test_plan.rst > b/test_plans/generic_flow_api_test_plan.rst > index 71f16187..2c87da44 100644 > --- a/test_plans/generic_flow_api_test_plan.rst > +++ b/test_plans/generic_flow_api_test_plan.rst > @@ -1996,3 +1996,51 @@ Test case: Dual vlan(QinQ) >=20 > 3). send packet as step 2 with changed ivlan id, got hash value and q= ueue > value that output from the testpmd on DUT, the value should be > different with the values in step 2 & step 1) & step 2). > + > +Test case: Fortville create same rule after destroy > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=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. Launch the app ``testpmd`` with the following arguments:: > + > + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1,2,3,4,5,6,7,8= -n 4 -- -i > --disable-rss --rxq=3D16 --txq=3D16 > + testpmd> set fwd rxonly > + testpmd> set verbose 1 > + testpmd> start > + > +2. verify rules can be create after destroy:: > + > + testpmd>flow create 0 ingress pattern eth / ipv4 / udp src is 32= / end > actions queue index 2 / end > + testpmd>flow destroy 0 rule 0 > + testpmd>flow create 0 ingress pattern eth / ipv4 / udp src is > + 32 / end actions queue index 2 / end How to verify it? > + > +3. send packets match rule:: > + > + pkt1 =3D Ether()/IP()/UDP(sport=3D32)/Raw('x' * 20) > + > +4. send packets not match rule:: > + > + pkt2 =3D Ether()/IP()/UDP(dport=3D32)/Raw('x' * 20) > + What's the purpose of 3 and 4? I don't see any verification. Same comments for next test case. > +Test case: Fortville create different rule after destroy > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=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. Launch the app ``testpmd`` with the following arguments:: > + > + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1,2,3,4,5,6,7,8= -n 4 -- -i > --disable-rss --rxq=3D16 --txq=3D16 > + testpmd> set fwd rxonly > + testpmd> set verbose 1 > + testpmd> start > + > +2. verify rules can be create after destroy:: > + > + testpmd>flow create 0 ingress pattern eth / ipv4 / udp src is 32= / end > actions queue index 2 / end > + testpmd>flow destroy 0 rule 0 > + testpmd>flow create 0 ingress pattern eth / ipv4 / udp dst is > + 32 / end actions queue index 2 / end > + > +3. send packets match rule:: > + > + pkt1 =3D Ether()/IP()/UDP(dport=3D32)/Raw('x' * 20) > + > +4. send packets not match rule:: > + > + pkt2 =3D Ether()/IP()/UDP(sport=3D32)/Raw('x' * 20) > -- > 2.32.0