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 7E1F7A00BE; Fri, 12 Jun 2020 04:46:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 73DBA2D13; Fri, 12 Jun 2020 04:46:45 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 784D52C60 for ; Fri, 12 Jun 2020 04:46:43 +0200 (CEST) IronPort-SDR: HHx42metlJ1kJfo8tFeYjkmrFnBl7/SFW4uH5CDZoC3eKqc5pg9eIcWE4tu3iVoItGQHSjAUoW oKDAkaDfAqiA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2020 19:46:42 -0700 IronPort-SDR: A6oOohZkILRCqWmrFO/y14TUsptX+eoTwvVG1xcwqdM9dZ4Vln15py0kJxs+s0T2u5miwzqaFE LGRgB0brPuuw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,501,1583222400"; d="scan'208";a="275540908" Received: from orsmsx103.amr.corp.intel.com ([10.22.225.130]) by orsmga006.jf.intel.com with ESMTP; 11 Jun 2020 19:46:42 -0700 Received: from orsmsx157.amr.corp.intel.com (10.22.240.23) by ORSMSX103.amr.corp.intel.com (10.22.225.130) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 11 Jun 2020 19:46:41 -0700 Received: from ORSEDG002.ED.cps.intel.com (10.7.248.5) by ORSMSX157.amr.corp.intel.com (10.22.240.23) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 11 Jun 2020 19:46:41 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.102) by edgegateway.intel.com (134.134.137.101) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 11 Jun 2020 19:46:41 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ge9zVvfRR8peKmjqElCqfb6ixHstxdueUt0poR89rbm8NKW2KAFUdEOAx09BjJAt83kC8WDnWps++h3kieD0LDNd/M+9HURUnBR47MV50bztnvklpH2FtyBMhtamqu4V5AKp8mdV6wT25edy5AkRVNFJSinwt9e/ha27bGgKdK9VdzXRvzz50wo+mfTV64d9nyO3NdAhQ7nFh2tk0LRErItg6qLY9OdlRGP6Mfcs7+IS9ljrJIsN4Hrb7+QzeThSwDYjTAiqJCbtl1nQ46s6zAMQQmfK8Q5t394M6VF47GVcKKlu8nMV5yTbUSRpG9c+W+UjTR7KELNQk0VfVTagxw== 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=2OlTXhxFqoTw8H1d+5KsNcrnl8IJzWUISoS7EMo0NuA=; b=Ldd/5QlnJM0YdME4xJ+lytrb+IMRmcQrsf0pxp3Wq7jVHgNKQDqf0zEEjYo7oVqAny7Xwos+fQmJlLbC77YvuxGM7GFhoAbWsE00U3gDWsi58veFvqLM2anH72dZOFwNdM7nX1y5ZEJZqOkP5YyjbxdUyjHyCg7HoD4v238Slq4lG7Ll3vleoevi7Wysyc2WIW2Mwim0TjbkNMr18XE2Z+qmTUjKo5rBE2Tp4K+24LQhz+qHKw6HzxJIEAG4OxptA6nDlZIzXsDcCKPfjKmc7h6RM9IGydmicyRomrjs2Er1moSBtg5oW6qlOoIhnIoI5H8Dk/NWdx+Agcj5+02+Tg== 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=2OlTXhxFqoTw8H1d+5KsNcrnl8IJzWUISoS7EMo0NuA=; b=NBCfS1tPO79gZ8qHvCtdCXl3nqilFLrzLqr7v4cl0IEpSBMfnJqI4Ylv5u57w26WkYqmIc72OCQVMxS9tVdw2sZG25YrAbiUdaJJuK4yrkxbmVtrCEHrzCyGLQxS9md6v8HYEbym2nx3fDZkiO954/C/WY+AKhQjSoLwUyMOcLk= Received: from MWHPR1101MB2254.namprd11.prod.outlook.com (2603:10b6:301:58::11) by MWHPR11MB0016.namprd11.prod.outlook.com (2603:10b6:301:63::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.18; Fri, 12 Jun 2020 02:46:40 +0000 Received: from MWHPR1101MB2254.namprd11.prod.outlook.com ([fe80::f192:356f:89f:c71f]) by MWHPR1101MB2254.namprd11.prod.outlook.com ([fe80::f192:356f:89f:c71f%9]) with mapi id 15.20.3088.018; Fri, 12 Jun 2020 02:46:40 +0000 From: "Xiao, QimaiX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH V3]tests/TestSuite_cvl_fdir: add cvl 25g max rules support Thread-Index: AQHWQGOcRCiaJJMSZEKiR7FsrSGExqjURolw Date: Fri, 12 Jun 2020 02:46:40 +0000 Message-ID: References: <1591929497-23620-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1591929497-23620-1-git-send-email-qimaix.xiao@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.55.46.46] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4ab28817-afbd-4a8c-7b43-08d80e7ad591 x-ms-traffictypediagnostic: MWHPR11MB0016: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:159; x-forefront-prvs: 0432A04947 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: rzt/Iww4g6pxwF1Wa5mjVu7d/KcdvXEmsnpED521P5zPqKdcL3xPaJEeQnWFj5qyS8vQ71CH6jvyPdAmpfuIrYuUdqg2J47qf99bC3rUkIUsj9zhQNzrvLUtYD9ZlX0Yip3l9QLB9pstASqEnsW3JIczWcL4AISJfxjY/VHAT/yjXuuW7aYQHOslL/TTlhgcDoJ1mqn+XDfswU0FOuM7p81oAPYVRWFFOxSb9HWr497MrLEWyqbit4zg5VKe8xakh+AP8cVpvplM6hAuREcptpxI0KzyUn++2Uo2u3q/PGOqp4kXrHE2GwlSS04P/0SACMrBRihfIRpuUquTm7+SvA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR1101MB2254.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(136003)(396003)(39860400002)(376002)(346002)(366004)(66476007)(64756008)(66556008)(52536014)(71200400001)(33656002)(8676002)(66446008)(478600001)(76116006)(86362001)(66946007)(83380400001)(2906002)(8936002)(5660300002)(55016002)(6916009)(6506007)(7696005)(9686003)(316002)(53546011)(26005)(186003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: ULHeyb4ljTbhIw0uHrfEn2JOhGd+kx7wgq/iaGkUCaNnQRhA/vsR3XYt+EdatGoOXA1TMqcw7Y9azgOSPtax8zuRDZzoITJc4K8GKqD8HhKzidMz6iMBQjR5b5ViIS/UowG8D4/wjVzq/oH89KshdujwH7XWXCxbKlFF9zFh7T/w1F4Ln4rmMmm7/VCJOU8FThfL3Mc3qyB3K4n8cIWgy54tKcqQtyvpsP6zE9vJcv3HZWlP7TcpgMzWCElC5uf4Zb4Zi01khjCDX4swXau/THdOtL5Ix+Z9MdjoBjDqCuT/5ElnvXLeon24g++Fdux6EAI0X6qlGLqW/Fb4+FbrTEikTRAuu1iJmdpOGDdxaDfhHPDkhSZPYHglgPLM7YAEdvpH2P4Ud6wbhhTPjLIHErp6QZ0/tbkIsyUMLBeeb1pzCJITbUWcJApI+kH/3ZUS0yusT/fX+3vOcnMgsFMbQymVoHgZ/12an4HZjPUu2BI= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 4ab28817-afbd-4a8c-7b43-08d80e7ad591 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jun 2020 02:46:40.3316 (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: qZC6EqegNJsP0lYcgfDJrk2x7yl3R+Ln7sKMlIRUOs3OImpXM7o5myPxKI9YW/4hg+L4rD0acBwO7WuHF/7IAA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB0016 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" 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 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 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 in= dex > 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 00:11:22:33:4= 4: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 00:11:22:33:= 44:55 / ipv4 > src is 192.168.0.22 dst is 192.168.0.23 / end actions queue index 2 / mar= k 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"192.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: > + 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 %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 > + some rule failed") > self.config_testpmd() > self.pmd_output.execute_cmd('start') > rule =3D "flow create 0 ingress pattern eth / ipv4 src is 19= 2.168.100.20 dst > is 192.168.60.0 / end actions queue index 1 / mark / end" > self.create_fdir_rule(rule=3Drule, check_stats=3DFalse, 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": = 0, > "queue": 1, "mark_id": 0}, stats=3DTrue) > self.pmd_output.execute_cmd("flow flush 0") > -- > 1.8.3.1