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 710DEA0A0C; Thu, 13 May 2021 11:56:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5EC0F4069D; Thu, 13 May 2021 11:56:23 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2056.outbound.protection.outlook.com [40.107.237.56]) by mails.dpdk.org (Postfix) with ESMTP id 9329E4003F for ; Thu, 13 May 2021 11:56:21 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XdqyvI9DwDktYZbXeA3fuvieZRgGIS1xOM9qrRscjaU3oorqSXIhezxBsLzLWNKJL/6a0lylF/fGAq+J866Dduh4bvuOFMvWCOv2L/WUYcjLZxur2TjkveMykR2Mj+T6QWs7Kj+uouD82hvMqDCFE4R0jDet8ZJDSie8JTlGvGXYw6LjzH8hTpbDUuiIiGkp7/2Q7yt3pMPgCvbaJdTKTFho6zHLTo71bU4xhhwRnWl0rRquuzPMMxatPAm5XDxiFTixZs+G5UnPumlfXeCjQiHWll9grz1mCfVYu0ak1m9uGCQiKZ8mm6icW7jUf+MUc0t586nzW/E+frUCpqmChw== 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=fJCgTUDVKiim1LoD8NjEmsBkjrSt8BVb4UpCNGEagnI=; b=UeNTFaDhCWZttrIpXlFNBTeIsFVq0zB9kvXhuEzUW6meURi+5pymzRuzuUWbfbxbT5+VI7Apcri8+tzVPPoohtzWScd3869J0CgEY72hZPfAsdd0wDe9+dvZdLjC4pe95eB/LoVGnomadjVyCjfDsAJGi27GnWATrKWf1Cmk/YPxoBuSE6qUFGia59gNNm82+GMK+poIkwNYpuYY2vK2dU3/eWFKZEP6BqpYg0xHrFKkgxagsGgBcjNJwqE9sViwzwNZAZ3REQWJdsXgL+gyAjIg62TWhXlulD03pQ7KUXIt9WKIzHk0Q/RXh6rDcRlpGUKQtoy7OK4T+Bt4MfMbPA== 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=fJCgTUDVKiim1LoD8NjEmsBkjrSt8BVb4UpCNGEagnI=; b=GS4/+qTbhbhVj6nViPYjb9m/SX7NhYcHqe/lJ+nBGVJTvZu7rCKsl0x6UXpVbRIl1kO+C1++mnSbQZ+dSkvpTqvG6vJrqBMja2+W07FcaOkqqvBTXz2/xpWDafKu4yfe+RFy2b0wKdisnC+DggE0TFwtCnPbxWS2T+0rxyPlLbX6jqWRU98mz+t45b3aNaFuJCqQX7fgiuL2lNnrt8488UyTYxA3/gNAOI0hnazfkQUOZLSudkMCHBf58u6g6dTEAGx9uyVQ4rmfZhUicowRryv5Yswm6qjGjH8eJFa9T6YD0PIG7CEbGjlPiFf+X+xMmRCu47oOPfqt5VbFHMaSWw== Received: from DM4PR12MB5389.namprd12.prod.outlook.com (2603:10b6:5:39a::7) by DM6PR12MB5518.namprd12.prod.outlook.com (2603:10b6:5:1b9::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25; Thu, 13 May 2021 09:56:20 +0000 Received: from DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::70df:ef1e:d98c:ce4]) by DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::70df:ef1e:d98c:ce4%6]) with mapi id 15.20.4108.031; Thu, 13 May 2021 09:56:20 +0000 From: Matan Azrad To: Li Zhang , Ori Kam , Slava Ovsiienko , Shahaf Shuler CC: "dev@dpdk.org" , NBU-Contact-Thomas Monjalon , Raslan Darawsheh , Roni Bar Yanai Thread-Topic: [PATCH v1] net/mlx5: fix meter cleaning in stop operation Thread-Index: AQHXR8qpLf3m+qSL5EapWicWVy/25KrhLMAA Date: Thu, 13 May 2021 09:56:20 +0000 Message-ID: References: <20210513073552.3213962-1-lizh@nvidia.com> In-Reply-To: <20210513073552.3213962-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: [79.178.58.116] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 66b9df17-7e2b-4902-70e7-08d915f55c31 x-ms-traffictypediagnostic: DM6PR12MB5518: 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:3276; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: XUoUahxp7QRIykda/4rC3RqQDroTGmcGUgVUFg/LXP7xR8CUK9Hey4uVGLtwAO3LYrp+fF3OJ3CBgtKtmt+41mkSPu1VDaZBzvy6YBfD+9Ka2Y5a+mRndxgDSIit4VSoNc7OMa9bMqcjzPRwtZ9apj2Iddzttb4aPWWSdRKiBm09cAdltiq/C+usmQ7NqtuUsrnN0aJblxGlu2DccvkXSvAcjLnJ2etBM4959AwhPXH15beOQ5avP7zOeLiwnK5GcPqMjiy+N6i8vrRqy8VHi1r+obHR1FJPpCqTpUIOF9Od9DRf2xlu7eqXUiFdJUJfneHo9JEWyDZG6yUb1rKpQuD5RJdrgHATqgVWOYCAPEDUWBqwuFKXGhsyA9X2z7TyaAj71cQNE/AoZomeOIcWShnT2mI10rzx5Jc7SGI0ITXUkQnWXra3x6uO2x6aaN3pxxyfo32zQ4NnNofAt+0D/xyUD8EH0MH8ZHQBg6uLC2mjb2bYQBnUQnthEWMBJv1tUZtUiUJgVBdtZRV8rWVBdD4/5xVYzMpWEPbBc72wyjLrtCE4mCJY58JNj5EqUPFqMgiw5BsoPluMKUo5GPSANKiiQHH6rdNK+Z2MAAdl9Hw= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5389.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(366004)(396003)(346002)(376002)(136003)(66446008)(4744005)(7696005)(66476007)(64756008)(186003)(66946007)(66556008)(110136005)(122000001)(107886003)(2906002)(8936002)(316002)(52536014)(9686003)(478600001)(76116006)(55016002)(5660300002)(38100700002)(33656002)(6636002)(8676002)(4326008)(26005)(54906003)(86362001)(6506007)(71200400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?cVnb2kw5D3tIdIV06XXGJ3q0bU3wdLy+X9ZcpNfy5M3Gvo3/S9/m3OoIoLvY?= =?us-ascii?Q?03+xbk7t76vdCjNRwNZKL/16gnoM72l3SFA2RsjUJ0NDkJFxMDoPwjGZO41n?= =?us-ascii?Q?2oa+gl8AqQGLnkD8UVKJHJJ92vbeXjqbp1bJk7a5hgdgiy8rPjrrI7cAk0/t?= =?us-ascii?Q?ZgSm8vISZvAcKV4aBeZ0rze904EFsU2RZ6aE36gswoa77EbbbGNwG+7oZx58?= =?us-ascii?Q?FV7YvzRYsBivE0GSI4x2s3EuD7mSluwkk5CZpRHBH86eVmTpBGq55SlcPJfr?= =?us-ascii?Q?4SG+9H54o4U9WpAQskI0f9yESlTcslaBCgoamUoXKpRUtDNTzA7gsqoU7y5T?= =?us-ascii?Q?UV4+so2JKtEXFSUMRJEKYEIi+1WmOyD9x+yBye2yQ8gC4oh6gaM9EWKMxWY9?= =?us-asc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MlCVAZ?= =?us-ascii?Q?Sx+AK5aexJeLSecrfYppv94y?= 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: DM4PR12MB5389.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 66b9df17-7e2b-4902-70e7-08d915f55c31 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 May 2021 09:56:20.6316 (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: b2oPcfnQxjnfdAkoAbqplRknlZmx2SjDPn9FRacHIHrsYtKUbJFlTyrNOuOGqp6GC6NsGMcsNeH5e+UdkISk7A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB5518 Subject: Re: [dpdk-dev] [PATCH v1] net/mlx5: fix meter cleaning in stop operation 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" From: Li Zhang > A meter may handle Rx queue reference in his sub-policies. > In stop operation, all the Rx queues are released. >=20 > Wrongly, the meter reference was not released before destroying the Rx > queues what cause an error in stop. >=20 > Release the Rx queues meter references in stop operation. >=20 > Fixes: fc6ce56bba ("net/mlx5: prepare sub-policy for flow with meter") >=20 > Signed-off-by: Li Zhang Acked-by: Matan Azrad