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 936ED43EA9; Fri, 19 Apr 2024 05:12:54 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1ACA64027D; Fri, 19 Apr 2024 05:12:54 +0200 (CEST) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2114.outbound.protection.outlook.com [40.107.212.114]) by mails.dpdk.org (Postfix) with ESMTP id 18FB540273 for ; Fri, 19 Apr 2024 05:12:52 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I2+ykW4A/rsTiFLpuCcA/yR6l4UgbZ7Tg57AtgxTOt5Z0ni5+IbMLRQqSmwCe77onK3j4jQRBo4+n+2Q4VPETDHWylhznx+qgj8SNv8v77/LEzGflEfMqWVrCfnZCwcFgd8J7jNtciPBpVXaupAk/lK/Q/SaAexODARR8oWBU8Awh7EvbuoYd3DIsUexm0a3Xg4bHV62VJMVXrSuUY+4qIR7InlTFOl4RrdebkKsaHaINhH5E/Ah5L/tQSbNoaOMApJy+ceMWkZzPc8uVLp0egsZJ461/vnU1wZDlP43HiQnrEUp6sIvuI9TEZpRA9/LMtfxnm45pYqJPSCN/dA4Cg== 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=oYeAcfzpOlNNMfsTAdlDJBJylF85TUyn6yGYcxqkFlw=; b=WkFv1x8YjWKdRi4yZStRBUr/a6zScSJVLGiZahdJ3E9lDgIhL6X6rTxJIkVjOhR7z7U7f0Hbw2fpr2xX3Kxf5y0Kwv59GQzJa67Zn4skMQrh8q5jVkS29P9Q7gfzDW9vmyfooXsUtHTRjnzhJ2SnmckLeSWNLMzYb78chO9u61WzRTAyUxxaeBEuUTJ4BQnB09NW0CNg//Mhthnf4ZZwUqtJA/SXIZsoKQt8pE5mmq5/2ma3WL2xmqjQPdUMa5f8FSRz4iY4hRIab6lqTSonVb76gvOr4sW7FRP3aQHXdvz4oAHKh9hC/F3eMDh7mUkjEh9HGx+m7I8G5bhg0e5jfg== 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=oYeAcfzpOlNNMfsTAdlDJBJylF85TUyn6yGYcxqkFlw=; b=tC2Pa/4p2zpyjVV8WHfwe+gU5La/f6vMmlnMwNANFcR6X99lE5Ifxi/Ei55PCBmhzOW+bEfX34ZVwFb1A5i1Qg9T2oJPqAsKcNr3/GITqk7S7js5sFaqC1GMmDmRrc0OuGVJbfrrHZPwY3vcC0pYowmU6sf0sTrb4uh9HuHG424= 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 IA2PR13MB6587.namprd13.prod.outlook.com (2603:10b6:208:4ab::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.43; Fri, 19 Apr 2024 03:12:48 +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 03:12:48 +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 11:12:18 +0800 Message-Id: <20240419031226.1191069-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR01CA0044.apcprd01.prod.exchangelabs.com (2603:1096:4:193::8) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|IA2PR13MB6587:EE_ X-MS-Office365-Filtering-Correlation-Id: 0d8a0a5e-4f6a-47b0-de15-08dc601e9704 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?6cS1n1EvyAF349R9gmhHRSjK4OhXnYFMHkKYp5lOaSakwOCPlRRCWhfFaFx0?= =?us-ascii?Q?szziqdyY/ctuRcnKaF7CEG/Boonk+5GHHzFMpxq/PZDFaizTAO6TQTAB5Ngt?= =?us-ascii?Q?We6wnrfZKlwdADw0GN1mwpY8vK8v5WuKerYyPMzPFu8wr/80I+JwKB+RICSD?= =?us-ascii?Q?BvbQyb5XH31b2p4sP5MYSl3ujBcEuT/H192L61BnOiVSJJ7jeRM9ETnhWpOu?= =?us-ascii?Q?O5zn/Qoxockiqe4o97OBCWl9xd9QVtQdA09Rs4TzB+D2Po8eL22/GvD2/to+?= =?us-ascii?Q?laZ3fVO6UaWkopZyRsEV5xr7Dq88fVqnb/5xN7HHLtltokFsQwObnYvpJgl5?= =?us-ascii?Q?5gJcOeGmuNJ8idSH0dwDo1fQKvYTyT8JocaKCKw14Idq1MPyKx3tW4uKd1hA?= =?us-ascii?Q?jP47xVdkGBN750uBr/P1UdK6VgmojZm5oW/WtHgCYvA4A38UfD/KcTD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OnmquE3qAPdvHGfuKJYQ=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)(366007)(1800799015)(52116005)(376005)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?nizi4e8V7Ns3svKzLzB1/SaSqAMyJnCdwmtaEtM1GXBK1DZ/4u1KYEKvveL8?= =?us-ascii?Q?m1IOI/jaue5PJ12BqheN0oIZmNJ3fmc63h8/CtkbXNFo9ZeM5bYrEGv0cdyD?= =?us-ascii?Q?KV8m+vjk4WJXx3HN+Gnhj2F3HBP3KGzdqDdv2O3nAvNtOt0ddWAfBTChLcg0?= =?us-ascii?Q?+s2Q2FOcrHIFA9r7QnC0lt44YX9f43R1cMt+cNCEAWC4bfIetB2PaYYgWIMM?= =?us-ascii?Q?JZcAs+f2qKQs0Cl7cZ3b1m+IGXTQlpL0ljttgYuM5pfCh/sMtfdngINVinRy?= =?us-ascii?Q?r8eO4idCmpMVcZsUqyvvaS0UYUUFaEX1u73UU6WpmmGDDYSJuA7IEmYdoye3?= =?us-ascii?Q?XH7GqAnFtRUNC9YWjXmxsunxYu1pZSDdjvTouLMxoh6dp5MoBnxhLFN8kyJH?= =?us-ascii?Q?FHWeui+O6PyD4B8wK8a/BnW8E+7VU8ssdlVSgGc8P1eTies2jUaskmphvidU?= =?us-ascii?Q?whKKbNqBLDwhcIy/PXxGa+5Bt9w3JGuhRpQqXnIxW2tosIgpRIhZt8jOmj23?= =?us-ascii?Q?eIehFH+NN8Jh5AgZ6+cHnUd/0vHEQm1NZuaJgPZc8gLC0zoTO+jhtriAaz7F?= =?us-ascii?Q?8Oasr165/fLxNV92RiUO4EqWDXhekATgOx/LEpCdLGp2U7ALXsJIc1rJMEpu?= =?us-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pvkbJDm9imjSPREeXni?= =?us-ascii?Q?vM4kfStNxek+WLJxp9vq7ltWFZQFePQdme1IgjxEJ4CWWd4XaPOZblVOiDbR?= =?us-ascii?Q?Hg=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0d8a0a5e-4f6a-47b0-de15-08dc601e9704 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2024 03:12:48.0532 (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: 00maT3k1Cv8SbO9YIenQlf3MOjZJzImq3hktsQDuED6763AnxcUK1BqZND0zl8J2ttLtBRiZZYFyf7T6CqXS/zYDPmFPOkz25rd9am3bODA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA2PR13MB6587 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. 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 | 125 ++++---- 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, 523 insertions(+), 422 deletions(-) -- 2.39.1