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 8ACC9A0C41; Mon, 2 Aug 2021 11:54:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7F8BA40143; Mon, 2 Aug 2021 11:54:05 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 8E83F40140 for ; Mon, 2 Aug 2021 11:54:03 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10063"; a="213153212" X-IronPort-AV: E=Sophos;i="5.84,288,1620716400"; d="scan'208";a="213153212" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2021 02:54:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,288,1620716400"; d="scan'208";a="501709184" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by fmsmga004.fm.intel.com with ESMTP; 02 Aug 2021 02:54:02 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Mon, 2 Aug 2021 02:54:02 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) 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 via Frontend Transport; Mon, 2 Aug 2021 02:54:02 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.172) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.10; Mon, 2 Aug 2021 02:54:02 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E8ShytNAY9GKXdl1YRwdhOGE3C7Fe/OgBoqyJcu2N84OZzPkwhPaG1BtHhxi0i7SnXLTbdgNZUqNMaPZSe3i7CoQYL3FEBTZ9LvyBn3ZBGt5+lu3BtRRRwd1r7tUn7yPOa+0Y9qp0VAqxGIo4Id6odvQ54I2wsLOBXJ3oPI5AR/+PruPE9nE4D2YcQwHn3QVE/IqZ7+0wYDZ37vYRyQYEWbH5Oht55XkmXX+Mq4nRSv2/Rwigy3nCRi65b0jfYmxKLkiODA8No42lwuyKvD4JHSp7EEhGD71/CALHmd3J6LEPkVZV8HzKWubG58bJyk8ex3Z7PNK6iqqovmDe497Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4dSMlPmQS4SZOQHK4zYlklTIL9OA4dNlCQ+Ki22I9Og=; b=lQQqmg2G1Vbag64C9fx96C3KDKirnQwk4GwCgT2vzvahwnC08wlreNdDVLHLKDVPPVxT/EvFpQmBLUkvcwFxEALO4GF3NlmmYNRMPZwvihzpdZHIP3mr3rrkDP430PMFEFEZEWFipCqAgmvJ5Rz8AfWP8WibjkqPfYDZusMZJChRacZzs9OoCt2qsTSd3jC+iXD7+0/DzIKBuk7vI7nKftxP8gXci2ssKIVww7War38MH01YKx6VofVMbBmXB79eyMwbMdELatxCeiszVJX3CFLHyQ5DIea+2E7Yse74CuYGs9q9oI/4szrLzLZVlmPSIexaqB2AeZcb6iNIkCzKqg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4dSMlPmQS4SZOQHK4zYlklTIL9OA4dNlCQ+Ki22I9Og=; b=lO/X0YwNpvpDgZPb0O23wANbpU6SgF2BX+V4Stna/kE8aYO5X1Zd8sIAlzaJviQE/yOjyfnCGjSb2Hl3sO23iYTq7Q4tOLpn3rJ7e8fCz5iAoFIS6Fqn4uTfwVvs7qyvNtwdGcAojogeomKN+YQtzsD4jataayZQX9kFDpqz4kk= Received: from BN7PR11MB2658.namprd11.prod.outlook.com (2603:10b6:406:ae::16) by BN6PR11MB4001.namprd11.prod.outlook.com (2603:10b6:405:7f::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.22; Mon, 2 Aug 2021 09:54:01 +0000 Received: from BN7PR11MB2658.namprd11.prod.outlook.com ([fe80::152:a489:e4ab:faf3]) by BN7PR11MB2658.namprd11.prod.outlook.com ([fe80::152:a489:e4ab:faf3%5]) with mapi id 15.20.4373.026; Mon, 2 Aug 2021 09:54:00 +0000 From: "Lin, Xueqin" To: "Chen, LingliX" , "dts@dpdk.org" CC: "Chen, LingliX" Thread-Topic: [dts] [PATCH V1] tests/generic_flow_api: add two test cases Thread-Index: AQHXhQ263wFoxg3GLkep9VPO9EP81qtf/nkQ Date: Mon, 2 Aug 2021 09:54:00 +0000 Message-ID: References: <20210730151031.27163-1-linglix.chen@intel.com> In-Reply-To: <20210730151031.27163-1-linglix.chen@intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8236a034-3ab5-48b4-9da9-08d9559b7429 x-ms-traffictypediagnostic: BN6PR11MB4001: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: kHCTzJ0U8k3Y7UruJA5CkOGMweItscCiY9vz6ueVnUpRV7IuL59o3ugfaSEKGtjDga/PxTeaz6/ojiFW68irY+43iHbY9H/GO4lqJViwQgqT0RaYJdikVBL76J5xJWybcTCFxYwZ/DKDMGEuPuE3R/FgZ1xPt1XHQmg/Z93a0Ze360i02LBP0E+d142FkzKGDooJSi0dbAcdCTRMtklikhXekTyw5pBVvIrtSeYxuWsnEx/P6LC/bMqqSGOg313GPCT1rugXlmDnaY57jVJRF0B9imtmmWgltIrcoljRi1oDBRGvabZxSKBWd1e3UnE4QabiT5NZOFRMnH6RQ5fCwMFN/7A7TpQUzmfVJ2QWYw1UZoHxS27fh4zThRB3II0br+c4LEq89lFPF2JlRy615BSpdXVWUUbjNAPXHr9gxKrxi42qNv8wkcuYsfz5eSQlFnLCSyUk/MHcQo8ynmkQvexXALrdNrNP6dHg463oT+wm1fACQm0qpQ3outcIa7bLT3/d66Pb7UJoZsFd0KBbwFR+O+LwCGMoEcQBGaoiS5i00ihQriHgGnPEocP9yEIj8TMgJAh3fhfUA+hyxK4mrgNpEBP9bgGLOm2SSZbUJBAK7dwXS5pt3UukD9NVjEayinaigp3zrVrvxzhQ3xAXXUfELPYBivfmxEuPELDzEwoFA/H/EewVY9itD2SrNrHCb69jdjc0TyqqoAEF4q6FF9jVbHdYQMKiyVssHxcU8fc= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN7PR11MB2658.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(26005)(83380400001)(7696005)(38100700002)(122000001)(33656002)(76116006)(4326008)(107886003)(66946007)(5660300002)(6506007)(71200400001)(86362001)(38070700005)(53546011)(52536014)(8676002)(55016002)(316002)(186003)(66446008)(8936002)(110136005)(508600001)(66556008)(9686003)(66476007)(2906002)(64756008)(41533002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?t/nl5bw4wVVvE/Wdb2l5hdibNowmbkbtF72P9v06pJtAydy6kJAGw1SwXQZC?= =?us-ascii?Q?Ufs2cUIzymRtENvlNGK5KQgh4yt68hYumutdqD/47P3CHAFZTyDbuFDCmPNn?= =?us-ascii?Q?qfa81F3ePjHRmha65uvxQ5PjU6HvsSnngM8HdVfuG9djMklOlpfq5fl89iBj?= =?us-ascii?Q?umO9S5oEHoTLYvP8KU8Ul0fGIuNcan1sXtmJNbUISqjthpj5JsQVGD8XiKYa?= =?us-ascii?Q?VEsXC4VxFPG1EyddHLH5pmSUHiRQpicmB2IPrHdiMewzdry27Yy0BMy3VGd0?= =?us-ascii?Q?f/dfRGgK39xDnJwzEdEd5pzVclXBhrn5UtOI9loNOjV/LexpRpyXSKpLTtfN?= =?us-ascii?Q?/79+1V7NB7kXup1DhKS9U2QAgzBlhBH1Ax35R4mnLzcxjau7zq2kQCFWtDjL?= =?us-ascii?Q?N6wQAfHQlqj9Jdm8bIaEEBSuYlJX21o5L0Ik8nn4s/YBpdKWHI2zRCwvVKOL?= =?us-ascii?Q?quU4xHykp5vteB7FDquVV50GnENixNe14MhWufm5hYgrSL2xRJsoXCgk2KGX?= =?us-ascii?Q?r1Mh8xk7osaHSxGt+WnAvsMhnNt0ozaAGkn/s/9b48KVM3s5PQXFg3ZpN15J?= =?us-ascii?Q?i+1aotgPlaINYtLHgkZcPDaJrMhrodxp/e+Dup/r6Lt0JDbj1RBKIVw4foKh?= =?us-ascii?Q?TQqdsEJIRRi2tFVn0ObGTQmiFVh8UDQSPMhsub8iVCnP8dI+BGt3Xo3rNZmw?= =?us-ascii?Q?QgSKUQPjiDIMVTAHfQuqWzmhtUvL1DOCnr2L8Hcx9Y5R3Rc/d+cjxGVsNLDv?= =?us-ascii?Q?8yuMd3m3S4LCipGBAloDtWvk8Y/A5XryRv0hN1JE+Agn4N+KYJPJ6Rnycp4/?= =?us-ascii?Q?q2vLVQb3F7ZSqZIYoyAJxn0uZjBRPSrNtAuScmViUOXFO1Ye4AIy9XnI0e5u?= =?us-ascii?Q?jB0sWxwswOmHSsyhu00lJJmEya8Xt8UK+2OhAMv/AwXQxvAY/5w5iTO04+3q?= =?us-ascii?Q?XDtouMDvqrntfhK1F+VfOO0SBFMmBS6h0g2G59dXN3oQ9GMxm3TpPDA8O6SX?= =?us-ascii?Q?zVC7C9lkc7JvcxC2O180fhAIPXYGShEMbtoPneSbkCYmvusxG1hd8d0nZHqA?= =?us-ascii?Q?D497Bbm7pV8EIXxXwhNFVoYmXEwj+nSuaMh6RlrfqeVZTtMFXfS63YOyYjpt?= =?us-ascii?Q?+1jmvghKbTkvoWcdvAa0tYcJdMI8HoD/5VN9SDWE6byHGUOtExK4+RXMpPXQ?= =?us-ascii?Q?ytoWzhbnLD7kjWtSjhNhnHgLRHQVsyfX4cVLmB4AdsSI5tU42OAgaxQJ7n+x?= =?us-ascii?Q?nkDQRFFrWrPCejttSNM1BjOG9MJ/wgt4TlPcD1vV52E55jp8WTxaxFciEoLn?= =?us-ascii?Q?9NGJU+om3JhuUUeCENoHfVas?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN7PR11MB2658.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8236a034-3ab5-48b4-9da9-08d9559b7429 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Aug 2021 09:54:00.6112 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: sOWS4yAej2oV1fE0MqjuliYwnxNEiHf0b3NIoFHxBD8OMzJlMbVQnjRFf+WYna/BmIHls7shmqjRfrEdARtJLw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB4001 X-OriginatorOrg: intel.com Subject: Re: [dts] [PATCH V1] tests/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: Friday, July 30, 2021 11:11 PM > To: dts@dpdk.org > Cc: Chen, LingliX > Subject: [dts] [PATCH V1] tests/generic_flow_api: add two test cases >=20 > add new i40e test cases. >=20 > Signed-off-by: Lingli Chen Acked-by: Xueqin Lin > --- > tests/TestSuite_generic_flow_api.py | 54 +++++++++++++++++++++++++++++ > 1 file changed, 54 insertions(+) >=20 > diff --git a/tests/TestSuite_generic_flow_api.py > b/tests/TestSuite_generic_flow_api.py > index b97b49f2..546e63a7 100644 > --- a/tests/TestSuite_generic_flow_api.py > +++ b/tests/TestSuite_generic_flow_api.py > @@ -2487,6 +2487,60 @@ class TestGeneric_flow_api(TestCase): > flag =3D 0 > self.verify(flag, "The packet index %d and %d hash values ar= e same, > rss_granularity_config failed!" %(result_rows[3][0],result_rows[4][0])) >=20 > + def test_create_same_rule_after_destroy(self): > + > + self.pmdout.start_testpmd("%s" % self.cores, "--disable-rss --r= xq=3D%d -- > txq=3D%d" % (MAX_QUEUE+1, MAX_QUEUE+1)) > + self.dut.send_expect("set fwd rxonly", "testpmd> ", 120) > + self.dut.send_expect("set verbose 1", "testpmd> ", 120) > + self.dut.send_expect("start", "testpmd> ", 120) > + time.sleep(2) > + > + self.dut.send_expect( > + "flow create 0 ingress pattern eth / ipv4 / udp src is 32 /= end actions > queue index 2 / end", "created") > + > + out =3D self.dut.send_expect("flow destroy 0 rule 0", "testpmd>= ") > + p =3D re.compile(r"Flow rule #(\d+) destroyed") > + m =3D p.search(out) > + self.verify(m, "flow rule 0 delete failed" ) > + > + self.dut.send_expect( > + "flow create 0 ingress pattern eth / ipv4 / udp src is 32 /= end actions > queue index 2 / end", "created") > + > + self.sendpkt(pktstr=3D'Ether(dst=3D"%s")/IP()/UDP(sport=3D32)/R= aw("x" * 20)' % > self.pf_mac) > + self.verify_result("pf", expect_rxpkts=3D"1", expect_queue=3D"2= ", > verify_mac=3Dself.pf_mac) > + self.sendpkt(pktstr=3D'Ether(dst=3D"%s")/IP()/UDP(dport=3D32)/R= aw("x" * 20)' % > self.pf_mac) > + self.verify_result("pf", expect_rxpkts=3D"1", expect_queue=3D"0= ", > verify_mac=3Dself.pf_mac) > + > + self.dut.send_expect("quit", "# ") > + time.sleep(2) > + > + def test_create_different_rule_after_destroy(self): > + > + self.pmdout.start_testpmd("%s" % self.cores, "--disable-rss --r= xq=3D%d -- > txq=3D%d" % (MAX_QUEUE+1, MAX_QUEUE+1)) > + self.dut.send_expect("set fwd rxonly", "testpmd> ", 120) > + self.dut.send_expect("set verbose 1", "testpmd> ", 120) > + self.dut.send_expect("start", "testpmd> ", 120) > + time.sleep(2) > + > + self.dut.send_expect( > + "flow create 0 ingress pattern eth / ipv4 / udp src is 32 /= end actions > queue index 2 / end", "created") > + > + out =3D self.dut.send_expect("flow destroy 0 rule 0", "testpmd>= ") > + p =3D re.compile(r"Flow rule #(\d+) destroyed") > + m =3D p.search(out) > + self.verify(m, "flow rule 0 delete failed" ) > + > + self.dut.send_expect( > + "flow create 0 ingress pattern eth / ipv4 / udp dst is 32 /= end actions > queue index 2 / end", "created") > + > + self.sendpkt(pktstr=3D'Ether(dst=3D"%s")/IP()/UDP(dport=3D32)/R= aw("x" * 20)' % > self.pf_mac) > + self.verify_result("pf", expect_rxpkts=3D"1", expect_queue=3D"2= ", > verify_mac=3Dself.pf_mac) > + self.sendpkt(pktstr=3D'Ether(dst=3D"%s")/IP()/UDP(sport=3D32)/R= aw("x" * 20)' % > self.pf_mac) > + self.verify_result("pf", expect_rxpkts=3D"1", expect_queue=3D"0= ", > verify_mac=3Dself.pf_mac) > + > + self.dut.send_expect("quit", "# ") > + time.sleep(2) > + > def tear_down(self): > """ > Run after each test case. > -- > 2.17.1