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 C9C95454A2; Wed, 19 Jun 2024 05:07:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B371C4111C; Wed, 19 Jun 2024 05:07:16 +0200 (CEST) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2110.outbound.protection.outlook.com [40.107.95.110]) by mails.dpdk.org (Postfix) with ESMTP id CF7764021D for ; Wed, 19 Jun 2024 05:07:14 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SAYUDyYJN99PAjP/q/2tv6UISVUl5B1n02d/VGM9RwwEGmj2QcEj552S0DmXxafpNQasfpdgsLF/H54uSbzVYNsvK0YNQth51tQoyhmimtmr3kW7FQUoFaJCrZDAs1C/DaW2Aje/xsSK/d3uQj93WH6IFZj6qfR1scoOOKx+zKWEsVk0mbAgt4331MZyTK7maB1yN0BVpW1fXOOHDFcLaj7/8Coe3q9POMsjW/mnp3cypSXXdRrWYzSf+Pzu05nhj62/cTLbeSQyf8VdArRMpdJo5KOYrRwHyv9auF3lDn/6vusoGQxEkThQ9XOkMQlZZR/2mSCiBzZdM139FNWCcw== 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=WP39P/07oCyo5qKn0M90EleNA/QiDfZwEcoITbmJKVE=; b=HTxpw8lAtLPuDcSFApE7gKvgLImZ/3TxNe7C+zrfiHRfI7u0++d7s58VphIaRsTCdLIch/DEDxcki6/yd4PxILVXNEwESy/erKqxzpr4v4yX+yBJR9mnr1eDQ4eW9eRT0PPKRtzySmDHP5nAA0wM8sBtC8P8JMyQ/kEBlQyYSZcyk8uNgFG7JcnnvnCkGUVnDAb8ebk43t22M9pwMg2pB4jpr34we+rfvbSSE8N8MeWPytqXK7huM3w6tg/NJAnf+TasKW/f4OIGsBHhdOa0aeiZROSU31ZDNrHBn2MNi/4WtWT77vHrG7yVrAin4Ag67XtAGgoRYpBQLsoMvIEF6w== 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=WP39P/07oCyo5qKn0M90EleNA/QiDfZwEcoITbmJKVE=; b=FbwL9Kf3db7c5rrBGo6Vviu9yxOqfuSaU0PlchJgnKfPbo2xv1DhO7W+1CR/lzQy430ZB5L1D0x5IW+KJ486CW9zqp0ywXxpDDrGM5ZGDYGj3KFvUM2ylmBqRWhCkh8VVqZAFgJ6ZT7kAuW8tdo1dyJmuC0hV3iuaa8dipJEeKg= 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:11 +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:11 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH 0/6] refactor the service module Date: Wed, 19 Jun 2024 11:06:49 +0800 Message-Id: <20240619030655.3216268-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 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: fb02031f-7e10-4630-0110-08dc900ce971 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?1/SqdQx+Nz2KQPOkmt3nhrwWP5PnKvkAtv23zKnvxnXWc1zf3JxbCAZpLBz9?= =?us-ascii?Q?NW1sK4MR+PoP7FXmvhPUQy3bNrA3OmnDY5VjqIvP3Y+tPgqEuvfeWpiGeT6t?= =?us-ascii?Q?h7U4pnxwIe45IUdtwi7e5KK0CSQrNfl6/4mvEGyua/WBJT0dPk7Q4gTFrKN5?= =?us-ascii?Q?rUGlfcB9HT+OnuE0QG4fxP+8PEBMqvOOGEuKasvWBP0BZ2c/v7xsZi46114d?= =?us-ascii?Q?Y5c462V7QhF/ajQhujpLVREE/ZJ8KrPi3KDFjO2pdslj5sNlN6Ln/s17hmK/?= =?us-ascii?Q?AhOFHedPjV8dL7s/DFX11B2PpfGLFobdhf253rtxZ38IqFZZC7jrNmprewsQ?= =?us-ascii?Q?M5AbQT2bInjX6dlhvTQZiZ6LiK4jzeSBfJb4OsvzHeklQefxVzdeu4NMqOtV?= =?us-ascii?Q?MURyiyZ6hGaV4qOmU+nSBoltr6GtNqdItqUfi+wY6j3dpeXqtusBMc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RigDtaKefLo52K4xsS4KMWRZ6VV/vhm?= =?us-ascii?Q?yjtvz/M=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?xcKoB/INMFAjYEK3Zd8nPww/h4fBMRjVmLSVnRhBGluHac2rxeWnxqKobHj/?= =?us-ascii?Q?1TD9gbz/NC/tGwXypOwwrXngF5byBJH5+UU7xf8iMnjJqMaNgBpwNFk3/8aw?= =?us-ascii?Q?0PsVaZz5lOOXZrLRjCh4DTpX/9PKAIjBP+DZdjtMQDkvrHqscoVqn+gURuh8?= =?us-ascii?Q?Ymm1LM99WY2YDa4DVmEDduxNu3w18EwmHO39cNC/Mvy7GXibV8HTd0M5DCYs?= =?us-ascii?Q?jPMmB2tA73UnP0r6yys9BGuVYPVNHB82Z5p/rHIjBS7bpijcDLSPAcu1MYty?= =?us-ascii?Q?xnInLupDudEBzey29ezUD2lRs0yIGK8CiXcrLwkQllQdHffYvjqLmXfaDY4X?= =?us-ascii?Q?YrKcZ5D1LotKEeZan9hLQAD87c/ikTdBSxz1vMFMrNJlWqLRPvoKX4LXkZ8A?= =?us-ascii?Q?nssnE4hGpa1+/Fl24+3eSmqqkehoiIO4ToLFlGLxwueaOauHF/UNC2r1Biam?= =?us-ascii?Q?yQGK3D6odMpvizmxoe1RefdP2zkOvO8vFEOsqNmSxDIoYrJH1GL4dVaTQRP8?= =?us-ascii?Q?1HetnJQ6FlZFsApRPmhDb85zYcBakGJmYM0K6nccpamflf9GVw0kCO6UykOQ?= =?us-ascii?Q?nk5hQY5yMj0TNnT6eLifH4Fpbm1Ox7q/sGkfNVrHFaHR8A9Tnfdny5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ng/9jmz9k4V0gRe0rU8VzbvHFiGZ4afek?= =?us-ascii?Q?fXlCSaYLoNPHBgX3Y1VF2KHBs2G1aB50Qgbr3MQFY6TbrPczV5ZdZqTOc1b4?= =?us-ascii?Q?Bw=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: fb02031f-7e10-4630-0110-08dc900ce971 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:11.2866 (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: i1kszHu+7drmEwgOgbXRGUxahT/9ppqXDgU2Edn81qCW9l+Mj4HltENnKxFWZHIBeW350lGLWZki1iW/uhJRQn7DMMg0y16M9nztD881PUQ= 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 This patch series refactor the service module, remove some specific logic and use the service framework logic as much as possible. Also add a device argument to control the enable of CPP service. Long Wu (6): net/nfp: fix check logic for device arguments net/nfp: remove redundant NFP service code net/nfp: remove the flower service dead loop net/nfp: fix disable CPP service net/nfp: add CPP service enable option net/nfp: add CPP service abnormal exit logic doc/guides/nics/nfp.rst | 9 +++ .../net/nfp/flower/nfp_flower_representor.c | 3 - drivers/net/nfp/flower/nfp_flower_service.c | 29 +++---- drivers/net/nfp/nfp_cpp_bridge.c | 6 ++ drivers/net/nfp/nfp_cpp_bridge.h | 1 + drivers/net/nfp/nfp_ethdev.c | 81 ++++++++++++++----- drivers/net/nfp/nfp_net_common.h | 3 + drivers/net/nfp/nfp_service.c | 76 +++-------------- drivers/net/nfp/nfp_service.h | 1 - 9 files changed, 101 insertions(+), 108 deletions(-) -- 2.39.1