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 782D3A0350; Sun, 28 Jun 2020 08:21:23 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 37D121C13A; Sun, 28 Jun 2020 08:21:23 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 63B071C12D for ; Sun, 28 Jun 2020 08:21:21 +0200 (CEST) IronPort-SDR: XMETZouzG/mKN2TZlcfmWHO+fC7DsASUSsLM75CgOIyh+WwigH/MVDVm9+Qvlq7cyEqkZmBX6K jafRfM5WuwPQ== X-IronPort-AV: E=McAfee;i="6000,8403,9665"; a="144842156" X-IronPort-AV: E=Sophos;i="5.75,290,1589266800"; d="scan'208";a="144842156" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jun 2020 23:21:19 -0700 IronPort-SDR: wtJnIkVrHVIJjKa+gYste6wb79B8/F4E4ayZc+XsxILSG1Ncj6LD0WC8B60cmxkN9IJsNlfd9w fohdMZHPQ76w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,290,1589266800"; d="scan'208";a="294578529" Received: from orsmsx105.amr.corp.intel.com ([10.22.225.132]) by orsmga002.jf.intel.com with ESMTP; 27 Jun 2020 23:21:19 -0700 Received: from orsmsx163.amr.corp.intel.com (10.22.240.88) by ORSMSX105.amr.corp.intel.com (10.22.225.132) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sat, 27 Jun 2020 23:21:19 -0700 Received: from ORSEDG002.ED.cps.intel.com (10.7.248.5) by ORSMSX163.amr.corp.intel.com (10.22.240.88) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sat, 27 Jun 2020 23:21:19 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.41) by edgegateway.intel.com (134.134.137.101) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sat, 27 Jun 2020 23:21:18 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nsnGkpKYSKSlMkwRK6Zaw08653Uxub+4TzHP5Aq4qB0xjIwPO0NsxjrxFa8gWlazRQWmBO7RQXwubW+XoiOM0egZ3yX0Khy2X4QE8TLsnm/e4qHSFC8XfXoFBfVBy6f+kobb6AOoxzxSiZBtDaCB8f1V2JqXlxYUU1RDdsoPaM2mzj45keU99ZZNpLb0Hc1KsfYWy/J3FxyHCUFBAWGD5FqmymlNW45Qm+d8NR4GhT4g0p0n9lOPkjMB6hCMov9w8cuneMRNpqWHzbtTb1AGn8V64taWktOLKNkfhVyMn8A97UiWQFZjWxDn87UWAWL47JXecRihWUm5djVcCy/9Jw== 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=NnSo5Ymwa8752GoJJPA4FFbjsh4QGHE0a0hcm4zuGZM=; b=AM8Iu+FGdzqN3v+IREiWtXY21ZRHM0EfmkMKNSnfEa2XCT22/X3C2ZaLWYx9TQn7et52g41tzFgVCfMgMFCa6Z8YYdEhBIq8crtoATYH6Msu2g9MWQWOiymh5bUcMipQbDzJjuCifGJEx8cP4fwp+BUy5NzeLaktqg7NGyZUEZu1gLiWIq3YrBBbe4RDMMFp83r+r1+nQnanuoXzUGZ+imfhEVJNQ5jfh+jNUy54FBiFYTGMD7X9FGfIuc1l5iRJsYzXiWFJnUtaSlsC3lHv5t1HA+jyTduTqekpqanZUU+cWY5TBYQoiNaU6754hWY7yZyVlK5D1gFQHE3qAmz0YA== 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=NnSo5Ymwa8752GoJJPA4FFbjsh4QGHE0a0hcm4zuGZM=; b=VXRdojfn8dJ9Xxa430zUNd6OxAByEeoojEOzb6J0jB+dClZkL/VB7i/rHhr+D9CL4LaTUR0R5kCw854B4YMKuEdd1U2AIdBpBWT6CRDV3whtGP5S+E+fBE5VC14LNs2SvYaUHHdQLHEGA1+xBLNGjnOIKHPbkeNI+i4CD4AAiwA= Received: from BY5PR11MB3893.namprd11.prod.outlook.com (2603:10b6:a03:183::26) by BY5PR11MB3894.namprd11.prod.outlook.com (2603:10b6:a03:18c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.25; Sun, 28 Jun 2020 06:21:17 +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.3131.026; Sun, 28 Jun 2020 06:21:17 +0000 From: "Peng, Yuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V4]tests/TestSuite_cvl_fdir: update cvl pf max supported rules Thread-Index: AQHWSTkqdvu1LS6ZHEmUrx2LbvLxkKjtlhXg Date: Sun, 28 Jun 2020 06:21:17 +0000 Message-ID: References: <1592900782-288737-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1592900782-288737-1-git-send-email-qimaix.xiao@intel.com> 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.198] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6218e418-729b-4adc-f66c-08d81b2b778b x-ms-traffictypediagnostic: BY5PR11MB3894: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:751; x-forefront-prvs: 0448A97BF2 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Y22CBVzKxPzU/psYre1uzwaKhkjsrCKZqD1mow3WOEPGv0sUmHgAdCKW7ju14lRoAa2CFWQDr4YCqsi2Q5ORsXB/Lq0BzdqoYc+jNI7cq4DGWKRJ4M/cWrU8VosO0eZBFwgfZix5/a3DtTs01tnQjd4wECm54VC9nmwIKg1Zr3Q0eVC44Evoe3SS4fYRMFZNARUVP5cIqvfaK0HggyL2UJGOd/e8PLFsspQwL8jwGy6NCkRdy/LkNgwB2L82SuMKFz6XvKshILynIjn4QSc0raF+fKdVY8MvU77qTNO3N+srCq8uZsT5eddXXWERCxy3E9MrVIHeJnU3KCrKUisEsQ== 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)(396003)(366004)(136003)(376002)(346002)(39860400002)(86362001)(83380400001)(316002)(478600001)(76116006)(71200400001)(110136005)(26005)(186003)(7696005)(64756008)(53546011)(66556008)(66446008)(6506007)(66476007)(66946007)(9686003)(5660300002)(8936002)(52536014)(107886003)(4326008)(2906002)(15650500001)(33656002)(55016002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: e6UUdW3Joknkp4ok3qOjhkaOFvRm54BTa/9cFvVodb8BAdqMYoheynrbsa2rCBnX7qKq7Umb7G0fRl6RFxS0CDe6YTZl8Mmo8HplYg3l/XSCz8PW6V2NwWtvxP/aqCOymxD5u6kvJtxdQWjro4F470ImJl4cXzaTgmTT5zIy+bw8MYEgzaLsHQqD/6S+pZMJUlxHFipFtE4Bwev/S9n4GYCys9YDiD+zR9cP0MzaY3YhcSFQpfP4TLsceEeYlA18qMnYpQY30NpaZPkzr0oHt9y+E5WGDLiD3MAIbnd5RIzl3JohP/2MlupEf0zlxgtAgdrQfdKGM8y6QSXqLbuuH9ZhayWeYu4cAg7bEkwoDw0o7ANHShKmEIkOJoiEJNjqEePeFro57atKxCAD2Bol2RvyVZHOc63T6F578gxVwZ3Nm4h/3/pWpFqUZstJ01TLy2quHoF+osJ9n8Eo3srTuuBmrC3j+7RaF8CliZypV1PafF+kN7IRDGA/0VV2n+Hm 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: BY5PR11MB3893.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6218e418-729b-4adc-f66c-08d81b2b778b X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jun 2020 06:21:17.4321 (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: qEPr94MVhWcKi3CvP2JNObOn3WVv0Abb6AN0VGxeDzdY3sCwa1LnokWbT9IDkfnlp1kbwmJslup1fjyB3a8L2w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB3894 X-OriginatorOrg: intel.com Subject: Re: [dts] [PATCH V4]tests/TestSuite_cvl_fdir: update cvl pf max supported rules 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 Peng, Yuan -----Original Message----- From: dts On Behalf Of Xiao Qimai Sent: Tuesday, June 23, 2020 4:26 PM To: dts@dpdk.org Cc: Xiao, QimaiX Subject: [dts] [PATCH V4]tests/TestSuite_cvl_fdir: update cvl pf max suppor= ted rules *. v4 update description of max supported fdir rules Signed-off-by: Xiao Qimai --- tests/TestSuite_cvl_fdir.py | 39 ++++++++++++++++++++++++++++++--------- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/tests/TestSuite_cvl_fdir.py b/tests/TestSuite_cvl_fdir.py inde= x 12d9ad8..3456830 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:44:= 55 / ipv4 src is 192.168.0.20 dst is 192.168.0.21 ttl is 2 tos is 4 / end a= ctions end" - self.create_fdir_rule(rule, check_stats=3DFalse, msg=3D"Invalid in= put 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_l= i) out2 =3D self.send_pkts_getouput(pkts=3Dpkt, port_id=3D0, count=3D= 1) rfc.check_mark(out2, pkt_num=3D1, check_param=3D{"port_id": 0, "qu= eue": 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 inde= x 2 / mark id 1 / end' + rule_li2 =3D self.create_fdir_rule(rule=3Drule2, check_stats=3DTru= e) + 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.168.0.22",dst=3D"192.168.0.23") / Raw("x" * 80)', por= t_id=3D0, count=3D1) + rfc.check_mark(out3, pkt_num=3D1, check_param=3D{"port_id": 0,=20 + "queue": 2, "mark_id": 1}, stats=3DTrue) =20 def test_add_delete_rules(self): self.pmd_output.execute_cmd("stop") @@ -2157,10 +2162,29 @@ class TestCVLFdir(TestCase): rules =3D list() pkt_pattern =3D 'Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.16= 8.100.20",dst=3D"192.168.%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)) + # each pf can create 1024 rules at least in 2 ports card + # each pf can create 512 rules at least in 4 ports card + # and there are 14k rules shared by pfs and vfs + # so 1 pf and 2 vfs can create 15360 rules at most on 2 ports card + # 1 pf and 2 vfs can create 14848 rules at most on 4 ports card + 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.168.0.0")/Raw("x" * 80)', + 'Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.10= 0.20",dst=3D"192.168.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)) + elif self.nic in ['columbiaville_25g']: + 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.168.0.0")/Raw("x" * 80)', + 'Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.10= 0.20",dst=3D"192.168.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)) + else: + raise Exception('%s not supported by this case' % self.nic) 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 +2198,12 @@ class TestCVLFdir(TestCase): self.portMask, 64, 64,= cmd_path), eal_param=3D"-w %s,flow-ma= rk-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 r= ule 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 192.= 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=3Dru= le_li) - pkts =3D ['Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.= 100.20",dst=3D"192.168.0.0")/Raw("x" * 80)', - 'Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.10= 0.20",dst=3D"192.168.59.255")/Raw("x" * 80)'] out1 =3D self.send_pkts_getouput(pkts=3Dpkts, port_id=3D0, cou= nt=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