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 7FB6343EAA; Fri, 19 Apr 2024 07:24:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3A6D54027D; Fri, 19 Apr 2024 07:24:13 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2119.outbound.protection.outlook.com [40.107.237.119]) by mails.dpdk.org (Postfix) with ESMTP id D51A140273 for ; Fri, 19 Apr 2024 07:24:11 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TxKmw6uSVzslzGrudGk+rQn1VPtXakfiXkVExYMJRvWekZZJFgIkP0AGBydNgLfR1yn/iAx/hc4o7RTGmnjeWWvMDtpzuA16dHA7dyu5TtJClDrMNRoQjhFCg0ETpxHzLP/dEQzcfgdwK4u0jZLdWHGm+b6EFSNP/BG3gVOyU89eCQp34bNLHhZLy/fyAZY6tI10xXMfzzal25dT4sRNA0mPPSFmhm7uY9rLczsTEDSz5k9/tvu79geV1KG/yBHFcELvbB/2uXWlE7EyUFSB9YXCt6LfdXmt8W0oF+F/sjgvlL3zTfTUZU24rcCTWqPvtR1EFsKb9wyt2t+fttDKEA== 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=D5zuspU4MQggzEmw2nyVCSbAwgJ/i67Q6OJyPMoGGrU=; b=J4vbXGUbTdvFZvb+Y1HI71CnLJSN/O27K2kCPB20JGVo7uLqE4av6rBDQhnwd8RVakhVpecYzGx80Ca1MjQM5G4LFI13tPd0+9bI7s+7T28zEhQysomi3VmaWCyOqUSB2VDQNq8SZJWySLkNnGK33SOTDZwBwQQ2CUN5S75GZ1sR5Fh8ufwsOTTNUurz5wb8pTAjCAo6kjH4QfXKCYU/d2nTZcR7OL9qrYM46/jlB8WPyj58wFqFFOyg8L6raGeFspU1BML2aZObML3/Bvo5wMW9n9/lw0wiAxK/l8Vm3Qjn8v+isoCJNaUufeZYHGnecjg1tlshYaXK5ouLN7HLMw== 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=D5zuspU4MQggzEmw2nyVCSbAwgJ/i67Q6OJyPMoGGrU=; b=hdUu07Sly0tbptsSUVf8R1cCHxBik7qlFl6TCDHCKI/Oj0wsCOYz4S4n1aaH1IUoncryf5Tw2hIbXtGlqi4aCFDsmzGThTZG8YzhpsGPnP/9l4sljnRRyS0u3fN1Q7KDnzgFzDi53x4xHPQFzcpi/+6d/bO+V8gs7gzrTAyPtQY= 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 MW3PR13MB3961.namprd13.prod.outlook.com (2603:10b6:303:2c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.42; Fri, 19 Apr 2024 05:24:09 +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.7472.042; Fri, 19 Apr 2024 05:24:08 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH 0/8] refactor logic to support secondary process Date: Fri, 19 Apr 2024 13:23:41 +0800 Message-Id: <20240419052349.1294696-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240419031226.1191069-1-chaoyong.he@corigine.com> References: <20240419031226.1191069-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR03CA0087.apcprd03.prod.outlook.com (2603:1096:4:7c::15) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|MW3PR13MB3961:EE_ X-MS-Office365-Filtering-Correlation-Id: ff929976-4360-4fdb-6f99-08dc6030f035 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?6hcYz73JgkgtzR0nufZfAXCeTE05lImrWlTRnFWlaWeBii8QnhfkfNDDD0ry?= =?us-ascii?Q?hxs8/+AatsfyoUoP4cvlOsWR8HrOJvAQz+1wCibZPOx0AvBYzf3kbfOJqOui?= =?us-ascii?Q?WTELHhHRGX/ubfgo4CgcmhPD7xFKC4Jrd5S8XyKRfGaOrcAUblfqF6PWprRY?= =?us-ascii?Q?1SpRugLmKF7DTJ5eqeCCBTec/GqxzV93MLiOfeO1tcBk4dHR0fJQzb/Pox6v?= =?us-ascii?Q?AWdwVhpFvgvBXfts2SlareCBeaGZzgDe5V6xPumN50LnxVrWLHkfA3e5Nr5J?= =?us-ascii?Q?mqR88TNJGfV0GUWq3VHI3jqFXBqSUNTTUk06oOEYe9dKKKoxev+pUgXuJf4q?= =?us-ascii?Q?N5Z3ktUyzqtTCLN0BwW579rOqOwPSSGFuENsqNWXiuyXI8HDORDyjga5DJn4?= =?us-ascii?Q?UBEsd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xkSkmJ?= =?us-ascii?Q?zLL3uzl5q1/GhPcs6eaCjum9+6MI9c9EA0iOeQEY9S64lA=3D=3D?= 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)(52116005)(1800799015)(366007)(376005)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Mt0+Jm9Vgt+EgG/4XtuwUdWsEDHGUSeTlQm9u60OYdQsAEEmqjmKEH9j8TSm?= =?us-ascii?Q?9QCfbOc9uFRsiB4535FpjBLKUuMx2Q5T2fOSFg0yvRg+muUsK+5UBI+AjhnM?= =?us-ascii?Q?ogPqIT9+rLEbshqckXTwTUzSnkvdSTPduVilj8lZFJrNiEMMwTiXKXfvEFuo?= =?us-ascii?Q?kmoNektaWaiJfQ6JxG8Mgce+V5vH+Z6EBu/FeLejCWRTpYPZQlDGasOU8hv8?= =?us-ascii?Q?iec9XIOq77nNQO7xLFSjYPib8U+droIuH4gZiWwZ5t8i1SSQgi193V/cBqQd?= =?us-ascii?Q?cB8xLtctAjidmjhqJZlhenBMeJFhFzUcS5Q6Jfl01bDjwO6HtDaNPgCn8gIm?= =?us-ascii?Q?Vw7KLyMkolafyOyBGhZZQvbOm/mABapbYRJX8DheMYW8VKvgS0Qk//K2ae6K?= =?us-ascii?Q?oOwXa+ncMQDLyrKhLrFb5BqeEbKOx+35wKBUJrQLpRTFURdGCbtcBOjUnq/k?= =?us-ascii?Q?Opjrf3yaId1hisebvN9nYu+2QCpgnuMyhdIu8xvu7/gFBMk73YYvQ+93YjUn?= =?us-ascii?Q?x4fLM8FZ0gd3XF7UpdZOHPCvnmchkztswe1LLGDuXT4EneeeIeVJHBqgNMZY?= =?us-ascii?Q?MTzddK33CMVclo6wsPr5xwRopaPPt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/5hZC9T7W7c2OL1faJ/8r9IjJY2XDFaQ2q270ajMaGHaH3edB?= =?us-ascii?Q?4lnDTIaT9RD9kBuL8zuDx2YWTz0C2idRau2aIgZZcVvw99XdwD6y5b7cSiKe?= =?us-ascii?Q?hg=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: ff929976-4360-4fdb-6f99-08dc6030f035 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2024 05:24:08.6499 (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: 8LxeWZQtID9pM+X8q3HVpgnrv/y3ZmHBp1oT+Xt7i6PECk+DwK00jVYteIo2jZvbSFMxoEIFlOqK0wl9rS0FKuNDy8k0l5g3wQU6e1oPt7M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR13MB3961 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 Refactor data structure and related logic to make the secondary process can work as expect. --- v2: * Solve the build problem. --- Chaoyong He (8): net/nfp: fix resource leak of secondary process net/nfp: fix configuration BAR problem net/nfp: adjust the data field of Rx/Tx queue net/nfp: add the process private structure net/nfp: move device info data field net/nfp: unify CPP acquire method net/nfp: remove ethernet device data field net/nfp: unify port create and destroy interface drivers/net/nfp/flower/nfp_flower.c | 127 ++++---- drivers/net/nfp/flower/nfp_flower.h | 11 +- drivers/net/nfp/flower/nfp_flower_cmsg.c | 5 +- drivers/net/nfp/flower/nfp_flower_cmsg.h | 3 +- drivers/net/nfp/flower/nfp_flower_ctrl.c | 8 +- drivers/net/nfp/flower/nfp_flower_flow.c | 16 +- .../net/nfp/flower/nfp_flower_representor.c | 151 ++++++---- .../net/nfp/flower/nfp_flower_representor.h | 4 +- drivers/net/nfp/flower/nfp_flower_service.c | 32 +- drivers/net/nfp/flower/nfp_flower_service.h | 10 +- drivers/net/nfp/nfd3/nfp_nfd3_dp.c | 5 +- drivers/net/nfp/nfdk/nfp_nfdk_dp.c | 5 +- drivers/net/nfp/nfp_ethdev.c | 274 ++++++++++-------- drivers/net/nfp/nfp_ethdev_vf.c | 18 +- drivers/net/nfp/nfp_net_common.c | 116 ++++---- drivers/net/nfp/nfp_net_common.h | 30 +- drivers/net/nfp/nfp_net_flow.c | 20 +- drivers/net/nfp/nfp_rxtx.c | 9 +- drivers/net/nfp/nfp_rxtx.h | 69 ++--- drivers/net/nfp/nfpcore/nfp6000_pcie.c | 34 +-- 20 files changed, 524 insertions(+), 423 deletions(-) -- 2.39.1