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 8C040A0C46; Wed, 9 Jun 2021 15:08:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7CBEA410F4; Wed, 9 Jun 2021 15:08:56 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2059.outbound.protection.outlook.com [40.107.94.59]) by mails.dpdk.org (Postfix) with ESMTP id E06734003C; Wed, 9 Jun 2021 15:08:54 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P49CFa5r1MAz7voTNManurhtuJ/RedvFr8QRrEgtMNB1ANz0H84oebdY7Ah/0FCHWYYqgn0Y4Nd4BhBL10SYyyWrdBgiF8zUuEBj9kHx077Tsgl5Wd6XoZedV09/Doxk9vobjZM9FNQdOIyf1Cxs0VXaLikXkh/75sbv4kQIz9lHEi8mLMtbp9s9ECZnaUyj5MT5H+2Yk0ijb9LANLMXA8xaMUbyDMecEAp8Pyk60dBYSrwlSWH5Hv2HqXhEFpryJeO81AEqwgSX/nqIp/EmQT+lfRHRfFdNo0+kPCKumTMBazhNOGgd9Z+qukV7a6U6rB8AhaZAfRGumhDKr50bfA== 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=TIi4NdgHHncLS868AF26rl9n1kRbea+/pdNMLPJRmdQ=; b=POoZ/z2EsT7AQPiFAGBYl8U+srclkgzJYFfxL25UyyKNLZIUraKNrNVGYG4zVnvtZkLqmkNpht+h7PT/By3q4t8LoLVrPiIAyDn/a2mQGAcq+ozucithaIZkxlZfv+p5PwMDHKttuWXvJER2RPMEjXrGmI0OQKIe7Fjae5G/cNqlm7ipv/kKViRptHUf8ycymIfpBYmkcAX8DNBYS6ITkrkWpT5yDPCfK/sU6ibBkNxOOIeoNIj2F5E5YkdNpHwxjeI65zG+Sdc93grJ3ekOkhpkU9lRG85Om7Bd+y4Y5iQXh0S2e1wH3pCHzebbDLYR3tHce4VgdVj5w3thbJMgCg== 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=TIi4NdgHHncLS868AF26rl9n1kRbea+/pdNMLPJRmdQ=; b=KJQAh+A4eg3UTJywE/52SB+wr/rWLgPlOE3bqXo9zJacxOdOrM4olfKD92JXZnQv2wFKQFXvhIFIh9+zreCytsdfGd6hXdxedH5L14QI7IAGHW2yjp3AFI9IscbJgOv25UP93adxg3exAsjJd87ytqhGZctEwjMDDZeXt5vyuxoMoZwemLxBoWVANTXhAss+GfeOVzFBWoW3RZn3rzTUlbitf8lPf8t4RvEfP3QS69eIfcd7OSaiTFTZFxYMRTEhZ474U1mCCmATqy/W9qw2P8lCnmnb9STT/ltJDwW92Hh/+sQNr8zaIVMXJSn/bWnz8sLrjaUIaLNeHOajFGYNgw== Received: from DM4PR12MB5054.namprd12.prod.outlook.com (2603:10b6:5:389::24) by DM4PR12MB5277.namprd12.prod.outlook.com (2603:10b6:5:39d::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.22; Wed, 9 Jun 2021 13:08:53 +0000 Received: from DM4PR12MB5054.namprd12.prod.outlook.com ([fe80::ec20:feb5:66f:ad50]) by DM4PR12MB5054.namprd12.prod.outlook.com ([fe80::ec20:feb5:66f:ad50%7]) with mapi id 15.20.4219.022; Wed, 9 Jun 2021 13:08:53 +0000 From: Raslan Darawsheh To: Li Zhang , Ori Kam , Slava Ovsiienko , Matan Azrad , NBU-Contact-Thomas Monjalon CC: "dev@dpdk.org" , Asaf Penso , "stable@dpdk.org" Thread-Topic: [PATCH] net/mlx5: fix meter policy creation error flow Thread-Index: AQHXXNQ8M/pH4F3gc0q6pGxO+VXqzasLp3cA Date: Wed, 9 Jun 2021 13:08:53 +0000 Message-ID: References: <20210609020711.7339-1-lizh@nvidia.com> In-Reply-To: <20210609020711.7339-1-lizh@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-originating-ip: [188.161.229.60] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ee7fe5e6-aa90-403c-beb9-08d92b47bb75 x-ms-traffictypediagnostic: DM4PR12MB5277: 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:2331; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: WKyuUxn0CcgPtX3LsQ/AL3aaTtjJ+TC0xcthuGdhdfkqmkE1kgWNaqRN8R2jjB0lpqFu31hA69YU5GREThJEZQPwKqnGJ6rJ178mPyyGN/TJpZn6CDsGNMDf48eGMUjwzd7kk9WbsxVDpyw3Lb+M+Ps7bVKONrFrUpxXw7qZB9LlFuo5wMJpL0zRoNurRKrb+rDbizH2EbKqrY9uMgdEw43s8ePxozmOwCtqz83TtJFY5LNnBaiULRXxd3ZS95Z7zPt8Q4b127gtL+qGRUxcmtXGUUH9eYsHYTufO+lJb+YPwVkrZMrSjliH33b/fB3+xifhTPyowS4HMslNAG73nvnqbnaU8NwTbpO5X9u7TbzfXaFPj40rX6L3weKc/Mz7+N1TXCOskAJ2w+WazOjd/Wadv4FtGS+AsWFWrb/0Dh7fyBo8VCXTx0aDKDzwM8J0NVs+RNQYrv8BUAJiV2/hZVhu3fSgTOeYvfmPOUKlaR5qPr8LqFvRbur0see3ssj5HMcCpaxlgh8O4CVH0Os+kpvbljI1ezZfMF4JLIE1fBOqwLu4IO22ZR8C7x+hFMJZ7zJy/rChnkHR0jmSgjpEH+W0G58uicgxF9HmddQswJA= 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)(39860400002)(396003)(136003)(346002)(366004)(376002)(55016002)(83380400001)(122000001)(38100700002)(71200400001)(26005)(33656002)(52536014)(4326008)(2906002)(110136005)(86362001)(8936002)(54906003)(316002)(9686003)(478600001)(8676002)(53546011)(4744005)(5660300002)(76116006)(66446008)(66476007)(66556008)(66946007)(64756008)(186003)(6506007)(7696005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?0ugjXsYdigNYTbOJRRDmCAVidw/7s6sbxis3u/xXBIoadV+V5oDS4rQQ9Sxm?= =?us-ascii?Q?VFJJiOeDOLzeO0iPm7Yant3Qi/Dy7JOMjIwjCHOmPKpmW0FIZ5/yJ8OIoOFj?= =?us-ascii?Q?HeV7mYSZn2+NiXPVgHaQLe7fe9W6dLI9n2vcojxkMJQp7ztHoM7ohV5Jlcoi?= =?us-ascii?Q?1nPAWLml55Mli42dEunZSHwWWXBGEnD/FyFWhdXcr4MwTgYMVQn1ZU2Cogrv?= =?us-ascii?Q?NlOSOgKtlKuJ0dW4v+TWzOdwniVJPgC4AnfySJDSmqTd0ak3YbcqNWO66XzY?= =?us-ascii?Q?lTvcCLlSg3yNKug6Jg3wJIvhhNRlUsthtatg16zr8w6AW3YG5FIgbDpYn/ga?= =?us-ascii?Q?pOrXcx8kh0XGqaYoDsI9z3Q6QnIZJjN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?= =?us-ascii?Q?zxJEJBLEYdt5P+P6CGuQRqITfEtuSp8aZpC6CSeZNK/RacMMISiP7zfpLM1Z?= =?us-ascii?Q?5GbBds7ZXv9X244slX3LPUkj?= 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: ee7fe5e6-aa90-403c-beb9-08d92b47bb75 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jun 2021 13:08:53.6368 (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: e0B5m1FDqKh9URvfGKm/kvVHoTdEJNtCrZSYhwidJ8ShU3dyYdSIe8TnnwLQ5JjVuo+U0chxMLCdpI9e2x9d/g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5277 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix meter policy creation error flow 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: Li Zhang > Sent: Wednesday, June 9, 2021 5:07 AM > To: Ori Kam ; Slava Ovsiienko > ; Matan Azrad ; NBU- > Contact-Thomas Monjalon > Cc: dev@dpdk.org; Raslan Darawsheh ; Asaf Penso > ; stable@dpdk.org > Subject: [PATCH] net/mlx5: fix meter policy creation error flow >=20 > When an error appears in the policy creation, the IDs mapping between the > user policy ID to the driver policy ID is skipped. >=20 > Wrongly, the driver tried to clean the mapping in this case what caused a= n > error. >=20 > Skip the clearance in this case. >=20 > Fixes: afb4aa4f122 ("net/mlx5: support meter policy operations") > Cc: stable@dpdk.org >=20 > Signed-off-by: Li Zhang > Acked-by: Matan Azrad Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh