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 8065943BBA for ; Thu, 7 Mar 2024 12:20:54 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 790BC42ECF; Thu, 7 Mar 2024 12:20:54 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2095.outbound.protection.outlook.com [40.107.94.95]) by mails.dpdk.org (Postfix) with ESMTP id A07234067E for ; Thu, 7 Mar 2024 12:20:53 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K0tmLJPE+pF8LCTUw2WiYsyYXukpKStoPFjOEq8/8JOyoE4607DDULk+0LnM/e0aYytSs5JgYSifQMaoF9igFgkdTc8PioJlWGciXtwxYgBPeAsGfqWa8YPnsOpFd371FIAT6NjGyG8e0tBGyviiMS/RwjZ6EbwyHuQQN2cunkzo7vRLHCf1bIv6/VbIwcjIXdJ7ptT3wX+fC+pdtwjxdYybB8wmSxTdp8kyNKV1TRVjmbPUIKj2F24tyo75sXfFoTtf/ZOTXqCZFniMgeOnghFKvbDGdOXkIYsDO7NVpB/nEi+PCsfyo2AGYHOEZ1rfw+fJIOsH1X+J8VGGZ3dd9g== 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=gM2ammlzrkKxu/8Sge2gOAt5o+c+yDlAfQc9bgKvMnQ=; b=nRxkJ8migWlLClvMOmEOD/oMl9zU+KOYljJbXDRmyB6CbNjR4FlyzgXl9r8NYMSag+bZIl+DHZMPUrdj9lpQGQV9F2IkLec9AqlLTc7Qf+RHfBORNDst+Nynvsechsi4yR+PcZg5+shqOyKAUFbOBaRpTy86NMZEBxZnRcpiiC//wjMRyv/V80rzK4d9lZEV5ed9mnRJ6e5TtHHOiLH0bM0vUFqlCNXNnIQQYZIM6t8eo8Q40h5pqAcl3s3sYG1jkKwRlnAFNphZLS7GEenhMHscvxaKn9LdJKY3HLOqaYB6mzxMzut5KVUxDUkemzz8UecXynQXQTwYsC7NXe60Yw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gM2ammlzrkKxu/8Sge2gOAt5o+c+yDlAfQc9bgKvMnQ=; b=Tzif2socEnAyrJ8gER6Arka8hd3yD4gpIw6ej15/hfEHDfRYdT5UDH+MzZsjYSc6LlAYPHM4ddHObUzAll0/C+4X2rNq8EbTuYeyYXomSgIjC3mRnCqD5xspX2FN8WxYXOmSlanyU8eNpKcMvMMOBPVHi+KiKCbAZ7oppmiM8ns= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by PH7PR13MB5959.namprd13.prod.outlook.com (2603:10b6:510:15d::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.26; Thu, 7 Mar 2024 11:20:52 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::ec12:7411:559a:850e]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::ec12:7411:559a:850e%5]) with mapi id 15.20.7339.035; Thu, 7 Mar 2024 11:20:52 +0000 From: Chaoyong He To: stable@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH 22.11 v2 7/7] net/nfp: free switch domain ID on close Date: Thu, 7 Mar 2024 19:20:23 +0800 Message-Id: <20240307112023.1867765-8-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240307112023.1867765-1-chaoyong.he@corigine.com> References: <20240307112023.1867765-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BYAPR01CA0045.prod.exchangelabs.com (2603:10b6:a03:94::22) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|PH7PR13MB5959:EE_ X-MS-Office365-Filtering-Correlation-Id: 464dcf42-81ba-493e-7773-08dc3e98a5ca X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Sah0DFBtF65r+mslNGoEmxtsggSEJrfw5djO3C1LAteu5Nykz1qo+PsrDGEDO2YDb0Eqxasc+yjIM76MhZwuxmxRmk/H39T2E2oX0uVHw/CT0NSBZcXfEWhdRUG8LCOuWvoHCVXd3zwIkM3COqSDLC9BBCI++mVVg2pz7d/a3h4RaosL8CYKg7YUPt47ODjeW79oVsPTWEfLHnWnTPMFOesUfoKOo+XcI53/C2cq0/3X+MTGeHW/bpPEVEcCIU0U0D83PwdbJ3cEBbapXO/YeHItG6shO3/MTPrArmva0DmO3u2GIl9rQrB92x0VvNFkejBrj7vwRjD3HZ7OG7lTXR1a02roHMR1UHZYXgTPezT4eFtH+uweskC54CLlHBqDrr9EHxYx0nCPEnuRk8z4ccxyBBP2POvcyLxew78CxkVrr/JbwcUyHJSyOoWhu1JxIPWAk4mHwX7QrBmBrjrinkUnF7oDLKPXoFIsKqn7le6YzSy/9sAr0pC5PKhHDUbYpSxpai9J9tWa5PbwAM9qvsow5h+vuEteo7QQyrZ1TJPJSj8DUyl0HXFJObPN7U2V2hE1u+vARKFn5BBOmNhnfoUufy8l6cA/mHdVgCQUErQutspNj89Ccw9VXMvYyl/pMVrcKUrUtvdeX6tIRO5XawqSyWHS73yBb7KFiq+vtIpUkLud+6SqlQxcgLEOfyyAq8Ze2ByHyXMG25WTfHMUaIRPMgGcVQzMSEz1mTX/H7Y= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376005)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?iKWxpcW1bit7sYRS6m1T62aljm6jeuThwgK3E9zxRB6izcUmew+IBdkPM93e?= =?us-ascii?Q?Ap4pOb2XKC88YrBVLMpTGsu8n2Gzk9t8M1HiesFIXQhvSmK70TaM6KY0SSCN?= =?us-ascii?Q?bhH231zBLJJ/ujSkMkDohvRdJ6fetbfdE89nm7SDq9XyztrSAYpsD7H7COTF?= =?us-ascii?Q?ewObV+/OXV+6wnLDOw18yaUo6EXdrR/2xeDPsFA1MW7zcWoaCY9m43FtjbsF?= =?us-ascii?Q?X7nQbyt7Hyb0FHMVFrXQtIxe905SOw6weQBOe62fv20BXujDnDMqU8YdreNe?= =?us-ascii?Q?TJ3+U608wOAVbrwvWEnnFUUDDHVivyDyc8R0gt6zLKvM/1tOQXhYdWElE0Gg?= =?us-ascii?Q?TrzwxbmxmIl14alpEO1/Z3hpiypFh6Osnx9Gx8MgFt4lxYIwihX7mHRXLwlt?= =?us-ascii?Q?/Y2qUZMvNpSOLz1Vfi4MTC1+3jEPmfKp4p50adJwDabvDfs++rdfwgU0TwAQ?= =?us-ascii?Q?teIVvOG2qJovCzyfvNS/Kuorzs1T/uDhopt7pThGA79mW7Zxk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ZMlAZ3l6F/vVQPJAXLXiLfyAruaOCqWH/DEs5Yhj6?= =?us-ascii?Q?VtQueGeqmHQvxD7xgjnZAMTJfaBhEEGjKb+/Hl79SrlWG8AAbXYCt0WMwnLk?= =?us-ascii?Q?Ak1vr95xPu6tgV58Q7f6QKKnnwXX0Qv90q2Aoj0jwZNsRjFQckUrU1fqbcwx?= =?us-ascii?Q?JsYsy4u+vRThjAJ87dkup9QA+rokROqCDkHUtFubNrBzVmtab89gJfIfKdGq?= =?us-ascii?Q?NA=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 464dcf42-81ba-493e-7773-08dc3e98a5ca X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2024 11:20:52.0318 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XpHBpuyKJciEQYDHctRqv5O4eblIQUtaayCnNSBzmRE9/Ro2be8LojJyT0z2ney/+ZxhH2cTATQ2N8C2Wo/mBOvNBDlM/DtP5NttTIV7ga0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR13MB5959 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org [ upstream commit 20eaa8e2ebae621b32d740f6c0529e11d33519ff ] Free domain id in close interface. Fixes: e1124c4f8a45 ("net/nfp: add flower representor framework") Signed-off-by: Chaoyong He --- drivers/net/nfp/flower/nfp_flower.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/nfp/flower/nfp_flower.c b/drivers/net/nfp/flower/nfp_flower.c index 28be1b9..8490d17 100644 --- a/drivers/net/nfp/flower/nfp_flower.c +++ b/drivers/net/nfp/flower/nfp_flower.c @@ -1176,6 +1176,7 @@ nfp_uninit_app_fw_flower(struct nfp_pf_dev *pf_dev) nfp_cpp_area_free(pf_dev->ctrl_area); rte_free(app_fw_flower->pf_hw); nfp_flow_priv_uninit(pf_dev); + rte_eth_switch_domain_free(app_fw_flower->switch_domain_id); rte_free(app_fw_flower); } -- 2.39.1