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 B6971A0C46; Wed, 9 Jun 2021 17:40:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 30E664069B; Wed, 9 Jun 2021 17:40:05 +0200 (CEST) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam08on2054.outbound.protection.outlook.com [40.107.100.54]) by mails.dpdk.org (Postfix) with ESMTP id CA4B94003C; Wed, 9 Jun 2021 17:40:03 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ixWlbielOX6KWp9eLNvdTDkppnS8ST/j95LnPGaQVVkKA9iXG5lUIDitVuNNFMF1BKl0GbBlH+necLaJQp+ihfQ1bsUJn7UPwcAJRTNlSd/4KBcjXwn7cz4UmP7TbiI0OIpfxLYJS5Ch5ptGhngnyADToX4VRpo7oKzhKIchvg8EYlzLrE2lHniqjBFxMyFTiXblBuPWrEgVUJf9PRHwqL9HKyDcLNOcn/Y14diyKYJsI/9F6FH9Q+7MEabz4RXQUfgoYB47RhkawOKqQnOdITyqogikqjcSlG26HHUO6dLS6R4ZhkdIZ60tBwYcx17B09fV7jsuSIEfp0QcOr5fOQ== 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=nL1cLc+bcZG4tbg26jZuy2QeM1H0jmYJsCEzL35s8kQ=; b=Qh10+pDbjy3zUK3mAxBBJeaqTafN+KsUfW6RF5etZUpJPJp/1m18AzkwuADsbNFs8P5JhKknPUhsa/TKK8B8yITLLbZGLOhp0fIfNEvSitAZr+KQXu2+X60/UBUscL/wajtlxFSyqj5iyJ5XoXkZWg3wXzVu+/qpqohUe2kO7JEN5PuDNNashq7YWkejQ9rVIdaSzhZHHhWGSd6tIgtdy40BGBvOzWN+2TJ/5Ug4k006ftEyOLIbPoJTKM4tKh4km/VlX7IAWNSWqTeArEJ4hpvoqkYFfs5QCOUGX/TmdCm0PtrLqcBDsC3J6RWrJsUUo4mLCaAxR+Rkkp5qZDIMaQ== 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=nL1cLc+bcZG4tbg26jZuy2QeM1H0jmYJsCEzL35s8kQ=; b=lnyVZCEfjO6lZ5fEIjEa89GI5AZ1T4vJpWmL5croMmjx6kgzvvK1xrVVjx3nhaBE2ZGl4UhEVnLkkJdCRXWo8vzbN7SCoUy/qF+eUPN7ZicsKIatqJFtS4drjKcjgi5MeMZFapN20TkeZoQcF0OoXwIQlVJP9QRdIVbZ314rU4tJAy8YHBe0lYl7rKFcbw0OkVHxlNK1YdWtOyLG7nj60hPriC5X5hMfgG1vymD5Wr1N9BVqSOgqWp+2qiUYTu0xP5OZTD1kaDN9M+laAp4xLqXMM/pIk142JpBS6iBGQt5lamXK1sBkFC3mrt56YGYNulQrjyMi30o3oTIO+CKW5Q== Received: from DM4PR12MB5054.namprd12.prod.outlook.com (2603:10b6:5:389::24) by DM4PR12MB5199.namprd12.prod.outlook.com (2603:10b6:5:396::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.20; Wed, 9 Jun 2021 15:40:02 +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 15:40:02 +0000 From: Raslan Darawsheh To: Matan Azrad , "dev@dpdk.org" CC: Slava Ovsiienko , "stable@dpdk.org" , Bing Zhao Thread-Topic: [dpdk-dev] [PATCH] net/mlx5: fix aging counter deallocation Thread-Index: AQHXXSuh3EYA3weyDUSWBBB9Mi5rxKsL0P+g Date: Wed, 9 Jun 2021 15:40:02 +0000 Message-ID: References: <20210609123251.3558588-1-matan@nvidia.com> In-Reply-To: <20210609123251.3558588-1-matan@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: 81019fc3-6f89-4beb-4eec-08d92b5cd8fd x-ms-traffictypediagnostic: DM4PR12MB5199: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: rBhkreFRuWasbSpWLR+5ehi3rhleDHG6UX1Y/t+Yk+rtx+oMXP72Ye09Fi3TSWjC1Y5w2iU9F2hYLvrW65MG/r/aXcEgZ2wufG+fXecm1WX7bOcDauUNWFa0Xfe6lCAXqVWGWqQJFRTb2rtQ/E//Vm+ukJwrlQnzRyxJcGd+IkdHYccr9VpikTgd9uPnUwhY4yQfjDHkEZAxDojiD1Mk7tyJqjasgJHIjdHjK7AmUsziycpoEt2mHrl94dr9ggL+lw2AiABvMH+SAF2YCpTbjLMeA/jIrVuRQVB7Lo5uQkbCHFws5+HF4zy6JVr7/+FN7soATdAaf/QT6Yi3VtgTb8xU37W01XWiCZtU5InKNu+HWCQV6DQ6IPoQSZ762NJm57LMiwQm8KcfJIOac1pSbcO4YIagAU7g9yeAa+juqGKbYxOKIfxELaeMRLAltncHRrcfLM5DXYIa8ayXIVqw6f1sVaA3+esmYVvPqLKlP1peL7mj7fKUvrFBnvVx0F1C5jOTuiRtuj9x0xFZ3l75NWWa2nYoHMQtT9MzesZcsObBc38eYHLc6yLTjIjYwJtiMhwaM/p/0zcsmVPZjas/TaFtfOu4MGzGmNmvLN8oMCY= 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)(136003)(39860400002)(366004)(376002)(346002)(122000001)(38100700002)(478600001)(110136005)(2906002)(52536014)(71200400001)(5660300002)(7696005)(66946007)(54906003)(76116006)(53546011)(316002)(450100002)(8676002)(4326008)(64756008)(66446008)(8936002)(66556008)(9686003)(66476007)(107886003)(55016002)(186003)(26005)(86362001)(83380400001)(33656002)(6506007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?E9vkUhmd3BVWO+NHR2sydz+MQJUTxUki2Qpg1E4kCB6K/0mUq6nwBiAFjbBU?= =?us-ascii?Q?fSNXA+vV8Z/2DVGMD34oUovLNbNJMhowu+yTq22+ZrC35kMRkq4egccGVuUQ?= =?us-ascii?Q?l2b+uoRsnoEX8hRDaWW6sf6tHiTRrO9LvY8eLxsM4hku26pWDSpJ2kRLhmRX?= =?us-ascii?Q?vuJmIIxktIUQiUCx0j0WF9OmI0P2JDpxqdv9RTEtPyr1cGdhUXXpOzpMai+f?= =?us-ascii?Q?V7rezc5N6FGU4YX1BIFQkKIJaJSLZT3LQqHsUowNeF6bQxaz2iwMeKxpI07A?= =?us-ascii?Q?t+m9UNwWW10pne3BYqc6i5zoyUiqObnGiNmwOecBMnyHbLqsISULdK8qm0Yv?= =?us-ascii?Q?w1jhwE5weMH/93l6wwrjfEpSmkYqJ+uctEqr0kk1/FK/ud1Y0nbyU14AXMis?= =?us-ascii?Q?JlcuyMuiirxszImGs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ixT?= =?us-ascii?Q?qi2+SWTS03aerbPci8usFwgy?= 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: 81019fc3-6f89-4beb-4eec-08d92b5cd8fd X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jun 2021 15:40:02.5657 (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: 7XVUQJRUGDnqrLrXUGsbPHjDArrHL+jy2akaJ9SggOH1MEBmLIf0BxJHYvV8diJuOTwGNsdJ+Pq2w+68ZONOVg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5199 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix aging counter deallocation 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: dev On Behalf Of Matan Azrad > Sent: Wednesday, June 9, 2021 3:33 PM > To: dev@dpdk.org > Cc: Slava Ovsiienko ; stable@dpdk.org; Bing Zhao > > Subject: [dpdk-dev] [PATCH] net/mlx5: fix aging counter deallocation >=20 > When a counter is destroyed and used for aging action, the driver should > remove the counter object from the age-out list if it is there. >=20 > The counter memory of the list entry and of the counter shared > information is shared because, currently, shared counter cannot be used > for aging. >=20 > When the support for counter action in action handle API was added, the > counter shared information was reused and moved to be used also for > non-shared case. Wrongly, it is used for aging case too. >=20 > Remove the usage of shared information in case of aging. >=20 > Fixes: f3191849f2c2 ("net/mlx5: support flow count action handle") > Cc: stable@dpdk.org >=20 > Signed-off-by: Matan Azrad > Acked-by: Bing Zhao > --- Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh