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 6439743220; Sat, 28 Oct 2023 08:16:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BF25A40291; Sat, 28 Oct 2023 08:16:32 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2098.outbound.protection.outlook.com [40.107.220.98]) by mails.dpdk.org (Postfix) with ESMTP id BCEE140272 for ; Sat, 28 Oct 2023 08:16:30 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JBgh1akpN5ktzt8uHsdcpm+k5knRW33qGa3Pec1o8eBo0UsfOEK0tVk/+g2w7XiPOPI25o5HfgzM+2du0lSoUQ3nIa6E+akctOJyLIWlmlvRdBlaIEUHj4Z+Q6mSFuPs/PfgCNBb1mt9ieMDp0/MM4Si1+Twe3uj0UZSLpSNLXBffWnzhrVKUXa9SlEUCbG8PCEeN95Vl261KoXq+LGKjgOwLHLSMFxc7nByKKJi+Hi8O+exhvYCnNleI0IvxzSuq3oIgWTPd5cNtU9l32X/axIzxx9udWSdy2bU9mA/uvB/pxChxJSfDx/xkd1SHdixPe0gVXDM3QLElDGB6R2Cdw== 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=l6rzBD0DpiXjPaZiglBxXVsPUh7USv1tj9snBoAZqCI=; b=R/2Ah1SuwBu/589Um2JrQ4RHW80bsv7yV2URzmdiyzztbdAR11TJX08cVeLv4nTbd+0IpLycdNRX44Os1KAev32D+HAU66OXjxmmNlw6heaoRD2umdamRV+nkVjJ9zN3eKlc0psTVzxKaLGeX6ugap/Om0VnLh0ShOHN83ay730fAoKvGAGICLI94BaxL6e0S4NlYGrshPWtGL719NrtnUFTrgE9EWRBaNe9VqXz6FXdbyNfdB+4lwFs9muXQOHX25kBf1clObnJ3DK6TDnuV/yaR6sS//F5W+4EanoU5dfrf5VRUGio2XdH0qN50+nrQ6gdIvGe6mvwPeVCt7NROQ== 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=l6rzBD0DpiXjPaZiglBxXVsPUh7USv1tj9snBoAZqCI=; b=HhoVume4YGZ2MxHW+7goJxs2Fa7xYy9oOG44djuRjPpI/6HNwiaPqqFO+uuBrQpa+nvRbqGcEyenmyYsY3ZtG/LrPSv9iVlje1IJXwx8cqwgxoc6lWGMkNtxdvVQlCNHzYTyqf0+vOMj6hT5bRMyCyz8UPexH0rLzShDCVPNwBs= 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 PH7PR13MB5551.namprd13.prod.outlook.com (2603:10b6:510:139::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.29; Sat, 28 Oct 2023 06:16:26 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::45b3:d83c:cff2:4a1b]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::45b3:d83c:cff2:4a1b%6]) with mapi id 15.20.6933.022; Sat, 28 Oct 2023 06:16:26 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH 00/11] Clean up NFP PMD Date: Sat, 28 Oct 2023 14:15:47 +0800 Message-Id: <20231028061558.1842855-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR03CA0246.namprd03.prod.outlook.com (2603:10b6:a03:3a0::11) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|PH7PR13MB5551:EE_ X-MS-Office365-Filtering-Correlation-Id: 029684f8-4ff2-4f03-4d8a-08dbd77d6a47 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UTbI0GsTCw7KF6BvEXXXNZ6ALgSjGL4Enz/aXJekBXKNSwT3bqyTLL2uJFXQgQtUNaETqKNtHPEkIWIGSbSLA4pLHJXQGuOkD+NzwOo4FMSKr+NNJL8+BE+5WFGVMrlY6q/FRmDnx5wtE64cyqa1sGGaBwz7Q9/Bzd8Nm1soAnbrtj1NzBvTQuvjF3YN07IVjLA4q179+SFGEtqZIJZaDzvnAHcBvyehE/Z/kRgOoPcAhTpQcg3G0SiHPhDn/40GFORMXCSLnx1cMBlFsk/G4Bz+ER6EoghF48LTEm4YaZ0tjAkw5oTXVdVKZQK1d1ApAfSdU6i56WcbK+OciNHLmMh+Sw0wiH8gexz3J/WvsEl8YU5DxIVZ1W/+tTw1wgwis54g+xk+JP+uhB52XXTWXH6VBe7qmGMiXhbnD8cwBa80aOzLk+2hXeYbS/yULk1F2pj0DVzFa0q5/HAiwCs+XFHGbXLnT0ON5VSut7J+SU9GAOfBNSFjpOAdiJ4d+pedhY8QXqL2Dcd/3R49ax8/inY4kZUzDMZjRbhV+o2Rqe3pJPAz61IiCTtddIaaQI9Ubm5paW7sUfqyecrSsUWN3ouUiyizOfvaVoCLOZ4zx0h5nsBPN5lKWMaeDhwYQdADQeAYHTGY404BZbtCZGFKNepQiY725ko3vXHENwU6b0M= 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)(376002)(39830400003)(346002)(136003)(366004)(396003)(230922051799003)(64100799003)(451199024)(186009)(1800799009)(6512007)(107886003)(6506007)(26005)(6666004)(52116002)(83380400001)(2906002)(44832011)(5660300002)(4326008)(8676002)(2616005)(6486002)(41300700001)(478600001)(8936002)(66476007)(38100700002)(6916009)(316002)(66946007)(86362001)(66556008)(36756003)(1076003)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ux640TP41xsyhbnhjHqc/wVcTAnB5oH1Wo12DNIZk10/887JnEa4HAK+CViW?= =?us-ascii?Q?a5dxt6BfWrMFfzxxI8Pmmj0No1hG6KIKqmH9A/v+m1LNxfLKd/VC9bI2NvUE?= =?us-ascii?Q?8CnPCzcbNugJgxeZXNZ9BvjzEC/qC8XJy6Qy/Sd6l13KXFm7vdhbP2q7V0NW?= =?us-ascii?Q?dAD7dPb/DfnGpWS6OtcYOIJhDT4n/0FwF6NirbOA59du8qdpun3hwzqHN/Y1?= =?us-ascii?Q?UIab14OC8OxQUS0RF0ebQM9eyVS8D6FIjYcEtj56f3U2YFkxnRoYVJWOqXjJ?= =?us-ascii?Q?Tl5CSIJcF3xUlZZdFlft7YaRzjN+M98+gnFjBkmKBgB7a0Xlv9u3CUHcxhyl?= =?us-ascii?Q?d/Q8DvR3fZvUclDPUA8n2f8gxR/aZfWZPvPvV55Bamnn+vcxl6de+VNOxQhf?= =?us-ascii?Q?l+ppO7DNR9dn+UTozAzxqnvppouNKjSkzWb1vIaT5Ry4R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huG8n+8EiHpLfjOmliCzYkr/7nkyq1sK1EdxKW2jjHd?= =?us-ascii?Q?Q5fzWTlu1FJiJit0UkJrhgshDVVIwN/YLykIrc2fJss8rWVPbuC2wUJOyn6A?= =?us-ascii?Q?8ifXMRIRw4jkgxsU85EoYwFsEEQGirKykqfZOiNj6pnPEVlKEkfyVA1dfI/o?= =?us-ascii?Q?vlsniqHRKExved2FuVlF0mkpuuxGb7P3IXZdppXjB6nzmjrhckuPLkhRbwPz?= =?us-ascii?Q?DPqILIpyi+Hckz1/IM8+RgzajDNUGMgIWvj7c2qJVHmvqsm//UvdB/kklWcp?= =?us-ascii?Q?cw=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 029684f8-4ff2-4f03-4d8a-08dbd77d6a47 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2023 06:16:26.0652 (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: +j7tgItBn309ibbjsAxqunvZrCXkoi/M3EigM0ggxQHQF3SaB5XoMH3g0iBOrnoMc7Ae/xhepcEVKA5lOYMYxyShtCMnGz4y/RLAzv3p8Hs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR13MB5551 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 clean up the NFP PMD, by: - Using the DPDK macro and API to replace the user defined ones. - Remove the unneeded macro and logic. - Remove the duplicated logic. Chaoyong He (11): net/nfp: use the suitable helper macro net/nfp: remove the unneeded call of underlying API net/nfp: remove the unneeded check of process type net/nfp: remove the unneeded data abstraction net/nfp: remove the redundancy macro net/nfp: remove redundancy logic of init control BAR net/nfp: use the DPDK defined function net/nfp: replace hard coded value net/nfp: unify the PMD name with macro net/nfp: extract a helper function net/nfp: remove the redundancy logic of representor port drivers/common/nfp/nfp_common_ctrl.h | 17 -- drivers/net/nfp/flower/nfp_flower.c | 111 +------- drivers/net/nfp/flower/nfp_flower.h | 4 +- drivers/net/nfp/flower/nfp_flower_cmsg.c | 3 +- drivers/net/nfp/flower/nfp_flower_ctrl.c | 6 +- .../net/nfp/flower/nfp_flower_representor.c | 253 +----------------- drivers/net/nfp/nfd3/nfp_nfd3_dp.c | 2 +- drivers/net/nfp/nfdk/nfp_nfdk_dp.c | 2 +- drivers/net/nfp/nfp_ethdev.c | 88 +++--- drivers/net/nfp/nfp_ethdev_vf.c | 28 +- drivers/net/nfp/nfp_ipsec.c | 18 +- drivers/net/nfp/nfp_net_common.c | 203 ++++++++------ drivers/net/nfp/nfp_net_common.h | 13 +- drivers/net/nfp/nfp_net_ctrl.c | 2 +- drivers/net/nfp/nfp_rxtx.c | 11 +- drivers/net/nfp/nfp_rxtx.h | 6 - 16 files changed, 203 insertions(+), 564 deletions(-) -- 2.39.1