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 1FD24439B4; Wed, 24 Jan 2024 10:26:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7CDB1427DC; Wed, 24 Jan 2024 10:26:13 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2125.outbound.protection.outlook.com [40.107.237.125]) by mails.dpdk.org (Postfix) with ESMTP id B51B140ED6; Wed, 24 Jan 2024 10:26:10 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jqy5dn36mn7a6UIJuuhQTs9YNnR5huZlrlh4Bh1EwqDXoKUyADtLh7ksu2WBFKPjDXQuOXUjV/yFiPRJl9/0WR6x/HjdKj1syLtneOZ8SfQQu/4w0SDHGRYL7BNlmBuDrK6lQQ733DVYA9OqswxQsJQWZxuZc+vsLgQ2DY/4y5aWPO0jQdsLC7xeDokHeOjC66yLitVEqiK7L3n9wHIMlf2AnJY89qMpj7tnHpl6mQo26SPYSQxtLeUYbzW7UUBwDcYbKcj85pdOFHZXkN+CHNZNpk6vLgmvYomr2tN6sDDSaeu7VYiujnjR3qMWtoWsO4mVl3E0uLOM84j1S/QlOQ== 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=YF9X/JYw7LQFD0OjKiNhHsDUjBbSQtmaRqIV8YpnDkw=; b=bazhyDCm+wSM704tn5P48P45vHZkDw7d/M1O+NlFSlRSTvHX1q8HuqaVt8Az0bIZRXIdP+TbNL90HqOIdL/cl1OrPnLfGwie0PsdclhOKrJ6shgNxef0ZRFPXR/Lo6GCyczgub5DLeVU7iIMbCiW6oQ4aRDDaFEACk5ix7+eqG/V8Q90FDcNKwdG5pIrWI24V7WvPUz8LVu6yP6CvIpMJv7W8M0y3JkS7LpWMBd8tEAx1DqyBZFpY0ZRYvMAjXnn0TRwwrQPzzIh17VkW09x36ygHC5rQDtWw56kZSBL0GvVfMrcnRSeVRcG/T2h9PPQIPpnGg8YBerzFS73xl+3UA== 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=YF9X/JYw7LQFD0OjKiNhHsDUjBbSQtmaRqIV8YpnDkw=; b=ccFMDZE7QGGv1xYIqvoLQyHjcTKQb1xHfyxGKSR3bnhyC+ourdXqQq+aZQI+w7WfKXZPsNYLgdfiXbbHZ6s+J7KBcX0baZkUVms38yHpBCFN1XXbBTB7MpKDXI8aSVrZG8eqSGhXe7Aw3atsu+K5KkDsQK66X4a/sLD35lT0uUM= 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 DM6PR13MB4051.namprd13.prod.outlook.com (2603:10b6:5:2a8::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.37; Wed, 24 Jan 2024 09:26:09 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::8e02:f738:570a:f8aa]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::8e02:f738:570a:f8aa%7]) with mapi id 15.20.7228.022; Wed, 24 Jan 2024 09:26:09 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Long Wu , chaoyong.he@corigine.com, stable@dpdk.org, Peng Zhang Subject: [PATCH 4/4] net/nfp: fix stop cpp service problem Date: Wed, 24 Jan 2024 17:25:41 +0800 Message-Id: <20240124092541.2011874-5-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240124092541.2011874-1-chaoyong.he@corigine.com> References: <20240124092541.2011874-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: PH8PR05CA0019.namprd05.prod.outlook.com (2603:10b6:510:2cc::25) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|DM6PR13MB4051:EE_ X-MS-Office365-Filtering-Correlation-Id: 6f8c5884-8674-4614-72b8-08dc1cbe7f67 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9zBE5K+yfKd1yoW4gMyvql4OW2G7owB9eHjJqXoju9HNtHuq3EiMPuu7oNFsYy+EduwG7V0BeB3b5VfRE3VSQUagQQOZG4RPoiXDZXB67bu+IvvDuksPrG7uGLtyyBN2tGL36cAfnwG95TCnh+rT8p9ls0qIHTR+Fqp1lfTQzGjMM6fwguWR6VQDdlKK89JOkKbaZsPv/ln60s2awIxVzcuBNZkY8M2VPiSaXeKWhrHvDZjyuqO5kKoGHw3CnvRhmyS1VRT9purQ5vh1UcUzDeFPKwzvhsqfC9vQKfaY6kAZPXMiuDpTWrHHjf2rZloSElWGG8YJpqlVYiSFsai45Fo54HWyctrbxHUHTMZTAFFtEYrGIWnYiL8M1vRcf2xuYWBUpfdLaYPTZcEcQV7RNwS64JvaeB0NQGG0WCXlipSQJDiDcme3vvDeQ4y+lnTAN8iFHUVv3gYyozTa76dhsX/oavo8nlFzH1xO75SDfO1WvfsHG+Z6f/hiZJfle2jKR7Oub4RXxeBM2g45DnrngnJekMAvs6/XlZjqHieXajCBiOPCfQIBmr9Qcu7CLdtomhH9//hhC/VOneoGJuxjYNIwsIvMR7Wz2ii0fl1hrVcq/zP1yUsKcqQSh7y2zuBL 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)(396003)(39830400003)(376002)(346002)(366004)(136003)(230922051799003)(186009)(1800799012)(64100799003)(451199024)(83380400001)(107886003)(2616005)(36756003)(38350700005)(86362001)(5660300002)(8936002)(8676002)(26005)(1076003)(44832011)(38100700002)(52116002)(4326008)(66946007)(66556008)(54906003)(6916009)(66476007)(6666004)(6506007)(316002)(6486002)(2906002)(41300700001)(450100002)(478600001)(6512007); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?HMVjdv8qmroeoEtrbdu/+OZz15RNOghuVqVE7AOwmlvDU4ZcyG9eyGXuT+2M?= =?us-ascii?Q?iT7WvoVRximb6NiaEEGRwuXe5zCQW2jkud/awpwqHTXbS/vWCYAdRV5kyhM7?= =?us-ascii?Q?fzRV8rrOiCoXLVLr2u+oZwfs5iC5fFPX/oDpZ8+55Qa+G6H4DNYWhat3k8nN?= =?us-ascii?Q?sYzvKAo5Ks+8ah3wnAAdFnbyxjtfGDRsrYDiaUtyLC9t9Ew/4LpmvG11qGNn?= =?us-ascii?Q?OrdN1kuXRZy67YjBhZ7vYOO8AJJLGbvy+yMPhZcEDVEIjtQwamX6L9F6vbu4?= =?us-ascii?Q?N5B01RbqxclWZZB02oYjUgZYbF49sYt7cWctQDExU38qzC0UhwaEHjucsc2l?= =?us-ascii?Q?mxHm3xDSU9AOOasDpuFlwCBlIEB/7wTM7gxZJhi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FgYThy8VO/zfpxxNdwV7oGronSJzmq3NP2d8l724oXkF2PSzBisDDW?= =?us-ascii?Q?vDr9A9tGM2Q1ZcgqQ5KLpUYhwbwz9lL1VeiDCA+JrvXhlx0glM/BwIF5r5G+?= =?us-ascii?Q?ugg18xE6cBBFrieVel6USllDmvP+hjXDHKC6dxJEpoVd6o++B7WhUM7vIs8L?= =?us-ascii?Q?pCv0nUIrSnlhuxa1NR7XfMDYMP1Zo0BH4dU+4OovyP/cKHR+4n/rHChSW9jn?= =?us-ascii?Q?Sx4edURZgqIdBCC6tvh/z6ym7ZROX78oERi5bh/6QOffPezs0X6s/cF8Yvod?= =?us-ascii?Q?H5wUw9uRZBhFE7E0+50bPxLpILwtEKocl+xS5yEWiunNu0JuT5vBTJEk0vsY?= =?us-ascii?Q?VA=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6f8c5884-8674-4614-72b8-08dc1cbe7f67 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jan 2024 09:26:08.9799 (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: wc5dkEvYoGWuhwNF2M91H7BWxZvKQ7K8jHBnYstPX3w0six0iEP/8q+FZjLdA2A9fGrF7iiuK4EZbLD1MyUHObCitXf02n8+IefY2f0X/Cw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR13MB4051 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 From: Long Wu Stop cpp service if all representors are closed and cpp service is running. Fixes: bab0e6f48b6d ("net/nfp: fix infinite loop") Cc: chaoyong.he@corigine.com Cc: stable@dpdk.org Signed-off-by: Long Wu Reviewed-by: Chaoyong He Reviewed-by: Peng Zhang --- drivers/net/nfp/flower/nfp_flower_representor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/nfp/flower/nfp_flower_representor.c b/drivers/net/nfp/flower/nfp_flower_representor.c index bf67dc3ba2..2e8eb13e4e 100644 --- a/drivers/net/nfp/flower/nfp_flower_representor.c +++ b/drivers/net/nfp/flower/nfp_flower_representor.c @@ -400,6 +400,9 @@ nfp_flower_repr_dev_close(struct rte_eth_dev *dev) /* Stop flower service first */ nfp_flower_service_stop(app_fw_flower); + /* Disable cpp service if need */ + nfp_service_disable(&pf_dev->cpp_service_info); + /* Now it is safe to free all PF resources */ nfp_uninit_app_fw_flower(pf_dev); nfp_pf_uninit(pf_dev); -- 2.39.1