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 503C5A04E4; Wed, 12 Aug 2020 03:30:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4230B1C0B4; Wed, 12 Aug 2020 03:30:34 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id F33E61C002 for ; Wed, 12 Aug 2020 03:30:31 +0200 (CEST) IronPort-SDR: 6h91Zf98LnoTLKHs5JJA39VuJvBFIRRl0QpUaf4xKcuDhBylB0XSDn8uLf+oG6fU4pgXYCii6j pXYPnkhDY84g== X-IronPort-AV: E=McAfee;i="6000,8403,9710"; a="218201412" X-IronPort-AV: E=Sophos;i="5.76,302,1592895600"; d="scan'208";a="218201412" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2020 18:30:30 -0700 IronPort-SDR: P7EIUP7BSX9AAhNERDIXmNGEd5ItiVB4E5VgnZCtb5jJyi2JDoSsmRRSGJPdXnUFU6agedLbUW 55R2EX7OmB/Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,302,1592895600"; d="scan'208";a="290874640" Received: from orsmsx604-2.jf.intel.com (HELO ORSMSX604.amr.corp.intel.com) ([10.22.229.84]) by orsmga003.jf.intel.com with ESMTP; 11 Aug 2020 18:30:30 -0700 Received: from orsmsx604.amr.corp.intel.com (10.22.229.17) by ORSMSX604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 11 Aug 2020 18:30:30 -0700 Received: from ORSEDG001.ED.cps.intel.com (10.7.248.4) by orsmsx604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 11 Aug 2020 18:30:30 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.103) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 11 Aug 2020 18:30:27 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=deA+EoD99RNOOvP3evgaCGm6rJyM6GBFBDFYtUrKaoxycEOsj9lAX4f9JCEpgw5JJAopT+JclWPfci3C1Q7lDYrusDNW41zRzpidSHsA5rgy4TXQg+qM+KmaVzHAKvKdWhhw3JtScpcY7DLFlHH+3LULu3c7Eo59kyvXqHAbpF9IooLCmjPEwjnA9g+TV08o4m8A7gf2ZOdVqDR7P+BPvwy8Kb1NOUJKP0bfrrIhUzHButmgHnI7Mp4t8fqVEEqeUHXjoc2vS3o62y+EMd8tD1F/TT5Epd2jcVWfAB0heJ+KyWCoWcrjYXOj5VtY75QZ20jLZ0zm+w7ZJGNIJyTS/A== 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=0fd+Cb9Iqdxnj3Cf8mpPcDI7rdbUPsGY9R9XX3YXP40=; b=fAudKmNzg/5VyV8LIWMrho0ANbOCTxd7H3LbQkpk8ci5zxLb6+PMqH6l09Tsu+BkL7vZ5WVBZQ8cDX/03L7DprpD0LZKcAx6mPBUiL8C5s3ZlQIyfLCb6FWd+YMYvLYYFsJVtemRt1dJrIptQ26CTJ0REp0cvioEvM6UzyWcR4O+R350xtOUIJZ+BhpNfW+aptim+OHWHmVJXlhjS+0ThjqwFyeBZJubfmrMKwICmxY6rU5U/AzoIi7uQsVjzOLXi7Ibt0n9BxOQlwjdzSW7OMFtuqKEdmPWn4Y2awkA8iUkQJYTz38+8pfwju35ro8zk30FglO+TRVwT+0i8jdH1Q== 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=0fd+Cb9Iqdxnj3Cf8mpPcDI7rdbUPsGY9R9XX3YXP40=; b=chUAj/oieAGjPZ9MkTXI9RMYJmAdYPJUbTxK6bW8KHfl0eLlkf/3fWp14bLAuBaBUMOWaXH4qUNc5CIYh8WLy5NDYmJWm3NtPQJF7ERJs26UwmM+UEGxHb1kSMiGNHXmYuJgHX4DZ0tHePvfrdBkvBQU1oSlbLR7z2z5npxeT4o= Received: from MWHPR11MB1392.namprd11.prod.outlook.com (2603:10b6:300:24::14) by MWHPR1101MB2095.namprd11.prod.outlook.com (2603:10b6:301:5b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.19; Wed, 12 Aug 2020 01:30:22 +0000 Received: from MWHPR11MB1392.namprd11.prod.outlook.com ([fe80::25cd:b710:a1ca:d7ea]) by MWHPR11MB1392.namprd11.prod.outlook.com ([fe80::25cd:b710:a1ca:d7ea%4]) with mapi id 15.20.3261.025; Wed, 12 Aug 2020 01:30:22 +0000 From: "Fu, Qi" To: "Jiang, JunyuX" , "dts@dpdk.org" CC: "Jiang, JunyuX" Thread-Topic: [dts] [PATCH v2 2/2] tests/TestSuite_fortville_rss_input.py add flow query test case Thread-Index: AQHWb6kGEcFCKxjHz0CtAsLpCyIa06kzsOWw Date: Wed, 12 Aug 2020 01:30:22 +0000 Message-ID: References: <20200811032603.51352-1-junyux.jiang@intel.com> <20200811060745.16434-1-junyux.jiang@intel.com> <20200811060745.16434-2-junyux.jiang@intel.com> In-Reply-To: <20200811060745.16434-2-junyux.jiang@intel.com> Accept-Language: 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 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.147.196] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e412a840-3b89-4546-6235-08d83e5f4854 x-ms-traffictypediagnostic: MWHPR1101MB2095: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:216; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: IAWlg8f0XQwmTDnBeoNio7crUbbGHxuxcJ1Vw3rj3cFL4ZpfA8U+NSZOqqYIq+0xrCUOX4kd5dJTrQjuTO3SardX1HSqMghOd7Di1VMfL3MSEpIfaxkhbp1Wsia0DUU2+GWjtsDPxY3IIzW2/jBsfwXxxOVSw7WSsIAjb+YKQ+wcxpArp7RML4AB3KdhSU5S5maG9HYG0GjKiUJiBRxRlehrBuaRbx4Hf4aBglEnL8/KLO4QNo50dT189aTtvrCWlrixnDk7hOsobnyA0AojWw+EVfusiKOjcWnPrxgCCi4YUKoJGZ9wcYDo2cDY77yj x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR11MB1392.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(376002)(136003)(39860400002)(346002)(366004)(396003)(2906002)(316002)(76116006)(66946007)(66476007)(66556008)(64756008)(110136005)(66446008)(26005)(186003)(55016002)(33656002)(6506007)(4326008)(86362001)(107886003)(7696005)(8936002)(9686003)(5660300002)(83380400001)(53546011)(71200400001)(478600001)(52536014); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: xKLiBVX3gP5/DDqUkXDghfjKBQY3Vm/KmDtpoPtvQ4lNYRPrCWSkToUheJq72Q386vfduY0fKd420XC10v64r+86gR3PVBi84g47x5Oi9s+g/+KGoNfQsYfMChXtzoCbhTUuv6TX6kDyKrgPlnbzllO3vno8KAogRdv6F/nwtScjp9FKAosg+7nym5/FrnqATHBZ2Q7GC3g0zzcci6F3Te/nQt8tWPBsc2XMMxIg9ovZbi9pkbnnGCZGavK2jlsyYljJbFUiwzH4h1t1zMv6qw92SQ6upFSjoewRjc6Wp3yBlBeLx6o37snsSe2gXYuJiYU21yTooqJChwegl0XecfWX6sS7RrKPoqGv0XejnhFqgv2bvP3XdEhatJ9a00tKN1ydUyo+SgaJZSGcXu7T81wDuEJyQAp0I1VVtfgkC+4wRdmI2k06WoIAiYjTeDSc3aWr7qc6tjZX/yQE4KGFdPJQCHqM1WR2q81CIhWxh+vhT7NUmB7pd0XiJ1mNIoYoB6oz5aALOHX5cF1tD8ITGf5YopMNdL+V818mYNXlME/zphSvubapreevMr5wbYywNe1rnHkN8lyEXI5Raogo/wSHRpnBlc9HHTBlfkywXI+wc0cNhF7nPd0AvvlwOLmdiny+kISUrZyj6v5BIhYlfg== 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: MWHPR11MB1392.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e412a840-3b89-4546-6235-08d83e5f4854 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Aug 2020 01:30:22.7790 (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: Gt1+VzwmDHWiF5so+UJpxBmQwoKt1rk/jsxH2qMIzZuuzRQIKuC7yLulF0ORiH8e X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1101MB2095 X-OriginatorOrg: intel.com Subject: Re: [dts] [PATCH v2 2/2] tests/TestSuite_fortville_rss_input.py add flow query test case 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" Acked-by: Fu, Qi Best regards, Fu, Qi > -----Original Message----- > From: dts On Behalf Of Junyu Jiang > Sent: Tuesday, August 11, 2020 2:08 PM > To: dts@dpdk.org > Cc: Jiang, JunyuX > Subject: [dts] [PATCH v2 2/2] tests/TestSuite_fortville_rss_input.py add = flow > query test case >=20 > add test case for rss flow query. >=20 > Signed-off-by: Junyu Jiang > --- > tests/TestSuite_fortville_rss_input.py | 31 ++++++++++++++++++++++++++ > 1 file changed, 31 insertions(+) >=20 > diff --git a/tests/TestSuite_fortville_rss_input.py > b/tests/TestSuite_fortville_rss_input.py > index d1ff39c..8a0c41e 100644 > --- a/tests/TestSuite_fortville_rss_input.py > +++ b/tests/TestSuite_fortville_rss_input.py > @@ -3962,6 +3962,37 @@ class TestFortvilleRssGranularityConfig(TestCase): >=20 > self.dut.send_expect("quit", "# ", 30) >=20 > + def test_flow_query(self): > + """ > + Test the flow rule query. > + """ > + self.start_testpmd() > + > + self.dut.send_expect("flow create 0 ingress pattern eth / ipv4 /= tcp / end > actions rss types ipv4-tcp end queues end / end", "testpmd> ") > + self.dut.send_expect("flow create 0 ingress pattern eth / ipv4 /= udp / end > actions rss types ipv4-udp l3-src-only end queues end func symmetric_toep= litz / > end", "testpmd> ") > + self.dut.send_expect("flow create 0 ingress pattern end actions = rss types > end queues end func simple_xor / end", "testpmd> ") > + self.dut.send_expect("flow create 0 ingress pattern end actions = rss types > end queues 1 2 end / end", "testpmd> ") > + > + rexp =3D r"flow query 0 (\d) rss\r\r\nRSS:\r\n queues: ([\S\s]+?= )\r\n function: > (\S+?)\r\n types:\r\n ([\s\S]+)" > + out0 =3D self.dut.send_expect("flow query 0 0 rss", "testpmd> ") > + m0 =3D re.match(rexp, out0.strip()) > + self.verify("none" =3D=3D m0.group(2) and "default" =3D=3D m0.gr= oup(3) and "ipv4- > tcp" =3D=3D m0.group(4) , "Query error") > + out1 =3D self.dut.send_expect("flow query 0 1 rss", "testpmd> ") > + m1 =3D re.match(rexp, out1.strip()) > + self.verify("none" =3D=3D m1.group(2) and "symmetric_toeplitz" = =3D=3D m1.group(3) > and "ipv4-udp" in m1.group(4) and "l3-src-only" in m1.group(4) , "Query e= rror") > + out2 =3D self.dut.send_expect("flow query 0 2 rss", "testpmd> ") > + m2 =3D re.match(rexp, out2.strip()) > + self.verify("none" =3D=3D m2.group(2) and "simple_xor" =3D=3D m2= .group(3) and > "none" =3D=3D m2.group(4) , "Query error") > + out3 =3D self.dut.send_expect("flow query 0 3 rss", "testpmd> ") > + m3 =3D re.match(rexp, out3.strip()) > + self.verify("1 2" =3D=3D m3.group(2) and "default" =3D=3D m3.gro= up(3) and "none" > =3D=3D m3.group(4) , "Query error") > + > + self.dut.send_expect("flow flush 0", "testpmd> ") > + out4 =3D self.dut.send_expect("flow query 0 0 rss", "testpmd> ") > + self.verify("Flow rule #0 not found" in out4, "Failed to rss que= ry!") > + > + self.dut.send_expect("quit", "# ", 30) > + > def tear_down(self): > """ > Run after each test case. > -- > 2.17.1