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 642BF454A2; Wed, 19 Jun 2024 05:07:57 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6956342D7D; Wed, 19 Jun 2024 05:07:26 +0200 (CEST) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2138.outbound.protection.outlook.com [40.107.95.138]) by mails.dpdk.org (Postfix) with ESMTP id AC443427E9 for ; Wed, 19 Jun 2024 05:07:24 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aVsoECx7IZXwghVAaBosycpZckyQIcU1nH4CSG4d7+f9F+wuVKCQcIc3fuAzXQn8xw+QVlG1IUOEfo1SeiBDvByATu+4VMXQDmVALdwecWJ78zmca6lvDJ7xfa5gv/3AdWQOwYclmhQhi+jgEJbH0RaLwklJaa/KJVjcKLLXzgW/c8ipsZULsAnTcg3H6Oy5dEU/dCaktQ2fVp7NL9aDgnZzetDsLFjFgc/x4I2FzN6zU6GHakiViKe3BmApRKHHjCoxjXh0EFFRQVR6gY8YMIJu7mz8ROTA3i8XIpIz3CqZakqiHB7m76EwHK+rm4MGIHVKLcRlnUInl+xTUxNgSQ== 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=UYSmvNptDRmOJmiMdSHy1JUpOUBiKR+rrI8hEmiv1UU=; b=Q558y9irJanmj/gNJBGsdiidKCfJmQsq12fy9bMpnZgO0lHbwQmoYPRERmtufqFkJEvk0lKrMdpqSxg28vGMQeL0mSLM4hgyoRhnXtP2QUuugMWFU/kQxMARU2jJRN4Kcydw9r8WjcfQ6gWpHYwhoegp0wLVRcjCk9yz+0e2gg/WnosKCufTklQLRn2fAtcr3NzdGsuiuuPFC98DAikOmrPaCGM6X4weaFAz0tbEFaXcmT3PyHEesvrdHXN9QiMADqY6aaBTbApYc7ql24L5Q3WOF/kxqYBmKiLBP0r74l3M6KnLdAIFt58bRtZ3CH3s455z6v5pdFKLpjt/Vx1Bug== 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=UYSmvNptDRmOJmiMdSHy1JUpOUBiKR+rrI8hEmiv1UU=; b=nRu9Ri5rklOiYX66NH7pais1D9DiO2//P1Kqrni+aCQzcG9CKY1VC0/4oRhHnE9Y8zoRkAvWoYxKYioM8K35Sk3E4qG+wKgTd5zs/OJtdLrEb/S8W+Bz7g9YaruzOKAF3xfossg2D3BBGS2G0piJbktP5N9hlhXY/8Tn5O1du5w= 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 SN4PR13MB5789.namprd13.prod.outlook.com (2603:10b6:806:218::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.19; Wed, 19 Jun 2024 03:07:22 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833%4]) with mapi id 15.20.7677.030; Wed, 19 Jun 2024 03:07:22 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Long Wu , Peng Zhang , Chaoyong He Subject: [PATCH 6/6] net/nfp: add CPP service abnormal exit logic Date: Wed, 19 Jun 2024 11:06:55 +0800 Message-Id: <20240619030655.3216268-7-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240619030655.3216268-1-chaoyong.he@corigine.com> References: <20240619030655.3216268-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR03CA0239.namprd03.prod.outlook.com (2603:10b6:a03:39f::34) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|SN4PR13MB5789:EE_ X-MS-Office365-Filtering-Correlation-Id: 31b837c4-fc70-4720-b409-08dc900cf05d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230037|52116011|376011|1800799021|366013|38350700011; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?uDhLndqPFdEhbk9ZCLXHhRuBE/MFRmXjO+/hwjOV/YmLoVuiWK2T+tYHe1u7?= =?us-ascii?Q?Pm9dL4ysXl2owhy+HbEIoB9l4LPclljGN21ewfoZ+qNio0IbWY1oqNeF96nH?= =?us-ascii?Q?/zokyFXWtxj3zk0yPQ3NBQbxHr7tYYHh72NF1yXzP5emr0kXvaKlw1epHehY?= =?us-ascii?Q?4un5xliOqU7Tjo12u9GlXNZrxRq9bgIwd2k2S+vXUXsbERTT5zNMnQ9FI30t?= =?us-ascii?Q?l22bGfPrdCI12sdQnSTy6ItBmuxpyz5LMWcove5JHWzG/+evyDLlaeMcjArg?= =?us-ascii?Q?iU/S1n2tF+QtNLoU1DaABzvmfqO9INrEEQouNtfWaO4aAZkBL+lec9pmWWmv?= =?us-ascii?Q?1m+WvKRrgOkCsaEWS+KzQEB4vTAOR7XYD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/zR13paM11HCfRD4Ucpmi12qwje50EIAbDlcdnpe14xezxxY1z?= =?us-ascii?Q?zWGEN5/ROuuLfSwYHh9gmPW0vUGxh5nFpliWc0ReQL6YF7Bki2+vxCJVV9HB?= =?us-ascii?Q?Shd7YmY=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230037)(52116011)(376011)(1800799021)(366013)(38350700011); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?mFZukxs++suj6n0CHDU1xcBX11MbdQtvVtP/fkggYgvtzrllvuheU10x0txl?= =?us-ascii?Q?vTFEt3sYP6eCwCp7Llci8J4rdrTUXKIlOKXwastY16TLUNQJvzDNfPVRKqoU?= =?us-ascii?Q?9HaovniyiSdkuiDQc8D7xcsS4967nnHt9xTlKYkr5llIOJzIPOX7Z6y2cVS4?= =?us-ascii?Q?cbpOd6lwWKDg7rpQWTb5sjLXOUW72sg1GsIM/eByNbYcDadFgwp9AbdxCTd8?= =?us-ascii?Q?hvjPU/GR+DsKsCne6jwG72LV9dlPiLBP7RJXHxZlUaWg2YN2uz1peaPnW+TT?= =?us-ascii?Q?LlrCdIJ4tGSPBfliHyOXK9E330xjbT/D2bBgK+DOro4FFpGJvbBjXyCgqLgo?= =?us-ascii?Q?q5S+ELRqKuc3O/C//IZtNlvL4sscS67IAJvrhgfSgBI/vVSB/R9etL+mj4KR?= =?us-ascii?Q?nSF6/avpPjYh+M/4dAVh8cS3bU5vRVd0KdKMOnnSMtBNU3EQtrRujvIRj0Hw?= =?us-ascii?Q?FCtNx5zCvNcXyNjIs+jrIwu0J8NUxUEXDU0aNUcWs65KS2DKfWkrX/oP0Ecb?= =?us-ascii?Q?wfydcsYxZnTkY1ie9PbEXNw8QzBy6VPFVpD2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zMeoc9wL2GM82MngS++NalMhyLTDWtnIued1FVZV7PpfNB8b?= =?us-ascii?Q?zHCvq2ffBUDLMMGxSOjvWAuISWqZAUaD4fPBmM0rbNjiC2wu3oAIwU1nuVzl?= =?us-ascii?Q?guXF1ZtuyBdhXHoX4ogCUB6sCCxgPIqVQHAV12ILs//xg6DL2TAZrysAi8xK?= =?us-ascii?Q?WA=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 31b837c4-fc70-4720-b409-08dc900cf05d X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2024 03:07:22.9064 (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: CZz2kGbMmTF6RWrmr6bR5NRBM9Enj/sjN9XiNAeY3le0QLrM9zB48SfQLpm2fm4/FH9STEmxddC/EdoWa+BSVkh5YxvVc2PE8rSaXn8jhjI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR13MB5789 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 As we already use the device argument to control the switch of CPP service, it is time we can add the abnormal exit logic now. Signed-off-by: Long Wu Reviewed-by: Peng Zhang Reviewed-by: Chaoyong He --- drivers/net/nfp/nfp_ethdev.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/nfp/nfp_ethdev.c b/drivers/net/nfp/nfp_ethdev.c index 696a301650..181798e8e3 100644 --- a/drivers/net/nfp/nfp_ethdev.c +++ b/drivers/net/nfp/nfp_ethdev.c @@ -2002,8 +2002,10 @@ nfp_pf_init(struct rte_pci_device *pci_dev) /* Register the CPP bridge service here for primary use */ if (pf_dev->devargs.cpp_service_enable) { ret = nfp_enable_cpp_service(pf_dev); - if (ret != 0) - PMD_INIT_LOG(INFO, "Enable cpp service failed."); + if (ret != 0) { + PMD_INIT_LOG(ERR, "Enable CPP service failed."); + goto hwqueues_cleanup; + } } return 0; -- 2.39.1