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 7BC60A0093; Mon, 7 Mar 2022 11:32:08 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 54AB940688; Mon, 7 Mar 2022 11:32:08 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2065.outbound.protection.outlook.com [40.107.244.65]) by mails.dpdk.org (Postfix) with ESMTP id 658964014E; Mon, 7 Mar 2022 11:32:06 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ljbPpRQT2VNSEgYw2TIUwOknsl4OgxJ5jgRFw+Lw3Dw3H2KI/fa89cUZhsOawjBLPcxel5OaP6FNCRBc4iGV1v4/1pnNS7RWDPspAxexnNLKzuU+RLr21a8iU9VnqAP/F3p+n1EYSBQnbCJr8AACsMl87cLKPB7ccjBlq8P1NB31Frbr2eP/9KAEyvIVj4DUEEiYbN/ODOX2sHjZdUxPANnPTq6T8hV5kl05Pi6TXIUQpd3ApZv5kFyjFGSTuH2s4XoPlnf0U3eMptf6PfDVmqoEO0HLxx5WtKd0WHnkkliv8C7WDKftXt+B0mRhUDy9YEAwCjxd+Z06WuqThUYNDw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=H3RpalXTsDS79tdpa5V8l0RJaRrKo3Za9CPKX+AUkJE=; b=jz+/8ljuayu0sAI9t3CT43bWjcz2DnrW2+WuWu29RXXYOZ4DFJ3WB2m/q3D66W4sf1j/M4BbWAlPa7TFLBcbDzdqv/p8J2F9k6sMiTmsP3xQZKUOgbreCwdF6MvLUEOYbVH06xDR9yJu/WrDVQTDH8TcCC4vAG6ilAw9LCnj+8kgw6mfGJULLGeWjTCks5oTUxYAHhGW6sAWG0iXVabdmZLpVo1oHHncdRYR7n7Xsl2eEi3yy8/oCOBYj65ukfdWKayU8ubfTuuv0qrLiJpb+iJGEIdhfdAX8Rq4mjkLm+MLE6rw/Vi5lQyAXaQpRLgNIPU+377WMxxEiVvX56S47g== 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=H3RpalXTsDS79tdpa5V8l0RJaRrKo3Za9CPKX+AUkJE=; b=fslYo543PNmepJj9zNDFEACpLlOPNw1ic7H3VNviBPqvUiEyIzrvypn8Tix1K6dWBG1ofR+8tETPhbgB5413Jj/Ph28I3LYxKL4r958o1Uj6Iq1Ax9Z9roQidW9/4dEsgB16YLdOj5DQUuvr9Wp7qo7ENJti78R3Qy1xnx76LW2jy/2nDThx+FvRPNLkalhLAKWc4z36RrNPzkU8FrW1MmDaFTXh0IIAM0v57slsppVaLwLGPVdZvQef198M4gMaDKwbpWsDyidsK3ci8M+yhcgxNNdouDP6AGK7C8qy3xBPahlZ3ocQIFfC2Ns4prKKOD0tR7ibYUMzS/WbSVP2+Q== Received: from BYAPR12MB3078.namprd12.prod.outlook.com (2603:10b6:a03:a8::31) by CH2PR12MB4024.namprd12.prod.outlook.com (2603:10b6:610:2a::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.15; Mon, 7 Mar 2022 10:32:03 +0000 Received: from BYAPR12MB3078.namprd12.prod.outlook.com ([fe80::e045:deb6:35a2:49fd]) by BYAPR12MB3078.namprd12.prod.outlook.com ([fe80::e045:deb6:35a2:49fd%6]) with mapi id 15.20.5038.026; Mon, 7 Mar 2022 10:32:03 +0000 From: Raslan Darawsheh To: Bing Zhao , Slava Ovsiienko , Matan Azrad CC: "dev@dpdk.org" , "Xueming(Steven) Li" , "stable@dpdk.org" Subject: RE: [PATCH] net/mlx5: fix the needless reference count for table Thread-Topic: [PATCH] net/mlx5: fix the needless reference count for table Thread-Index: AQHYLgtDYskAJUhMtEuzwejx6g1nn6yzwO9A Date: Mon, 7 Mar 2022 10:32:03 +0000 Message-ID: References: <20220302075735.53985-1-bingz@nvidia.com> In-Reply-To: <20220302075735.53985-1-bingz@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 921aa786-dae4-42b8-2082-08da0025b88a x-ms-traffictypediagnostic: CH2PR12MB4024:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: DXzcnulWyO/uMQqUQ1SwAVx2Auilw/h8qh4tjW0RNb4nhagT9/M13MmShmia3VFxCdyo0HmZ8qba2ZyMAAOzNZcHQnzQLvUOQKM5D1ll+8vne5GkwJkoOUFC3h5phTjFj7qDHONQWL6Yq6WgRISwr1ueDbicsfk0GEb241ofjSJnuuKanaAIrBmacVFMrz+EK4vy1dIPfkqTCvE1HnjNPCUlrvvBDLFjL6Tq2heoQyslifHB1onunMhpi4WQPR3+b62OWXTmD9WmZ+8GFF4W7oDkizA4stYpN9bEH5WQeugY1c6azAPj0+pF1FzOp5oCEvuc+kv6edUlmdQmqXP2fIIgKpHx58SIj4NlmZL0GQQMt3prSNWXUpAN/Fp7URnDAqk1gQPNVGODbquikK/Cj/TCND5kcd3ao32D8A+PWrcZhGPDVHUkR0p/sSEh4HlPeIPoKZuwJZqX5GuusE/PnK6Xh58pThroMk/QRnOfOZMF8VgosEF5mAUXavjKb/QUoqEIuR6xCa4/3HMioYRztQ+gGcantO4YMGm+9h7c4kQePDlYRtc+q/vpP/0ZZ37k7VeG38CPMTCmOQQ9nap8yx6kW5kE9pT9qAI2IEfGjHSDjL2+C945L84mNKr3r8xVOfW5+Zrh5UsW52Gejo0RxVbP0+45I0zCLt3aDxT1JAhe4mlbx6kMzTwYoGGo0UCfuFY6YOFVyRfAJLeWhfvRzQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR12MB3078.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(186003)(7696005)(38070700005)(6636002)(54906003)(110136005)(66946007)(122000001)(2906002)(26005)(6506007)(9686003)(316002)(53546011)(71200400001)(8936002)(33656002)(52536014)(38100700002)(83380400001)(86362001)(55016003)(4326008)(8676002)(450100002)(5660300002)(66476007)(66446008)(64756008)(508600001)(76116006)(66556008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?28dryS/LJLozRr7BLtbgLL8fx/DMZdgUztzl7720Bb8lg8szemOKu51cy5TO?= =?us-ascii?Q?LuD4AMwgzL5CrsdogsdiAfL53WpxqF2czUVdxd5jKjocTEnCmmQdtlrqgUop?= =?us-ascii?Q?1vRCYbc00sgAOpHI9ZtzKu7TGbK997AeSpM0mpi6i5hVWswS9xNVhFJ1naDc?= =?us-ascii?Q?B5QUdtxNLGU+5lr6Q1bc6REKC1s70AB1gUsPy9vwuNb1alDqgl3qCvMq30v1?= =?us-ascii?Q?DV2bOJChV+WCjNApEluxPi6VXDX5W49eNl9TmTtY+f8KlNbcpfz80ls2izWv?= =?us-ascii?Q?puNfpxLza1BEXr2qhbtM0tsPBfMa/xNCP3VqR1J4lzO3KtDIONcfX5l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+3vr/E3leOezTU8O3j9yUCmuxQcbp3Fzxv41xxDm1WhSujO?= =?us-ascii?Q?TpX3N8E6bWmz2lyOlcc7Ojygyt2Hvrb48x3qqL3MRctUkmxPXoFfRpZTMWjh?= =?us-ascii?Q?pSzu7L4ysJfcdKl0dqM6nKxxwtdNPoluHsw5OubRbKm+MGeqKCyhI3lLV71K?= =?us-ascii?Q?iNOB/PmflZkqrGAfYOKq5/LRnG/MrAnbJS65z7ctSD/19u/m2yG706Vo66cn?= =?us-ascii?Q?63T06fGpbvZPzLQd6kz7vyA0KPO639NZYGKuj8t4MxevUxoH5VrpHX1xKBs6?= =?us-ascii?Q?U1N2kSTF2qt7qkDWktNCVjZYiM9bJthLj3n94cdXBkJ3dz5hYD6NeKswQAff?= =?us-ascii?Q?Ssq70BXRVtraitky86bWFGZWjEOPTCPidWOL1rE0aS//nqbTIOo9l3ev3MDh?= =?us-ascii?Q?qJGJeiKLgMTVs+787qLojSI=3D?= 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: BYAPR12MB3078.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 921aa786-dae4-42b8-2082-08da0025b88a X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Mar 2022 10:32:03.4321 (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: Vb+RTAS082T/4EMHbxqIvCIJxNczBkMzxbW+vOXsvYeJbfZEbjHgpGgE0HBQjOvLUEpeWrGID0KM0p7D4iMopQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4024 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 Hi, > -----Original Message----- > From: Bing Zhao > Sent: Wednesday, March 2, 2022 9:58 AM > To: Slava Ovsiienko ; Matan Azrad > > Cc: dev@dpdk.org; Raslan Darawsheh ; > Xueming(Steven) Li ; stable@dpdk.org > Subject: [PATCH] net/mlx5: fix the needless reference count for table >=20 > In the previous implementation, a count was used to record the number of > the references to a table resource, including the creation of the table, = the > jumping to the table and the matchers created on the table. Before releas= ing > the table resource via the driver, it needed to ensure that there is no > reference to this table. >=20 > After the optimization of the resources management, the reference count > now is in the hash list entry as a unified solution for all the resources > management. >=20 > There is no need to keep the "refcnt" in the table resource structure. It= is > removed in case that there is some unnecessary memory overhead. >=20 > Fixes: afd7a62514ad ("net/mlx5: make flow table cache thread safe") > Cc: xuemingl@nvidia.com > Cc: stable@dpdk.org >=20 > Signed-off-by: Bing Zhao > Acked-by: Matan Azrad Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh