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 66951A0C56; Thu, 29 Jul 2021 22:04:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2513D40687; Thu, 29 Jul 2021 22:04:53 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2069.outbound.protection.outlook.com [40.107.237.69]) by mails.dpdk.org (Postfix) with ESMTP id 691A34067A for ; Thu, 29 Jul 2021 22:04:52 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ldZkR4jcuF8miTpYsWOH/3wku2P49E84JKBQr2DjQaxQAb5aJdetepB/r8lcYJCjrOClEOjJoeP1BE/giN9j6STy9znFeE9USZFrc5RoXy1nqhCqc0NmH8qOOpWF1IlokFKTmiU1rbWCyYFSD+uwYK6GUrHmHDPGlz+AkCA0XrfpBYqwYpkO1lzvQuMAsivDlhWu/S2oPZJxWTBTl8a8atRljmsU8qMLlyPmBaXEXL1lSKDONfEqK7PziV+yEcS+I7Xvps4HKo4SOy0nYcfmIurelHWlzlvyiUUTu1IiZT0TFBvZYvFIa3m54I5zoG6cleSX1MmG7wSchqT9NeS1xA== 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=3jSlFMwl4bFHHuxbrf/J7LZInb2kUX8niRe8Qnwv2zE=; b=kyT96ZsoiiXXzPwvtg/zJHTMNW1RQhVbJA0KmsFixduBUXtMrHiRmCvIBuNGyN/S/6MJ+KoCbNdAOCTvgtFoHBNrLa20e4gwXleP9lhT4b0+y2aGj3DRZASP9g/IobPQ7GfEX56xbf7uFTjeIghpAyzZWA77MpSwtM3LTmVw8mnyvsH9yf49YEnpZY0dzR99DbwSpBaNtIzj/MkM7QSm93BIv7xHKzD3n+MXwOiYJ8Ci2trhcPYMGijjqJ523Ffop2M0ScUyRAwCLKTqBDjWsewXpKzMgdDuVxlWmOyg7N2iUubNj5untE3CiBamzEzf4L+aoC94LdXQG05wZ3kqFg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3jSlFMwl4bFHHuxbrf/J7LZInb2kUX8niRe8Qnwv2zE=; b=YKDsM39Ecpk78hKJHi3HCwHZef0PWKBr1v4eupeLf1h1dVmrHz8igXoH1JW9Za7Qnf3ObeunaYaxeys3DrjQi1JeKmTgw7PCbz3veG9+Tl7+UnrKtQLSmk55vJd0evEn8qG+dzlRc1vIf39Lxb8/oS2q6qjjY1w6pYa8wWdzFVL2jKT6uaXXZ+qsyDMjBsski9cXaBpXAPEGB4Ijt//ziZVGpSSscxoB3niD7SEp4l6ipqgreI80uADyxrqwirJra7QvJZDHaRiKavqU/0367kjiEUnC49FOs1LPzmHQa7RG6JuN89F3fTNIuqrLL3LkGgx00O8jcWtCctr1JMS2Tg== Received: from DM4PR12MB5054.namprd12.prod.outlook.com (2603:10b6:5:389::24) by DM4PR12MB5309.namprd12.prod.outlook.com (2603:10b6:5:39d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18; Thu, 29 Jul 2021 20:04:51 +0000 Received: from DM4PR12MB5054.namprd12.prod.outlook.com ([fe80::584f:2720:1100:666a]) by DM4PR12MB5054.namprd12.prod.outlook.com ([fe80::584f:2720:1100:666a%4]) with mapi id 15.20.4373.022; Thu, 29 Jul 2021 20:04:51 +0000 From: Raslan Darawsheh To: Bing Zhao , Slava Ovsiienko , Matan Azrad CC: "dev@dpdk.org" , Ori Kam , NBU-Contact-Thomas Monjalon Thread-Topic: [PATCH] net/mlx5: fix meter profile validation Thread-Index: AQHXhJN02THrFHjzBka33GRLvCkWe6taX+Zw Date: Thu, 29 Jul 2021 20:04:50 +0000 Message-ID: References: <20210729160405.161982-1-bingz@nvidia.com> In-Reply-To: <20210729160405.161982-1-bingz@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 30724efb-46dd-4da0-bcb3-08d952cc1fd3 x-ms-traffictypediagnostic: DM4PR12MB5309: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1388; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: qJ+b0/FqiekhHgZHJ4RxGpO4X47E/VnGAuWcHuHRnnUNOJnCvr2LcR8Haxgnxc2/erTTJr84/vGzPMOXO2MqkIRm0juDlNEYoXK9N7hZroM3VWd7M5B/a2MpT0gz4S/mSAUSP6WKXsWj+yhJ8L0b7wmfwscxfSUixnlI1NCTcwVJ9RfoLFCpEkOZicfZCp93LzpQB4YT8iiFVUIy+7RhE38vcbDZRSJC0evSNrlbbfdKvDti2NOrb261PuCptjWZyh/yLhj0BqD4etcGxqbz5TvGFsJCN8c28+ud6BROGJqhAeoefKqPWg2nVFKJqNxhzqN4n7NDZoTEx7Z/kpTxO+gprSvjpmbV8gY9wttL2Ys69PVd5pDVTdlvzgv2qR17q2YRj4gNiCFcOvLKvI/MNdDIzsy44PHqJJrXW8DRtYNO2xJHs93F85gWAyp7mRJ5oOF44ZN0u58Rr8MNF09SOXQSpHwTdg8zc5NawMUrFWo9sGjLHIVJw1XUYKhvi5VWUTyOOeKvOydb05HIRtSZFe+quDzQm9LIkGhSlJ4zZlmLuPHPTw9RBYraETL7rPsrXV7YOjJeogEHQMiVyj+QkI/z+Le09TN5ULO2ez2zeSrMVxDjoU7w8EAMB4CibsT2ICOOg3M1kjCJ3YnWIFPH8bMkvwEFP8SZUzGzdr+h3YC9QlPGbUVzNMDCNF2VOhNK/NE9ezv8HXfh7v6XGfncEg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5054.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(346002)(366004)(376002)(136003)(39860400002)(478600001)(71200400001)(5660300002)(4326008)(316002)(66556008)(7696005)(8936002)(66946007)(53546011)(64756008)(66446008)(76116006)(83380400001)(66476007)(110136005)(9686003)(186003)(6506007)(38070700005)(54906003)(26005)(2906002)(33656002)(38100700002)(122000001)(55016002)(52536014)(8676002)(86362001)(6636002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?zbU0LOKk/GsGp5gwChR+85tQ6fAw471poFhj4bIdqdVP6Uu6ZYU4PoOcIQ9I?= =?us-ascii?Q?E1MRh3c88ERyO2zUJWqAVLgorQkWQhGL5J9JNM2B1aj0uhwFjMnVuax/lgBi?= =?us-ascii?Q?Xp148g4LU41zfQ8DgvD/EDb8VKfpZ60UHy1G0UJTPETO8ptOIArjCs0zdaCY?= =?us-ascii?Q?QnwPgxH53K48umQ9t9+wq6K++82LOtz5qIxvmZFVnUgSJ9TZjckT2iEOa4ql?= =?us-ascii?Q?8vefPiuO6gYgA20klO6bQbUgCOWCRzKV2PcA9KiJSGPgFaDiNl7u7u9z0/Bc?= =?us-ascii?Q?S0hZYCw2lBJEqvNXC7SgvNlq0+57lHN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vf783ryNYVO2cTZOnBc+dd99ujSLeAR+SDQ0QxiLOpK?= =?us-ascii?Q?Vtfdmrc4WBvPRvq8aCb07mSsU3+lxRNvErxYUk0YpDs4omfDK7zS2x2Wqj7B?= =?us-ascii?Q?Da4q+mC/FD79DGs998HxqDo/?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5054.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 30724efb-46dd-4da0-bcb3-08d952cc1fd3 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jul 2021 20:04:50.7206 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ghVRd3YUCQ1M44U8JHmJiwCCraddzhv85j2hTCLLgatcLQW6uSLwiSVBZcJLqPZawfnSnV0eRP6AU2Om6ngulQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5309 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix meter profile validation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, > -----Original Message----- > From: Bing Zhao > Sent: Thursday, July 29, 2021 7:04 PM > To: Slava Ovsiienko ; Matan Azrad > > Cc: dev@dpdk.org; Ori Kam ; Raslan Darawsheh > ; NBU-Contact-Thomas Monjalon > > Subject: [PATCH] net/mlx5: fix meter profile validation >=20 > After the support for yellow color and RFC2698 & RFC4115 were added, the > profile validation adjustment was missed. With this fix, the validation i= s like > below: > 1. Legacy metering only supports RFC2697 without EBS. > 2. ASO metering can support all three profiles. > 3. For backward compatibility, none EBS with RFC2697 profile is > still supported and the checking is done in the meter > creation stage. >=20 > In the meanwhile, some checking which was done in the parameters > calculation stage is moved in the validation in order to skip the useless > checking. >=20 > Fixes: 33a7493c8df8 ("net/mlx5: support meter for trTCM profiles") >=20 > Signed-off-by: Bing Zhao > Acked-by: Matan Azrad > --- Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh