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 87ECC426D6; Sat, 7 Oct 2023 04:34:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 72206402BF; Sat, 7 Oct 2023 04:34:01 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2119.outbound.protection.outlook.com [40.107.94.119]) by mails.dpdk.org (Postfix) with ESMTP id 2535A402A7 for ; Sat, 7 Oct 2023 04:34:00 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GevEKnZcn2GTp0AJptOxOe/DWKpQ4zM5yqGXsN5HjVPot+VR3XsWKBjak5bskjU4ecZJEpgAvwE5Iubv5sgxEk/nPkoTvNpNMx/QbOKQ+xtr5vIub/N4AuisFin4M8tjmNRH3AV8vghM1ZqZc9z+tAXXkX7GNGSN4EF1v9N0RrQf8kZ+qN3LTfFmP8rJz7iFvyZKzTSDb3j+g/Nw0NBGvvpTnozIhTqqyrm0HkpSdOVpmvBfipxudso60ezv37dFHIIcD9+Xwo+NY0Y8QyBBZxhim7bZ/oAdftifkzkWvr2Bt4uTdK675Qn0CZr4brYFzdmokIvgRh5y3jvvmGIPbw== 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=1Ec4/X4OFPm19haeZOaJwtVM0cojPWxJsQPzr99RLQ0=; b=XF52UTmnQNzMl3LFlq9yjrR8ItEQD3yHapEO124HLhqOh6wrKzTH4Vm8fRtVriLUBLlGi2tjwGbTN81uNIgrZUbAJlTxuAdDw2ynieLL0oH/IV1Yb66Tuzb7gC1Gijbau9fNazyjn4xYfKePcuwN4vPX2PyEYUTIrcaWiNHryT/hN7En4byfhsKW6vPefAI+/+NkvCZZlo7XFZQi2U6BZj+6m3KG+op7Z0xKaNNrRFR7bAjzTPXCTPct8tkPCyhoY8nXfX1JqGaI1lReR/tPWIEPHpB1wacpfPCehqEMv7ynP7g9ElieNKRBKUmCVB5RasMurM15GTtWT+x8JL0LMA== 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=1Ec4/X4OFPm19haeZOaJwtVM0cojPWxJsQPzr99RLQ0=; b=dY6t7XbJKQpPcXa4CqWpOAVPnJgrqIZgnhYZmRgLkq5l/mv/mssGbzqDftxSEvFUbRJ0RNDBJk7VWJGfXRDT0cKpk5HN+QNpzstEp4u9bWZ29m4RtbW4W0S5qcsq7cPcr9A9ASxGm6RQqqhJaX1gMWjwM6+LaZvGWfa5iMa7Acc= 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 SA0PR13MB3936.namprd13.prod.outlook.com (2603:10b6:806:97::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.38; Sat, 7 Oct 2023 02:33:58 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::28c0:63e2:ecd1:9314]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::28c0:63e2:ecd1:9314%4]) with mapi id 15.20.6813.027; Sat, 7 Oct 2023 02:33:57 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH 00/11] Unify the PMD coding style Date: Sat, 7 Oct 2023 10:33:28 +0800 Message-Id: <20231007023339.1546659-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR03CA0212.namprd03.prod.outlook.com (2603:10b6:a03:39f::7) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|SA0PR13MB3936:EE_ X-MS-Office365-Filtering-Correlation-Id: 9c441c1f-3a45-416e-0ce5-08dbc6dddb7b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9xYtsPt1K89TIX11mzJOxz/hiO4tQARO2k9UqjokiwtbLDBAP0GGGlzrQnX2FOOKF97cwaQltbEfekOJT5QOmz8n8G4L80QeWGe5CMvKHzdv/bGHaIJRwgaF6hZQ+m5P/A7LY6axa2TkMUw4iBFht31bIF0guXzPYTNwkGrSHabKlf07QYih23Yzyh/GRIxTQpdLQ3gAeG2JYqzaAWbAVwO2KQ1BdM+g0kyLZsbdJ/K83O0SPppIJYfF5EcMBy4QdSKzcABqg19yRq5D52MaIDxi3IT4IQQd10YKSwDY9960jb6MrvpzG1X3ZGXjL8voNFpoKxYTHHpyRddWdq+2TaAGo5VgmbqrCnSWPtNZsPro/IbwinSLD/6oRBQB3WPrlv0OnMTzktzwegNI+wbOWpviXDn4XxMVCBZMjeCWivwVQNdKcLe0RsXYNbKt/a+Xw1lDgH93Nf5ELsbs5SvRvMBxyYihOlotVg7vMHFCQyfPYuAIMaE2puVtABtyvZ0YymLQmNvC6mgH3j5Gq5Ube234CqvyqgEAdRB0E7poliN+igkNWkfPkVV7MBQOpkQwUBTQV2XlbPzA3JL0O8vRRz6KUulk7VxibzGiveMgwdGyXMP/cmSqCBcExu30wxsBL7Y91NrtXURjiycC0U6xekiOXocLcXiVPIkUNZRJRk8= 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)(366004)(376002)(346002)(396003)(39830400003)(136003)(230922051799003)(186009)(1800799009)(64100799003)(451199024)(6666004)(6506007)(52116002)(6512007)(478600001)(6486002)(26005)(107886003)(1076003)(6916009)(316002)(41300700001)(2906002)(44832011)(66476007)(8936002)(5660300002)(4326008)(66556008)(66946007)(36756003)(8676002)(86362001)(38350700002)(38100700002)(2616005)(83380400001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?NbPJ8P6TQSmyKw2AfUcHmaWcbpXBm0MGwmliRNZN2tdGBhKd9qJoPwSJ+ZNI?= =?us-ascii?Q?sHkyE9iXvR/6ZfKXk9Osirn6AC/SmXAXN6y98RqN7Ft7MP0Y9LWwBrtRlBGz?= =?us-ascii?Q?5fnvebs+mk+G34mnfoB3+Yl3rRcIaThFKmAWDpe2cDASJa7lkWZglyQqF3QO?= =?us-ascii?Q?JDxk7Ips/VR6Hb9BXBp2eiweVybL6o4BPRAn+WSqkvn9edEtaVg/hE6TbU8m?= =?us-ascii?Q?FkOBhFfIsV2gVEFrCuxMwry1Q965Kb8rsfeFNRNiVHGoiQiRAM+/b+s5ZTVD?= =?us-ascii?Q?TqCcBbmKNrtg1wal1lsGr94Yxg70CAwc7lyd5vcQ/VKX2jBP+R+La4CQkJih?= =?us-ascii?Q?rKomffmvmO+pcyamVY4/RvfVj6VmWOO9Tz+cQ2WXhNjOXrc5KdnHKfonEB2J?= =?us-ascii?Q?ezOcvMe/vK4XXTCqpRDTLpTbat+T9qBXqIHp6g2k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ascii?Q?h1kdYN3hFSsGk2ZFLcQSBiFbIDSY5WaWZpG48FJcGbSM+PkgleizCoHZn0SU?= =?us-ascii?Q?SytqbYkmQuOrAwMu1uMByQP82hLboq5KX0HfYGkmdkInVI3YdWjdgk7O+tnY?= =?us-ascii?Q?CTxV9psOXiVDdGo0ilOpJJ2mnOfBeTHuq846A/ODamdU3x2Zk1BYmFzTOPcy?= =?us-ascii?Q?xpz9YtA2fFyCFlms8HIUrW2o3jZd3qi1vh2pIO6MW94JvYVg1E+rBPGLKHk+?= =?us-ascii?Q?NVVAtRZzkEHZFh7RPNxhPd3VKL6C0UYnFhyArAxd7LlEjUbTFUHBOxwlutam?= =?us-ascii?Q?/g=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9c441c1f-3a45-416e-0ce5-08dbc6dddb7b X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2023 02:33:57.8565 (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: QwQ2JrghTX0Av3rZFasR6vEexSsHxEYQiarGi7a+OpPJjnb+CQQoLH8RXjfFYTcOFl418AetbZ8V54Sr8iONZ+DI4mv/Ilkc+hwtOTB8d3s= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR13MB3936 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. 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_flower.c | 15 +- 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 | 36 +- drivers/net/nfp/flower/nfp_flower_ctrl.h | 6 +- .../net/nfp/flower/nfp_flower_representor.c | 36 +- .../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 | 26 +- drivers/net/nfp/nfdk/nfp_nfdk.h | 43 +- drivers/net/nfp/nfdk/nfp_nfdk_dp.c | 12 +- drivers/net/nfp/nfp_common.c | 763 +++++++++--------- drivers/net/nfp/nfp_common.h | 167 ++-- drivers/net/nfp/nfp_cpp_bridge.c | 135 ++-- drivers/net/nfp/nfp_cpp_bridge.h | 8 +- drivers/net/nfp/nfp_ctrl.h | 34 +- drivers/net/nfp/nfp_ethdev.c | 307 ++++--- drivers/net/nfp/nfp_ethdev_vf.c | 191 ++--- drivers/net/nfp/nfp_flow.c | 229 +++--- drivers/net/nfp/nfp_flow.h | 23 +- drivers/net/nfp/nfp_logs.h | 7 +- drivers/net/nfp/nfp_rxtx.c | 287 +++---- drivers/net/nfp/nfp_rxtx.h | 36 +- 25 files changed, 1235 insertions(+), 1310 deletions(-) -- 2.39.1