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 E12BE4236A; Thu, 12 Oct 2023 03:27:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B6199402BA; Thu, 12 Oct 2023 03:27:45 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2128.outbound.protection.outlook.com [40.107.220.128]) by mails.dpdk.org (Postfix) with ESMTP id 700C940279 for ; Thu, 12 Oct 2023 03:27:44 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jf7F89RE2uHlPXooCIfJDsp5Iyn0MoA9Hh77ZYC3Bs+ce+WH98fsvEyB8gsi/HH3DBMLBls0HzVmsWERNvl2MI8givVP6e0ZejgeWGc4bj/A3mt2phPb4y4T0hamMwC4jD5lQLwiD43YGDPUkQkqOm+1DQ+BnNXei5drq/YEYOgfltxMfZ54Ld0CORRyjbVAFCc3wC5upFOeED1kchbFrXHzgY2SRw6Z2REvw+Qear1El2yIrwoOFySoKrc0OLD6A7Y3jnIZIKlJ+IiuGXlOEdajKDTpznD896BM6b8h3Xg4DaScMBwt13B0brHgFa0h9fHSui0ZQOvLCloKk74fJA== 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=8KHQce6gMqLD5jjUE2ndz0dFSJWeu/EwBSxQs8dympI=; b=RuOnJUo3gp658GxzeX5f8o03XgtggZx6kJsaqDKkPSKtvc+/+/Vux6oEWlpwdeHk9TnR/z5Pm6jDYPNjV/lIywtFpV8SqFjsAZWuKXBYMvIA31PGAArrpJ5xnPLfASyiof8EfNPuGnoqXsp9WqqGSCo+ie/wfdZCl1NZ6AECzj3s0iuFiEreJsnwo0InxevxQbhkIplvlEt5+YY6RI/OZqWwlzG8CywrNmCkBXZ5GwySpAmUpHa+pCw7UeyoT11oo3jlzUxSaiEJZiiZtFuVOHwg+m4reZEA+dnM2WRWcOptKq7vY5HAgR4qCVKmSM029W4EvB9Y75qDbyiiaUJlfA== 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=8KHQce6gMqLD5jjUE2ndz0dFSJWeu/EwBSxQs8dympI=; b=GUPRmF4uwCFqMGL+k+v9yltMqs5Kc3GifMYIStg44P2zFUuBhGsD4tBWN5K/sJNgv0caCBFiUSIXJYMqo6Zy2Dmlq08Uv0lvsD3ixpI+K0kwtcwAMPHnV+Y8F+OQfXnowD4pt/wWGAEselooh+c5uo5vXAcVa+Kd8pWDsCFroog= 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 PH0PR13MB5975.namprd13.prod.outlook.com (2603:10b6:510:16e::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.37; Thu, 12 Oct 2023 01:27:41 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::2d5:f7d6:ecde:c93a]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::2d5:f7d6:ecde:c93a%4]) with mapi id 15.20.6863.032; Thu, 12 Oct 2023 01:27:41 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH v2 00/11] Unify the PMD coding style Date: Thu, 12 Oct 2023 09:26:53 +0800 Message-Id: <20231012012704.483828-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20231007023339.1546659-1-chaoyong.he@corigine.com> References: <20231007023339.1546659-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: PH8PR15CA0015.namprd15.prod.outlook.com (2603:10b6:510:2d2::23) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|PH0PR13MB5975:EE_ X-MS-Office365-Filtering-Correlation-Id: 96029ad8-52bf-4eae-d864-08dbcac26d6c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: s+0g6AO/y5tTwXQV8v+eRCXWgU2xSKx1oVjcDXaJ3d9BmvWQuG+gXCmUf2gmmiY3N4UlAmKhM0HkNyO49kZiFyZBan7DOSCI+cSQQ3WMaKCfxIw9uw2f7JHOru4v/WITdDyDOSb/GsvpRrxSjrke86ug0vcdzDSSTdYglw44D9HVhirlC1JRpM58aI2PsehttZIEhGjjYtEVqRCONaACjCQJjnfj7Pqu4TnjXfwbxepiyQfg+y49ncvNUh8NiPiDFsIYXbJg9Yoj8KkBYqSZZDT9SKlMwyRMGfTJRHIQmt3adPXE1h+NMGNW+IYvggHh6Jsoj9tJkgVgRSfpHHTiDvvxABStdNFYaUh9OBKY47TSNAShl0tnQvJols+xdRID3dhhif4U7L5oNHJRO273qTnF8N2f3hIaF3sM0UJsoGWMLxqS6O2jFHPusOIqvR1Bjdjw3idLkaICJ6ngxLooQGiPmdIi81u3jadW+5AmvoRh988U5/OkdHaOxfx+kX+IUf4HZKc0O58kYPPKOiM/F8NzcZ6L6VjasYnzMKypr/TvdN1da/bwUN6qP/Hgn7+JCk39BapGyr2wY8ZTc0ACDPAqQFC+2gk4ixStwwqZbIXo90yWf1xQrcR8V7dF9duYW+FtZjk0dvh4R04H4N6arX/IwDxfklA6tcptjdcwu6g= 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)(396003)(346002)(39830400003)(136003)(366004)(376002)(230922051799003)(64100799003)(186009)(1800799009)(451199024)(86362001)(38350700002)(36756003)(38100700002)(66946007)(6916009)(2906002)(8936002)(478600001)(6486002)(6512007)(41300700001)(44832011)(5660300002)(4326008)(6506007)(52116002)(8676002)(6666004)(83380400001)(107886003)(66556008)(66476007)(26005)(2616005)(316002)(1076003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?DP7YFBQ6drosN2h63eBKe/Vf/0uiBvWVNcmB2IzOMruOO68MmNTSIFplHRYx?= =?us-ascii?Q?fE9cgIk6iMCbFtVa8zgpu1NCQIYDSjTufrydL0cr45PLAfAumyj2cnj5thXu?= =?us-ascii?Q?vAyp5gea6XxW2LCu5l4b0uX2RNNMKITkJKwPYkjzA+Eo0MkxL6eTHyj/4pTx?= =?us-ascii?Q?w/h9+VcbpOEsaQtS3NbCyqrCdJi8dWv85erri3GrwLGNVJm+bM5qBhLSjAmC?= =?us-ascii?Q?FrynFvIgY1SrCrEJqQ2p6TBZawASFXwPl12nRgNFjbzq52/pjZqeqvJ/TVmy?= =?us-ascii?Q?U/pDzXwiU9qzuox0HKlJ/ZQX8Ai2gAYWdKI/ekn5eiseh+ny3hYSQRvZBpH5?= =?us-ascii?Q?qGolZIP1wsgc8AwUh5feurCURbDoNXhMBTzxj21pZTXCe336XAOTfoxomfxx?= =?us-ascii?Q?n6A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peVRfh0vAk/6y?= =?us-ascii?Q?xhiiFyCSVpeyRQZx371BpRyMrWjTVgba66FIY30m9Jv6KNvfJNTppViItGIg?= =?us-ascii?Q?D7VQ+QqHWugOQT/kxTnbcflRxBUUjKe77WgTIF0nqZK8F4bPsdWCo1FP9Qxd?= =?us-ascii?Q?MYFwACmKVRKwMTiFdcEcu71c3TMq3Jn020MfXFJEc/sCBzTG61ZO856NYyYK?= =?us-ascii?Q?ULzj9yD+886vkDZ04UcUYuGc41whSUyQBEsd0ynee3ZOrPyTuU7z8b+rPwVN?= =?us-ascii?Q?h/Rgh3ZWQB6+IFcgn6CzLKgbH0/s5goBFW1XlceNFzQ5IujNFEHPTd5eisBi?= =?us-ascii?Q?qA=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 96029ad8-52bf-4eae-d864-08dbcac26d6c X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2023 01:27:41.5084 (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: cDG4RVnjaCHFyyL3TDtNCX9GNhrHWcdgXjImtg3i/KL0eVZsLS3F4kLW2keq2jJoZLIlsOZ8ZA4eRNwzSLCTta5jnOta2pcUW49m9WLPcsQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR13MB5975 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 aims to unify the coding style of NFP PMD, make the logics following the same rules, to make it easier to understand and extend. Also prepare for the upcoming vDPA PMD patch series. --- v2: * Add some missing modification. --- Chaoyong He (11): net/nfp: explicitly compare to null and 0 net/nfp: unify the indent coding style net/nfp: unify the type of integer variable net/nfp: standard the local variable coding style net/nfp: adjust the log statement net/nfp: standard the comment style net/nfp: standard the blank character net/nfp: unify the guide line of header file net/nfp: rename some parameter and variable net/nfp: adjust logic to make it more readable net/nfp: refact the meson build file drivers/net/nfp/flower/nfp_conntrack.c | 4 +- drivers/net/nfp/flower/nfp_flower.c | 27 +- drivers/net/nfp/flower/nfp_flower.h | 34 +- drivers/net/nfp/flower/nfp_flower_cmsg.c | 18 +- drivers/net/nfp/flower/nfp_flower_cmsg.h | 62 +- drivers/net/nfp/flower/nfp_flower_ctrl.c | 46 +- drivers/net/nfp/flower/nfp_flower_ctrl.h | 6 +- .../net/nfp/flower/nfp_flower_representor.c | 46 +- .../net/nfp/flower/nfp_flower_representor.h | 8 +- drivers/net/nfp/meson.build | 23 +- drivers/net/nfp/nfd3/nfp_nfd3.h | 39 +- drivers/net/nfp/nfd3/nfp_nfd3_dp.c | 34 +- drivers/net/nfp/nfdk/nfp_nfdk.h | 49 +- drivers/net/nfp/nfdk/nfp_nfdk_dp.c | 14 +- drivers/net/nfp/nfp_common.c | 775 +++++++++--------- drivers/net/nfp/nfp_common.h | 169 ++-- drivers/net/nfp/nfp_cpp_bridge.c | 139 ++-- drivers/net/nfp/nfp_cpp_bridge.h | 8 +- drivers/net/nfp/nfp_ctrl.h | 46 +- drivers/net/nfp/nfp_ethdev.c | 325 ++++---- drivers/net/nfp/nfp_ethdev_vf.c | 195 ++--- drivers/net/nfp/nfp_flow.c | 251 +++--- drivers/net/nfp/nfp_flow.h | 23 +- drivers/net/nfp/nfp_ipsec.h | 12 +- drivers/net/nfp/nfp_logs.h | 7 +- drivers/net/nfp/nfp_rxtx.c | 303 +++---- drivers/net/nfp/nfp_rxtx.h | 36 +- drivers/net/nfp/nfpcore/nfp_resource.h | 2 +- 28 files changed, 1313 insertions(+), 1388 deletions(-) -- 2.39.1