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 621D043B80; Tue, 5 Mar 2024 03:29:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DF6EA402B1; Tue, 5 Mar 2024 03:29:46 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2097.outbound.protection.outlook.com [40.107.94.97]) by mails.dpdk.org (Postfix) with ESMTP id D05B34026B for ; Tue, 5 Mar 2024 03:29:45 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CDUy82wCWJOVINxfc+Ft6anxGHkup3Pjm1ByDgcaJqWKkwFvRm74YDtsCkB5girfPadgaqoBwwmDstye9HiIbA/aou0c5TzZ7hcb6VyQCfWrB4+RJbGg9LFxpuCCxMuUR35vg6TcraDONZEzcT9YZw2aQQg9nMROvNMGzY65aJhqUtpwEqr51sFUiRbJXuzaSRSJoFsSc1k27DmKm/hEnA6TVY9JQ7wYpnfmEgGfk84oa/nlI11ddqRif7axylxeMRhQHSYKj4VIGfIBEBTq6MawEmkGdg3pA1HreN8Pd5Ow322iFi9vDYTE5gotJL0fQN+nqFmP9s+vwYn4StH5fQ== 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=VNC/2GIUQhS269O6FhvDhuvzxCx9qNhN2lfqQY4eUT8=; b=S74ulnwwdD29l9Robj502LGusX96E1t4lI4Nk1qt3r0wFtb6s/FIJxqfXfyp0QwWpQxkUO/cDEm+ovdgYM5KpwER6e1loxUPtO53KI4O8fFNJYRaxMylG1LrRWtjjbLovol1NzcN5IHu5c+/Uil5sHZZ+TctaAMp4pOKl6rTdgoha2fzCozmOA5DaQIFA2HsN59RU7OBC+gxb7nNic1I+6IUhfGS0Lpxm9WHyT0pugAwSq15dXvE17WeRId4PklE3TcCZJ0sHaHT2LZFCGwaJf3SkCEWZNf/RFBsN9aTo1Y4Tz47lMr69Lqm9ExICX8S9339b9Tx2Ao60XDq+m5K2A== 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=VNC/2GIUQhS269O6FhvDhuvzxCx9qNhN2lfqQY4eUT8=; b=lo5MJqK5jyP6/h4mfYf/xv0tuufJkI8uVzu9Fj1aC9FLoVEIe6KS8tlkn84AkVECdryRPv2zBPOuJb7Wpp4nYyykYMlxyVZFpUfPwa9Mjm7jDzyPimx7+k2PNONZAzvxPg3l0H/lcHyukGsK01mEwmKvES1X9raOx2vLJgQAbhc= 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 PH0PR13MB5780.namprd13.prod.outlook.com (2603:10b6:510:11b::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.37; Tue, 5 Mar 2024 02:29:42 +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.7339.035; Tue, 5 Mar 2024 02:29:42 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH 0/5] add new meta data module Date: Tue, 5 Mar 2024 10:29:18 +0800 Message-Id: <20240305022923.891544-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BY5PR04CA0028.namprd04.prod.outlook.com (2603:10b6:a03:1d0::38) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|PH0PR13MB5780:EE_ X-MS-Office365-Filtering-Correlation-Id: 89cf137a-f115-413e-4b7a-08dc3cbc1d35 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rTSgrAsuWAYCIlqmkKYAn7C15Uy+H5DeyGWs3meHgM33v0mdudHsUVNa7aHG+MVec36Rjwg/2qNhiYYzWrxndpOdntL33pwiv8CYigaGxkh1qnXP4kfyz3KQzj8+9Ok16XGlUMGi13vGcx9WGSTxELcX3cxaJyu/TSTjchU42mnhKSDL2kZNtiD2+V9p39bVc8+FKCoB0gexOh4A4nMW4SSBLicgTLgcxB+yWyytxfE6RdW0Ut18pk8jEbGTkMSLfP6MMN1iOAZ5+JeL1MknuWnKDPl0CNoBgK8CLzr6fneR0rnm+s++nLie68mNv6ScnhNLpEbrr/BHpc3Wf1DM8UY6HfSEHoxF3qLSw/ldwWRHPlreNxnw0AdeDUt5RgYnKO9HqP0+CGcBe02gB2afflbtvsa724V+4Ls3q/ylnCdMtaPVWk5+PbMOR0G1PFVxl9QFk/QeEGC5GMgYeWGlbPNSXWVh0F2Mk7TF8y3BRyYFK8YfOu61XIvEDu0/IaKPc4LuYxROXB1DAqIwZN2XodmSEQMVUulyunwn09FM+Wn6YXmI+Mhz7JXpDET9HkDZcZPWKCWTO9e1RvGpmc0NvXpAbgb1xkmkgyR+y7FiE6nwM3Q34vQI5GxtqGn/tCSC6HfnwBrDG7L9FjZdQ/hNuTur8Lo9JWE93DSehaGM7/d/AoHZHfGMo499HWSTq1YZOkqk7FoWvm0wwaRUOe/7Dg== 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)(376005)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?r+evMy8xla4dMnnWVkQWtT/FWfQLmIbz07x+8L4kJhiQp/uYfUMPmbMqHiK2?= =?us-ascii?Q?ceOlleKPfBbYrEIU2nUxfykUWHILJCNG2tQCjhy3Pj2xc86F5sF1Jfplzirq?= =?us-ascii?Q?Gmnva16p3kKSGsP6U39cPW1XZ3J9vg9DL3NKvgqkkLAMpFz9idYvgE9ufETz?= =?us-ascii?Q?DPCniTULMnx/9S/cel7FWpxu3F6Zd1mjcVqc2ddshWwuGlNYIYarrCQfV1qa?= =?us-ascii?Q?komKDbnoYUs2mNgUDJ6OV6+3hrf3hMlG0643d1Uu7cxYwkFr8cs5gOVDpXtH?= =?us-ascii?Q?BmcE9cWb4+xuYAiasY1xNr5EKct5NRS3eSQnDszrTX/4mekV9mkcfSdDcoBn?= =?us-ascii?Q?yNqP0EyTQfY1/PZTbd26lwCKVU43RjIDGCM1PxrKvM57wuTKmFgzbksLZpdA?= =?us-ascii?Q?v3jl/XPa/ME5erWhqU76dFKeeAhrIH5k7s0efHIxxL7K+HOC31OPU0WfTVC5?= =?us-ascii?Q?C7ZuJFe6yfh7pslxVMne52mZQeZzSqiJv3csSHEe0Wxun6bg5Rn4VmGk4qj6?= =?us-ascii?Q?9gQsJwpknV4fRma9zQLRo7hS5XhfdyRzwkr6yQXREaCThdweGEKw7xhCrZuC?= =?us-ascii?Q?xeXDJUE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ascii?Q?h5f9aDC7Fy9NaLQ19bTkmr4wFPympBJFk0tN9nGCHmpGjo5UfWjjE3jz6Xcw?= =?us-ascii?Q?XWyyskdDzgeDgXtV8LH/Uy3fWp5xomn8bb+mFt5NG0flP8FdeO0XWP3QFnRm?= =?us-ascii?Q?Lw=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 89cf137a-f115-413e-4b7a-08dc3cbc1d35 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2024 02:29:42.4263 (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: IAlOy7Gp7U6W3emey3UGohOKWePKu+OYcGnnxZqBky8c21nLZzvzR1bebve0HhpRWLbRzga6sG3FUyUZ8PXx9GIavu4IyduoeZKwIhW7olw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR13MB5780 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 Extract the related code into a new meta data module, uniform the name format and data endian. Which makes the logic more clear and easier to extend in the future. Long Wu (5): net/nfp: create new meta data module net/nfp: uniform variable name format net/nfp: uniform function name format net/nfp: use flag bits to control parsing meta data net/nfp: use big-endian meta data for packet drivers/common/nfp/nfp_common_ctrl.h | 41 --- drivers/net/nfp/flower/nfp_flower.c | 1 + drivers/net/nfp/flower/nfp_flower_cmsg.c | 3 +- drivers/net/nfp/flower/nfp_flower_ctrl.c | 3 +- drivers/net/nfp/meson.build | 1 + drivers/net/nfp/nfd3/nfp_nfd3_dp.c | 11 +- drivers/net/nfp/nfdk/nfp_nfdk_dp.c | 11 +- drivers/net/nfp/nfp_ipsec.c | 1 + drivers/net/nfp/nfp_ipsec.h | 6 - drivers/net/nfp/nfp_net_common.c | 26 +- drivers/net/nfp/nfp_net_common.h | 7 +- drivers/net/nfp/nfp_net_meta.c | 334 +++++++++++++++++++++++ drivers/net/nfp/nfp_net_meta.h | 107 ++++++++ drivers/net/nfp/nfp_rxtx.c | 309 +-------------------- drivers/net/nfp/nfp_rxtx.h | 20 -- 15 files changed, 464 insertions(+), 417 deletions(-) create mode 100644 drivers/net/nfp/nfp_net_meta.c create mode 100644 drivers/net/nfp/nfp_net_meta.h -- 2.39.1