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 E89DF43220; Sat, 28 Oct 2023 08:53:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B490A40295; Sat, 28 Oct 2023 08:53:45 +0200 (CEST) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2093.outbound.protection.outlook.com [40.107.101.93]) by mails.dpdk.org (Postfix) with ESMTP id 1881D40272 for ; Sat, 28 Oct 2023 08:53:45 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EMz1tcdgp/hlIp5HD10jB8MVBqyIpS1JepW/znsKxpxhriKrRqF+pHHq8z/mEzBddYMcQB6WyJASZb/AeILgCuikY1cF0M4n/XsiTJHr+F3vGG3OWbvtnwqRdAVNSt+uYY40SToV16YxxxIGwIJQ1JZFNwyVwXIhr4VXNB+BQejX9FIFQ9F6GF6DdBTNCWVbGx8eVFX+jTBtOj5jW+qJM73qwW/KCB0P2nASHYgX6q+djPdCHl4np5iwT7jJjdRUGXDGqhaSjsl8RnilB0V53igSQ/YDuNSC5ja+wRs5NwcCkjsKJuovbBm7GgZot4rGIT6hCCHic4IVQPj+R/Vg2Q== 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=uWqqqI+C6OPhVYgQVIWa2yFEP9PkJKxp+T9538JRyoM=; b=M/PQlhZwD/QDJA3GKvSfu4bAkqGDGZP5nNANEBySb+SqCd3ahxxyNbGigxjS+bf9G7WWcqAGnBeJKdhIEQCALS95LGO+ccJVtWa9ZfRq1mcPwN1FAIVE+L5S0D8auqY7SWCZVaUGajrMqSm3karrxU6z0LQDTRyb9BVNqiKrCCi575GNqyDy3zvZnN9dhohLCJcsFPbvTnQXoaYkoYD+8I1IHRKIx+wM29DFQ1ET0T1cFzrPs4e9UucfF57zzwIWtlUvjp4E3dNbCdOpHfPYupFdFM/du2KxM1UfaNczkpqETkZrPTX0c7vSeJUJg0cPdHRzN6ZvJiXq1NPpQd+c0A== 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=uWqqqI+C6OPhVYgQVIWa2yFEP9PkJKxp+T9538JRyoM=; b=WSs3fWEAmb1eu5Pby84MMSiN0NH4IDFrfmyBvP6JsvqiduZPhuE5xlXl7/4+ni/Tnif9bKChxynR9Hk0aAeDGyglPPg4HVtd9yrl9M0B2LVMOCgH9c8HTqF+Y4DGg9xcJMetqTtfiZMXX1MjRXzHCwy9wLichRRDhfkAaiLLCO0= 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 SA1PR13MB6055.namprd13.prod.outlook.com (2603:10b6:806:338::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.19; Sat, 28 Oct 2023 06:53:41 +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:53:41 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH v2 00/11] Clean up NFP PMD Date: Sat, 28 Oct 2023 14:53:04 +0800 Message-Id: <20231028065315.1937188-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20231028061558.1842855-1-chaoyong.he@corigine.com> References: <20231028061558.1842855-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SA0PR11CA0020.namprd11.prod.outlook.com (2603:10b6:806:d3::25) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|SA1PR13MB6055:EE_ X-MS-Office365-Filtering-Correlation-Id: f685eb7a-609f-48dc-e8a8-08dbd7829e82 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: q3P3YzT9ghyGvUe3xqKDXEqOMwJgueFOU3NKTsusfPVgAB22fUxhorurFXHuMHQBl/SciPWslA9cHgBG6AyBFu6QhLFZMpbvAubqwSqqngHtBlakq1fG4sty79MQEAuK3BLlFbFqrByfiokfR6rqY+yDKood48emuAyr6PicMDSWwqnjHEi/tT4VcqbQmhI77ZYGmVrQWp+8SWCLyQbpqrxbvrIMOL3XAM3nGOAnGJoNcMLE2UIikMNeqYwzgU5kh33mcBJAQUd/c8fookRUaYjezjo+LEEQDwbhkOoglSYlGVAcUttDuGjZrnYcE5qqyiDfYqtuz8UDzHxYzGsuR1iuPkT1h7qx/Bg6kLm2z6jszCdmMeP/rzwClthdQtEyyJavM9ER5y8BbKMghb6/9x1ahvCxGv8AzbuPtNtUYnA0BcOCPK+1v9NK5HVc46CmQMOBXpN8R3FzJ2hfQ9f4aiKGkFx2ux7UJi2qgbUYyCnAwYlwV4X5RxoL0uG0w8/NUkOOFaG5gpORj6hwAdLFXdeThTn039+lui1G4ZfpwE9q+re7wyy801N9tuuMzEvzh/Qel5ccfXIQwQFK9GBQwu49Yby9pxQNLDr0g0XX7/YOX3SeJ0chvUjq11cUYuOYgezZQnlRNlzUmV/BmiiFwLCj9GK3lq5L+qvPDnaP/Fb37d7km+cPC2EWY92K0l7weIDOxebdSTWGGWtjiGFyQg== 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)(346002)(136003)(396003)(366004)(39830400003)(376002)(230273577357003)(230173577357003)(230922051799003)(451199024)(1800799009)(64100799003)(186009)(6486002)(8676002)(8936002)(478600001)(6666004)(66476007)(66946007)(66556008)(86362001)(4326008)(41300700001)(5660300002)(6916009)(2906002)(44832011)(316002)(6506007)(52116002)(38100700002)(36756003)(2616005)(1076003)(107886003)(6512007)(26005)(38350700005)(83380400001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?0XeDcSN4qw/Y2pmlgs8E8pRHBhWTjovgB7LxYvxvRl4KiQqLZKrD2wnXOgQc?= =?us-ascii?Q?E5JeXO7IX5BqCgvpQrCsugvBRMWPuqiDdMh2tGhcGgtS7Hr0JSjvLZ9JxZsT?= =?us-ascii?Q?+8/kUk5W23bS4CBog9TUHMA3pebtS9laMG/7erPxJqa6Rftr8q4pt7+ZWTtN?= =?us-ascii?Q?pHYaPSWFPU/2fBWF5IcCXB1HuAFvXBNV2U3cr8bwPSNl+Q4ihr7BaqhaAOcJ?= =?us-ascii?Q?0IE63IYRI8t3RnYGFTtAUmoezfK54LbfTxwNZWnuBWjV21A7WxmNLyHBoLqE?= =?us-ascii?Q?+Np/WUglxLVM60CVuYqvx/7St1ZPd2E/5tkAnmaUhT7wN62MfeL60si3uxF9?= =?us-ascii?Q?WA0l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OizQ8sozqhdOq?= =?us-ascii?Q?fGjKnA32vqSUuSScUTclb2qm7i6dJlnfZuxc2PM0CA0V2os3oQPYBHcYRzMD?= =?us-ascii?Q?7Q8Dc0xdUIKqE6KwZMxZX3fW2B9wkW27MV0hL59x4aWBRk/Y00ORGY8OUZ4r?= =?us-ascii?Q?c8FucfC15t2lpgpn6LQqMPjYz/snUe0dEmz5hfhXdNK9Baz3N6Ql5pw8drup?= =?us-ascii?Q?6TOtfwTEXqLbHO3F0VNnqo6hzBvnwMB3g24WfbEwdoW5rMLWktiqDIRAlSYh?= =?us-ascii?Q?Dy24SIxiqXV0NSbhGdrG8MaMv9J+BPoidWnyHDtCaT0QkLuhcbKdrFQoSroC?= =?us-ascii?Q?n+/MHpxaEGVlxkrVEkbwZ/2NoNy5saaM+ihdXgMPhqK2XwC8xc2yoUyu3Rbi?= =?us-ascii?Q?Rw=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: f685eb7a-609f-48dc-e8a8-08dbd7829e82 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:53:41.1508 (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: muGlKeJM1vM/vWwHnekf306VEjMHwTcr3u/r1GNev03pslTHNV/C/iNCok85nUzdUNBTN0IF26Zoi8Mq61NAFkEjwr0iao6glrXZQDBEeLo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR13MB6055 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. --- v2: * Fix the compile error. * Fix one check script warning. --- 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 | 204 +++++++------- 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(+), 565 deletions(-) -- 2.39.1