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 222C2A04F5; Fri, 19 Jun 2020 10:21:18 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E6A835F2F; Fri, 19 Jun 2020 10:21:17 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 995EF5B3C for ; Fri, 19 Jun 2020 10:21:15 +0200 (CEST) IronPort-SDR: 5EA1e5rhLf21LyXnkA+GODkwkdBQogCzMGv2Ph2UwEr6uU3ohAg1SbSp7coBoXblDAx8FgXt/F GNmKD+/SMk0A== X-IronPort-AV: E=McAfee;i="6000,8403,9656"; a="122620488" X-IronPort-AV: E=Sophos;i="5.75,254,1589266800"; d="scan'208";a="122620488" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jun 2020 01:21:14 -0700 IronPort-SDR: WJ7n1BgaAr10ikEV2ygRjikZdSfwSvoN0S3lF/mYUayq0gwHLtW+LLHU+MmGGWSyRlY//TwU05 9AjnIB6jpYtQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,254,1589266800"; d="scan'208";a="318057745" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by FMSMGA003.fm.intel.com with ESMTP; 19 Jun 2020 01:21:14 -0700 Received: from fmsmsx118.amr.corp.intel.com (10.18.116.18) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 19 Jun 2020 01:21:14 -0700 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by fmsmsx118.amr.corp.intel.com (10.18.116.18) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 19 Jun 2020 01:21:14 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.103) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 19 Jun 2020 01:21:14 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OWe3wXEN5LbQsUneQm+2oRfhppkm12/FBB0S8QUGo1EZ6VYlHvI0uQl7vCppolz+ds3O7lMYKanPPkn7GDBWaCJGXCptP8cq9lDfFZyVgyr6is8DueqhTgJO+X5sqHH2jSfT5J9iEaafe79DOk7ZCf4Rc+C+8vGG85kTxcSXexdGbo/x90Gfnlz+22+g3LPSRaH44f0K+KKW1tslTpifM9SSzLGX1UheZdEmmXq/8Un253Jqld9X4u8cap3J+R83OUVFOGZI2Um+ZKI+4cYNyrkZoC/PboiLwwHrcbhEBAT645uzdyfrioHmm0CGIan8/B2h1lA9RjE/N4SZeXJnbA== 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=fnUW90xITa6TnlfTOl9rK3VZH+CNeYiG2ad+tuPwq8s=; b=DH3RyGnlxSDAx/iXMOJdUsvwRR9osF+zfVpIkiY7ydqMLcxYdjwbo84Xof4bzf2Gg+p7GSrV5wyaJkf/CQ/JRDRPYx/cMd0rHarZ4r9I4JS5i+KKrKhFDNK3KfHgLUCMP7ZtWqDypYZ7jOhRHnqLLxorICZVGbJCtknARUumwBx6sTaRXmMjk3emsVONJxSjtuzQ8ENEvEVZXdqp/mg2BAcSL0PqnjPAXHIhyvF5UtWGDKoYOv7eeDe4y5oivN3vqcIOnemlgxKuDniD2VJKB05p/EGM5BI/O1kKl+oXS4fy/sX9iauOIprNsxeLHSFIRBEU5QVs+YjaPwvAfUXHmQ== 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=fnUW90xITa6TnlfTOl9rK3VZH+CNeYiG2ad+tuPwq8s=; b=N4djwOokhPXdPv807vzjRkgMFXf4VEpeAmLXQxT0A+y1+zuZmg1W0LYT769qqgOiu5nu7Y5hyw2cNfwMc62DV12mWOQlC67fZ9h3gVn4Is8uBL7k7DT77dAfC703ru3yEYm6ZAvMTFd8kn/2SGUTIWnKcfvYyE+eCpBf3Ux7B6M= Received: from BY5PR11MB3893.namprd11.prod.outlook.com (2603:10b6:a03:183::26) by BYAPR11MB3607.namprd11.prod.outlook.com (2603:10b6:a03:b2::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.22; Fri, 19 Jun 2020 08:21:10 +0000 Received: from BY5PR11MB3893.namprd11.prod.outlook.com ([fe80::c85c:ec78:c650:6ac9]) by BY5PR11MB3893.namprd11.prod.outlook.com ([fe80::c85c:ec78:c650:6ac9%3]) with mapi id 15.20.3109.021; Fri, 19 Jun 2020 08:21:10 +0000 From: "Peng, Yuan" To: "Xiao, QimaiX" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH V3]tests/TestSuite_cvl_fdir: add cvl 25g max rules support Thread-Index: AQHWQGPDDASfxK/VFEic6lRYP2iODKjfnVkw Date: Fri, 19 Jun 2020 08:21:10 +0000 Message-ID: References: <1591929497-23620-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.2.0.6 dlp-product: dlpe-windows dlp-reaction: no-action 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.203] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f5928187-1c71-451e-923c-08d81429b940 x-ms-traffictypediagnostic: BYAPR11MB3607: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:175; x-forefront-prvs: 0439571D1D x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: HB3JdKZb0D+bhlT8MyRcztb/Fka7kMAPQsGS96IFCKq2fu8BNDFEE8WqV4AtXFVQLVsfqCnc8x1Oo81pKnZzrsvxpFqm8RNO751ojrG4QCt5D2R/ATrenLDXxDd6nWrPng1VpqUeutab2RsTpBq1ZDTGJjxjSWBcKYZcIJ5axWGgwcXMcAG5N+lpblRtGipW9CL1SdvSsXbld9MU6lyTs620YmpR+fgxOakStbbKxhHJHL0K71WFKKa8nvR5fQdCa77STmYYeX5I9faR3LCyy94hrQ0nuoSrxhF29OY45R8ca/ordfSxzh9DWc8KO/43OaQZpniI+TmSO+X7yyDzQA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR11MB3893.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(396003)(366004)(346002)(136003)(376002)(8676002)(186003)(33656002)(8936002)(71200400001)(110136005)(5660300002)(478600001)(76116006)(66946007)(66476007)(2906002)(86362001)(66556008)(64756008)(316002)(83380400001)(52536014)(6506007)(26005)(53546011)(66446008)(9686003)(7696005)(55016002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: UMS2jxioDQV7wIwXUVq9d0TiIKexNMQUDgTGMpEj4n1+5tEp1UXEiF8JLV90/fS9tapcWMNcUzUH2XLfPCoIIjPmpwmRHrsA7ZRw/uaeq66dLyQFvpJDk001eCVguwpC0HRBhHZiCDImu9OOPPx7BOaG/9Hlvc/USLwsjGV0NehEA05AKvAk0bvvVDLU/wQu6o+2isX4kdK2IenhpK8M5K1CKeWCk6PSVQj8SqYFgT1wp9J06eAgnT5pqY0kAMzL1IiBr6j2RxbVD77yC6lfLti309R9Q02D6oVErUpGfado9cGDD/URvZyAkYmjZYRbl8T4W9D9lAu8bEuad0+Hm+bLkRznxIdFk3wCM6YxIQw0wN6k+LLy5quLZ/rL8iByJJxO3CHVtUBAQfELb2pAt+TR4NhPxzSMoG+rj4MyqB3eJgharAjv3t9KR6CZTvxBza94MD1TKSWlJ9JTUPKxOgUF8QUc5Ko43dqNX01X4JF68Gl2x2NcbtCJqoqwofCN Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: f5928187-1c71-451e-923c-08d81429b940 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jun 2020 08:21:10.6027 (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: 6b4bXbQa3jQvMmfmxNLR9Q4RZSNitKYg+DpeWvqJaDpxW0O7QztuKJ5DQQukMkmUSkg2mbS2Gux0j6X4nE8iqg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3607 X-OriginatorOrg: intel.com Subject: Re: [dts] [PATCH V3]tests/TestSuite_cvl_fdir: add cvl 25g max rules support 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" Comment inline -----Original Message----- From: dts On Behalf Of Xiao, QimaiX Sent: Friday, June 12, 2020 10:47 AM To: dts@dpdk.org Subject: Re: [dts] [PATCH V3]tests/TestSuite_cvl_fdir: add cvl 25g max rule= s support Tested-by: Xiao, QimaiX Regards, Xiao Qimai > -----Original Message----- > From: Xiao, QimaiX > Sent: Friday, June 12, 2020 10:38 AM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts][PATCH V3]tests/TestSuite_cvl_fdir: add cvl 25g max=20 > rules support >=20 > * 1. cvl25g only support 14848 fdir rules > * 2. fix max rules case failed caused python crash issue > * 3. add steps for case test_port_start_stop_reset according to=20 > testplan updation >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_cvl_fdir.py | 32 +++++++++++++++++++++++--------- > 1 file changed, 23 insertions(+), 9 deletions(-) >=20 > diff --git a/tests/TestSuite_cvl_fdir.py b/tests/TestSuite_cvl_fdir.py=20 > index > 12d9ad8..f2252d0 100644 > --- a/tests/TestSuite_cvl_fdir.py > +++ b/tests/TestSuite_cvl_fdir.py > @@ -1722,7 +1722,7 @@ class TestCVLFdir(TestCase): >=20 > def test_void_action(self): > rule =3D "flow create 0 ingress pattern eth dst is=20 > 00:11:22:33:44:55 / ipv4 src is 192.168.0.20 dst is 192.168.0.21 ttl is 2= tos is 4 / end actions end" > - self.create_fdir_rule(rule, check_stats=3DFalse, msg=3D"Invalid = input action: > Invalid argument") > + self.create_fdir_rule(rule, check_stats=3DFalse) > self.check_fdir_rule(stats=3DFalse) >=20 > def _test_unsupported_action(self): > @@ -2068,6 +2068,11 @@ class TestCVLFdir(TestCase): > self.check_fdir_rule(port_id=3D0, stats=3DTrue, rule_list=3Drule= _li) > out2 =3D self.send_pkts_getouput(pkts=3Dpkt, port_id=3D0, count= =3D1) > rfc.check_mark(out2, pkt_num=3D1, check_param=3D{"port_id": 0, "= queue": > 1, "mark_id": 0}, stats=3DTrue) > + rule2 =3D 'flow create 0 ingress pattern eth dst is=20 > + 00:11:22:33:44:55 / ipv4 > src is 192.168.0.22 dst is 192.168.0.23 / end actions queue index 2 /=20 > mark id 1 / end' > + rule_li2 =3D self.create_fdir_rule(rule=3Drule2, check_stats=3DT= rue) > + self.check_fdir_rule(rule_list=3Drule_li+rule_li2) > + out3 =3D > self.send_pkts_getouput(pkts=3D'Ether(dst=3D"00:11:22:33:44:55")/IP(src= =3D"1 > 92.1 > 68.0.22",dst=3D"192.168.0.23") / Raw("x" * 80)', port_id=3D0, count=3D1) > + rfc.check_mark(out3, pkt_num=3D1, check_param=3D{"port_id": 0, > + "queue": 2, "mark_id": 1}, stats=3DTrue) >=20 > def test_add_delete_rules(self): > self.pmd_output.execute_cmd("stop") > @@ -2157,10 +2162,22 @@ class TestCVLFdir(TestCase): > rules =3D list() > pkt_pattern =3D > 'Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.100.20",dst=3D"192.16= 8.% > d.%d > ")/Raw("x" * 80)' > pkts2 =3D list() > - for i in range(60): > - for j in range(256): > - rules.append(rule_pattern % (i, j)) > - pkts2.append(pkt_pattern % (i, j)) > + if self.nic in ['columbiaville_100g']: > + rule_li =3D list(map(str, range(15360))) > + pkts =3D > ['Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.100.20",dst=3D"192.1= 68. > 0.0")/ > Raw("x" * 80)', > + > 'Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.100.20",dst=3D"192.16= 8.59.255" > )/Raw("x" * 80)'] > + for i in range(60): > + for j in range(256): > + rules.append(rule_pattern % (i, j)) > + pkts2.append(pkt_pattern % (i, j)) > + else: [Yuan]: I think it should identify the NIC type. > + rule_li =3D list(map(str, range(14848))) > + pkts =3D > ['Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.100.20",dst=3D"192.1= 68. > 0.0")/ > Raw("x" * 80)', > + > 'Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.100.20",dst=3D"192.16= 8.57.255" > )/Raw("x" * 80)'] > + for i in range(58): > + for j in range(256): > + rules.append(rule_pattern % (i, j)) > + pkts2.append(pkt_pattern % (i, j)) > cmd_path =3D '/tmp/test_max_rules' > cmd_li =3D map(lambda x: x + os.linesep, rules) > with open(cmd_path, 'w') as f: > @@ -2174,15 +2191,12 @@ class TestCVLFdir(TestCase): > self.portMask, 64, 6= 4, cmd_path), > eal_param=3D"-w=20 > %s,flow-mark-support=3D1 - w %s,flow-mark-support=3D1" % ( > self.pci0, self.pci1= ), socket=3Dself.ports_socket) > - self.verify('Failed to create file' not in out, "create some= rule > failed: %s" % out) > + self.verify('Failed to create flow' not in out, "create=20 > + some rule failed") > self.config_testpmd() > self.pmd_output.execute_cmd('start') > rule =3D "flow create 0 ingress pattern eth / ipv4 src is=20 > 192.168.100.20 dst is 192.168.60.0 / end actions queue index 1 / mark / e= nd" > self.create_fdir_rule(rule=3Drule, check_stats=3DFalse,=20 > msg=3D'Failed to create flow', validate=3DFalse) > - rule_li =3D list(map(str, range(15360))) > self.check_fdir_rule(port_id=3D0, stats=3DTrue, rule_list=3D= rule_li) > - pkts =3D > ['Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.100.20",dst=3D"192.1= 68. > 0.0")/ > Raw("x" * 80)', > - > 'Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.100.20",dst=3D"192.16= 8.59.255" > )/Raw("x" * 80)'] > out1 =3D self.send_pkts_getouput(pkts=3Dpkts, port_id=3D0, c= ount=3D1) > rfc.check_mark(out1, pkt_num=3D2, check_param=3D{"port_id":= =20 > 0, > "queue": 1, "mark_id": 0}, stats=3DTrue) > self.pmd_output.execute_cmd("flow flush 0") > -- > 1.8.3.1