get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/130847/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 130847,
    "url": "http://patchwork.dpdk.org/api/patches/130847/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230830021457.2064750-10-chaoyong.he@corigine.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20230830021457.2064750-10-chaoyong.he@corigine.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230830021457.2064750-10-chaoyong.he@corigine.com",
    "date": "2023-08-30T02:14:39",
    "name": "[v2,09/27] net/nfp: standard the blank character",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "066bec5d5decbb88e5da64f5b6db07fee9a2e4d1",
    "submitter": {
        "id": 2554,
        "url": "http://patchwork.dpdk.org/api/people/2554/?format=api",
        "name": "Chaoyong He",
        "email": "chaoyong.he@corigine.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patchwork.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230830021457.2064750-10-chaoyong.he@corigine.com/mbox/",
    "series": [
        {
            "id": 29363,
            "url": "http://patchwork.dpdk.org/api/series/29363/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29363",
            "date": "2023-08-30T02:14:30",
            "name": "refact the nfpcore module",
            "version": 2,
            "mbox": "http://patchwork.dpdk.org/series/29363/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/130847/comments/",
    "check": "warning",
    "checks": "http://patchwork.dpdk.org/api/patches/130847/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 2A5D541FC8;\n\tWed, 30 Aug 2023 04:17:00 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 10ADF402B3;\n\tWed, 30 Aug 2023 04:15:48 +0200 (CEST)",
            "from NAM11-CO1-obe.outbound.protection.outlook.com\n (mail-co1nam11on2135.outbound.protection.outlook.com [40.107.220.135])\n by mails.dpdk.org (Postfix) with ESMTP id 3CD65402C0\n for <dev@dpdk.org>; Wed, 30 Aug 2023 04:15:44 +0200 (CEST)",
            "from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5)\n by SJ0PR13MB5548.namprd13.prod.outlook.com (2603:10b6:a03:421::5)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.34; Wed, 30 Aug\n 2023 02:15:41 +0000",
            "from SJ0PR13MB5545.namprd13.prod.outlook.com\n ([fe80::c0f3:c2cc:b5bb:4192]) by SJ0PR13MB5545.namprd13.prod.outlook.com\n ([fe80::c0f3:c2cc:b5bb:4192%4]) with mapi id 15.20.6699.034; Wed, 30 Aug 2023\n 02:15:41 +0000"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=kT5rAzzufvYGYudeKqRIsO+63dNWuBeaH7n0fsYLwj3VoRz38C0XjS+UEYCsYwm9UdEESVx7AZAo+lLQKIMAAoyrNhPJWE24Yv+2fOFroTj4Ce7kDPs7eP5Jcsv0WCVJwnu2TPR3BM4S7V60Ko9eRnUAZFiBa6M0qrWA5a7FDpXj5QE+4+p5ZFr4acWoZPSu5nGvqg//+Vr9IH+iBCaosMM2NiTcTZDV3sW7ZhJewG2F8j3rMvrYDGJ4t/MON2eMKnGrg5ALe3L2ZdNAfpzSfUBzS8uyS+cm1mQuiu/xVZ8HpxI7GMv/rS9/xY/qnWalbRiFwVHfVACSMnjIxU1FAA==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n 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;\n bh=sKH+eh5W5u7nD7Xasmvl8GTYCt6P8winsMNRx3EdXUM=;\n b=i5lctcGU/DKisriDqagIzN1U6P0hbJEZO1uGZ9z0R3aN2vZfIc5KzDRdNWm7GdDHQenL+KA/RdlZPdNGNwDeGScZmBajnb4X73K0w+XHqI2veec+LhCCAj31YxXuVvP+8wDmV7gUIgilujan2ghbP9FJTAcwSghUrA7G84Gi4qViN1Pj48GXEzqUps7eDA1f4XLmXsq+LYP1jRaZYtanQTXSWSt5x18GjRBSQBrK7oP0GF4cBzeIRVCAaY7eW+MvB4o7cRcPI87CeNGstaJbpwWkcwTgGPexE4K9xHHip5nCw32Zcae7XWcajnVhAPDvY2+aKvswxxozNviGobQsZw==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass\n smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com;\n dkim=pass header.d=corigine.com; arc=none",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=sKH+eh5W5u7nD7Xasmvl8GTYCt6P8winsMNRx3EdXUM=;\n b=DP1L97MGzaeXsAcE34XaFkbz87EMe+e3h8SPxXJ41PW49ekpXuVxrr01SZ/gmqwCDfK2jkkwk+JRbw5/v6nhLvIrNRh6Az1g+QS7V+iAstbIMxWIhlnIcCmDJcECr/2O9QeZHhpPmF7Gofhgyo4WXi7I2AVLgrkvTmQgo481lmI=",
        "Authentication-Results": "dkim=none (message not signed)\n header.d=none;dmarc=none action=none header.from=corigine.com;",
        "From": "Chaoyong He <chaoyong.he@corigine.com>",
        "To": "dev@dpdk.org",
        "Cc": "oss-drivers@corigine.com, niklas.soderlund@corigine.com,\n Chaoyong He <chaoyong.he@corigine.com>",
        "Subject": "[PATCH v2 09/27] net/nfp: standard the blank character",
        "Date": "Wed, 30 Aug 2023 10:14:39 +0800",
        "Message-Id": "<20230830021457.2064750-10-chaoyong.he@corigine.com>",
        "X-Mailer": "git-send-email 2.39.1",
        "In-Reply-To": "<20230830021457.2064750-1-chaoyong.he@corigine.com>",
        "References": "<20230824110956.1943559-1-chaoyong.he@corigine.com>\n <20230830021457.2064750-1-chaoyong.he@corigine.com>",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "X-ClientProxiedBy": "PH0PR07CA0113.namprd07.prod.outlook.com\n (2603:10b6:510:4::28) To SJ0PR13MB5545.namprd13.prod.outlook.com\n (2603:10b6:a03:424::5)",
        "MIME-Version": "1.0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "SJ0PR13MB5545:EE_|SJ0PR13MB5548:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "7766fd7c-fc60-42ff-2c69-08dba8ff0223",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "\n lYf/ayfGpU1Nykz7PjbA9mjBBUISL30RxPhQfsTNsmJMzAmp0kTuCcNCcqjQ6CO+XLAQw9uQ31m5gBG8QVUJA2OIy6/XEIroFkv6QZ7dVbHsRaxFH30H9bfLGG3mxUXhxhDcExfQ0iZT3qECQsnuKd29m1aOLKBxET2mNRtKo3Kp5PwDYCBUazftxTbeUgFdDk1a1YYlJmY/IlvIqtRgdFoHPhfGLY1JTw9cEdT+u1m7zlIk1IzTWZRUGPzxp/4FR83kQvX0g6s/M+H0MI28LBlsqV0dSzbuaacKU3Goea1CmmYB1kmURvPSTYgJhmeSqPAt+OzQ/vmFQvoTjeclyyZNgGXDkaadOff8pEUhMMg96W+SdQK/l9ogqpeSaN3wunJx8sDLubh4a7+kJ2XJADpgXik/hqTPNITniYEKzqLqArwqOpfrPwECrDAPzGh7nXAV0QEvrlNHyU3SluGXgADPXolHx+KLhoVLjrvThZ+/MeCyPsBkDeXsKl7zwXLg/2JUmnj5OrBiUCSQ+fZJkyRp3wWSFQLihasfsv4BnQg6GfWF/rVqLsqoYGIPU+clpwNgvwhacENDlykeUUnPPAnGsDyWdqL23MjPp6eMpO/g7u1mNs5Ker0L0tNgGV0NBfPAVjEpADyLTkrQvVCY7oa4/u3FjIX7PAWiK21JKtA=",
        "X-Forefront-Antispam-Report": "CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE;\n SFS:(13230031)(346002)(396003)(136003)(39830400003)(376002)(366004)(1800799009)(451199024)(186009)(44832011)(4326008)(66556008)(6916009)(2906002)(66476007)(36756003)(66946007)(5660300002)(316002)(8936002)(8676002)(41300700001)(6506007)(6486002)(52116002)(1076003)(26005)(107886003)(6512007)(66574015)(30864003)(2616005)(38350700002)(38100700002)(478600001)(83380400001)(86362001);\n DIR:OUT; SFP:1102;",
        "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1",
        "X-MS-Exchange-AntiSpam-MessageData-0": "=?utf-8?q?oGLQIOEMjILQXHSSHBB/4tP2U9Io?=\n\t=?utf-8?q?qupCsA20a6Hk1RHSgPxH8Y4zF1UHkcLmrgaDiijRcZaslcbfS86QNz7qvWGDpOzHA?=\n\t=?utf-8?q?FFT/uJsoSMy0wQEAF4+UybqbuDKKxyuCihWkRrFR8YOgcnPXh7fa1tXKBJJYC5HKn?=\n\t=?utf-8?q?WlvHzGE4W45Vg2CPoXDGYuJUV5GLHOR0DhQ+Fk4PW4893BEPq5FaxN51t264gQdxb?=\n\t=?utf-8?q?f1BnU7gwWTTXJjnHWNXb5B1/I2hWbP4qn2UbQiSljMOILmSDRcTFECeButhKvoRfn?=\n\t=?utf-8?q?4Wof3E5Rm5QdXB2aosXmdIAShjjrpJNHgVQEy3wREo7D+mJTbez6+E+e7JWAuUzRc?=\n\t=?utf-8?q?bw+eJ757zc8iIEK/PX39JPM0RO/wgT9RDhX3XgZRUGTyam4osKIxGq/4DT9H2aSw4?=\n\t=?utf-8?q?mmL5F5aCg6C6BjGKz8FZWE6As/yYTplVuIkjgPZrEaUo1aFQoKvaqnFAeX9fJeOsw?=\n\t=?utf-8?q?dmsdrFFROXV0wj5iEnE3O8SfT7JAivPUvTEaUJtu1BwHKcSppTdEX0LR678aU7Zyt?=\n\t=?utf-8?q?QK0BESIt/6zzhE1fo/3r3ahsLV3qXPwspFJsV7btB7r7vewAFR8Opnidq6A2/pyD8?=\n\t=?utf-8?q?/IZYsijdAwjW/Cj+SfxhQUNinaK8aYgCkivxrZK/bc/ef4DTkKF32oraoetOho64d?=\n\t=?utf-8?q?qPQtytxp76osdJtKJTQs8MLnzfvD7TxamDv7bu3oAX7lks9zJ/Bde1w6bN3TehR18?=\n\t=?utf-8?q?ND8UZGxD6LhMVka3U3KU2O9e3h3onHp2xB9Z5bjP5XfvXs9HGETNts6b0NAxTOQ07?=\n\t=?utf-8?q?1sxtg9zqRtgFJQmST4j6UiwZo8Q0ZoY8o9kgX7IMfnF92fcrCypRl88E1EMhUwvA8?=\n\t=?utf-8?q?isXAbjvQgBJ7nBuja8I3F36a+0P4DhqM+nkPxbKDhXSW5wxLw9SJnLofvgndaMBZM?=\n\t=?utf-8?q?mVR4U9sCtPyylB0wPZeoQbb6aPl5/YsJgFxhsiXb0q8PL311HZnvrMndUCS5HwnsT?=\n\t=?utf-8?q?vsqUMUyvp3PHn+17SmJsrkHahe+NQ/6QvI506kgdFyYEOA/1R3VYVzyepQPkNvXLF?=\n\t=?utf-8?q?LbF3yawcgF+u1iZ9lTNMJpejUYCm0FDTTAvDApZtEayifGO6aT9+n6vbXlJ5Mj7+x?=\n\t=?utf-8?q?YTHAIQgVUwNlLC0y4ydtY/xw1d08qqOhZoalnYeQMLwgF+sxszU7wgjiht2/iG90V?=\n\t=?utf-8?q?kswI5IjH8m10ZOC2mfzisp8lAE/04BA0tadrQzFxPxy5c2bd6UngyDQEJ/91jnDKQ?=\n\t=?utf-8?q?mMiZItMn4tw+omzH2m/35i7Gp9yjXlnNEALcmxSiu/jJfmGzpeqwf/e0Y86z5qR+T?=\n\t=?utf-8?q?BJD0GJCPl7KkCu/GfTFiASXNdNhhUvfSAhOdfkwtoFce82iLgNosYgcLpto6VzWdH?=\n\t=?utf-8?q?+Dj3+2I7rKsVKMot86PDD76HcoWBNAC6FfpDTKrNXAvc0zSkqdoRbu4gUTq1DOpS6?=\n\t=?utf-8?q?sj1I85sQ3lOH1lY759SZlCPhCHNph1TEwpumSebVYVnvUaeBUEE9gNxleei8Z9yQ3?=\n\t=?utf-8?q?bDyRiIGEVfFw2Gn2kTf3X+t5GL163h0nZ4lnNlpa5g+lq63pZNMcmHKpM5hvNGdR7?=\n\t=?utf-8?q?1oQrW64kHnSBtEvJUxM8SEel2e1eHHtm7g=3D=3D?=",
        "X-OriginatorOrg": "corigine.com",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 7766fd7c-fc60-42ff-2c69-08dba8ff0223",
        "X-MS-Exchange-CrossTenant-AuthSource": "SJ0PR13MB5545.namprd13.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Internal",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "30 Aug 2023 02:15:41.4730 (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": "\n kBztt6sqHVWO9uYrsytM600hKlbeLQJ4V047khC2qke0sWyh9gBTAr//i3oSKlGRASYHLeaC50KisJIfpnaBcl4yHAelTjmlIKhPtNRUEzo=",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "SJ0PR13MB5548",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "Use space character to align instead of TAB character.\nThere should one blank line to split the block of logic, no more no less.\n\nSigned-off-by: Chaoyong He <chaoyong.he@corigine.com>\nReviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>\n---\n drivers/net/nfp/nfpcore/nfp6000/nfp6000.h  |   4 +-\n drivers/net/nfp/nfpcore/nfp_cpp.h          |  18 +--\n drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c |  17 ++-\n drivers/net/nfp/nfpcore/nfp_cppcore.c      |   2 -\n drivers/net/nfp/nfpcore/nfp_hwinfo.c       |   2 +\n drivers/net/nfp/nfpcore/nfp_hwinfo.h       |  45 ++++---\n drivers/net/nfp/nfpcore/nfp_mip.c          |   9 +-\n drivers/net/nfp/nfpcore/nfp_mip.h          |   1 +\n drivers/net/nfp/nfpcore/nfp_mutex.c        |  17 +--\n drivers/net/nfp/nfpcore/nfp_nffw.c         |   8 +-\n drivers/net/nfp/nfpcore/nfp_nsp.c          |   3 +\n drivers/net/nfp/nfpcore/nfp_nsp.h          | 105 ++++++++--------\n drivers/net/nfp/nfpcore/nfp_nsp_cmds.c     |   1 +\n drivers/net/nfp/nfpcore/nfp_nsp_eth.c      | 132 ++++++++++-----------\n drivers/net/nfp/nfpcore/nfp_resource.c     |  18 +--\n drivers/net/nfp/nfpcore/nfp_rtsym.c        |  16 +--\n drivers/net/nfp/nfpcore/nfp_rtsym.h        |   1 +\n 17 files changed, 204 insertions(+), 195 deletions(-)",
    "diff": "diff --git a/drivers/net/nfp/nfpcore/nfp6000/nfp6000.h b/drivers/net/nfp/nfpcore/nfp6000/nfp6000.h\nindex 7750a0218e..efaa87c0e5 100644\n--- a/drivers/net/nfp/nfpcore/nfp6000/nfp6000.h\n+++ b/drivers/net/nfp/nfpcore/nfp6000/nfp6000.h\n@@ -15,8 +15,8 @@\n #define NFP_CPP_TARGET_PCIE             9\n #define NFP_CPP_TARGET_ARM              10\n #define NFP_CPP_TARGET_CRYPTO           12\n-#define NFP_CPP_TARGET_ISLAND_XPB       14\t/* Shared with CAP */\n-#define NFP_CPP_TARGET_ISLAND_CAP       14\t/* Shared with XPB */\n+#define NFP_CPP_TARGET_ISLAND_XPB       14      /* Shared with CAP */\n+#define NFP_CPP_TARGET_ISLAND_CAP       14      /* Shared with XPB */\n #define NFP_CPP_TARGET_CT_XPB           14\n #define NFP_CPP_TARGET_LOCAL_SCRATCH    15\n #define NFP_CPP_TARGET_CLS              NFP_CPP_TARGET_LOCAL_SCRATCH\ndiff --git a/drivers/net/nfp/nfpcore/nfp_cpp.h b/drivers/net/nfp/nfpcore/nfp_cpp.h\nindex 82189e9910..92cae2557a 100644\n--- a/drivers/net/nfp/nfpcore/nfp_cpp.h\n+++ b/drivers/net/nfp/nfpcore/nfp_cpp.h\n@@ -80,16 +80,17 @@ struct nfp_cpp_operations {\n \t * Serialized\n \t */\n \tint (*area_acquire)(struct nfp_cpp_area *area);\n+\n \t/*\n \t * Release resources for a NFP CPP area\n \t * Serialized\n \t */\n \tvoid (*area_release)(struct nfp_cpp_area *area);\n+\n \t/*\n \t * Return a void IO pointer to a NFP CPP area\n \t * NOTE: This is _not_ serialized\n \t */\n-\n \tvoid *(*area_iomem)(struct nfp_cpp_area *area);\n \n \t/*\n@@ -280,7 +281,7 @@ void nfp_cpp_free(struct nfp_cpp *cpp);\n  * @return\n  *   true if model is in the NFP6000 family, false otherwise.\n  */\n-#define NFP_CPP_MODEL_IS_6000(model)\t\t     \\\n+#define NFP_CPP_MODEL_IS_6000(model)                         \\\n \t\t((NFP_CPP_MODEL_CHIP_of(model) >= 0x3800) && \\\n \t\t(NFP_CPP_MODEL_CHIP_of(model) < 0x7000))\n \n@@ -290,11 +291,11 @@ uint32_t nfp_cpp_model(struct nfp_cpp *cpp);\n  * NFP Interface types - logical interface for this CPP connection 4 bits are\n  * reserved for interface type.\n  */\n-#define NFP_CPP_INTERFACE_TYPE_INVALID\t\t0x0\n-#define NFP_CPP_INTERFACE_TYPE_PCI\t\t0x1\n-#define NFP_CPP_INTERFACE_TYPE_ARM\t\t0x2\n-#define NFP_CPP_INTERFACE_TYPE_RPC\t\t0x3\n-#define NFP_CPP_INTERFACE_TYPE_ILA\t\t0x4\n+#define NFP_CPP_INTERFACE_TYPE_INVALID          0x0\n+#define NFP_CPP_INTERFACE_TYPE_PCI              0x1\n+#define NFP_CPP_INTERFACE_TYPE_ARM              0x2\n+#define NFP_CPP_INTERFACE_TYPE_RPC              0x3\n+#define NFP_CPP_INTERFACE_TYPE_ILA              0x4\n \n /**\n  * Construct a 16-bit NFP Interface ID\n@@ -316,7 +317,7 @@ uint32_t nfp_cpp_model(struct nfp_cpp *cpp);\n  * @return\n  *   Interface ID\n  */\n-#define NFP_CPP_INTERFACE(type, unit, channel)\t\\\n+#define NFP_CPP_INTERFACE(type, unit, channel) \\\n \t((((type) & 0xf) << 12) | \\\n \t (((unit) & 0xf) <<  8) | \\\n \t (((channel) & 0xff) << 0))\n@@ -354,7 +355,6 @@ uint32_t nfp_cpp_model(struct nfp_cpp *cpp);\n  */\n #define NFP_CPP_INTERFACE_CHANNEL_of(interface)\t(((interface) >>  0) & 0xff)\n \n-\n uint16_t nfp_cpp_interface(struct nfp_cpp *cpp);\n \n int nfp_cpp_serial(struct nfp_cpp *cpp, const uint8_t **serial);\ndiff --git a/drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c b/drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c\nindex 7e94bfb611..28a6278497 100644\n--- a/drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c\n+++ b/drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c\n@@ -37,7 +37,7 @@\n #include \"nfp6000/nfp6000.h\"\n #include \"../nfp_logs.h\"\n \n-#define NFP_PCIE_BAR(_pf)\t(0x30000 + ((_pf) & 7) * 0xc0)\n+#define NFP_PCIE_BAR(_pf)        (0x30000 + ((_pf) & 7) * 0xc0)\n \n #define NFP_PCIE_BAR_PCIE2CPP_ACTION_BASEADDRESS(_x)  (((_x) & 0x1f) << 16)\n #define NFP_PCIE_BAR_PCIE2CPP_BASEADDRESS(_x)         (((_x) & 0xffff) << 0)\n@@ -58,7 +58,7 @@\n  * Minimal size of the PCIe cfg memory we depend on being mapped,\n  * queue controller and DMA controller don't have to be covered.\n  */\n-#define NFP_PCI_MIN_MAP_SIZE\t\t\t\t0x080000        /* 512K */\n+#define NFP_PCI_MIN_MAP_SIZE        0x080000        /* 512K */\n \n #define NFP_PCIE_P2C_FIXED_SIZE(bar)               (1 << (bar)->bitsize)\n #define NFP_PCIE_P2C_BULK_SIZE(bar)                (1 << (bar)->bitsize)\n@@ -93,7 +93,7 @@ struct nfp_bar {\n \tchar *iomem;         /**< mapped IO memory */\n };\n \n-#define BUSDEV_SZ\t13\n+#define BUSDEV_SZ    13\n struct nfp_pcie_user {\n \tstruct nfp_bar bar[NFP_BAR_MAX];\n \n@@ -163,7 +163,6 @@ nfp_compute_bar(const struct nfp_bar *bar,\n \t\t\treturn -EINVAL;\n \n \t\toffset &= mask;\n-\n \t\tbitsize = 40 - 16;\n \t} else {\n \t\tmask = ~(NFP_PCIE_P2C_BULK_SIZE(bar) - 1);\n@@ -171,7 +170,6 @@ nfp_compute_bar(const struct nfp_bar *bar,\n \t\t/* Bulk mapping */\n \t\tnewcfg |= NFP_PCIE_BAR_PCIE2CPP_MAPTYPE\n \t\t\t\t(NFP_PCIE_BAR_PCIE2CPP_MAPTYPE_BULK);\n-\n \t\tnewcfg |= NFP_PCIE_BAR_PCIE2CPP_TARGET_BASEADDRESS(tgt);\n \t\tnewcfg |= NFP_PCIE_BAR_PCIE2CPP_TOKEN_BASEADDRESS(tok);\n \n@@ -179,7 +177,6 @@ nfp_compute_bar(const struct nfp_bar *bar,\n \t\t\treturn -EINVAL;\n \n \t\toffset &= mask;\n-\n \t\tbitsize = 40 - 21;\n \t}\n \n@@ -278,6 +275,7 @@ nfp_enable_bars(struct nfp_pcie_user *nfp)\n \t\tstart = NFP_BAR_MAX;\n \t\tend = NFP_BAR_MID;\n \t}\n+\n \tfor (x = start; x > end; x--) {\n \t\tbar = &nfp->bar[x - 1];\n \t\tbar->barcfg = 0;\n@@ -310,6 +308,7 @@ nfp_alloc_bar(struct nfp_pcie_user *nfp)\n \t\tstart = NFP_BAR_MAX;\n \t\tend = NFP_BAR_MID;\n \t}\n+\n \tfor (x = start; x > end; x--) {\n \t\tbar = &nfp->bar[x - 1];\n \t\tif (bar->lock == 0) {\n@@ -317,6 +316,7 @@ nfp_alloc_bar(struct nfp_pcie_user *nfp)\n \t\t\treturn bar;\n \t\t}\n \t}\n+\n \treturn NULL;\n }\n \n@@ -346,7 +346,6 @@ nfp_disable_bars(struct nfp_pcie_user *nfp)\n }\n \n /* Generic CPP bus access interface. */\n-\n struct nfp6000_area_priv {\n \tstruct nfp_bar *bar;\n \tuint32_t bar_offset;\n@@ -443,6 +442,7 @@ static void\n nfp6000_area_release(struct nfp_cpp_area *area)\n {\n \tstruct nfp6000_area_priv *priv = nfp_cpp_area_priv(area);\n+\n \tpriv->bar->lock = 0;\n \tpriv->bar = NULL;\n \tpriv->iomem = NULL;\n@@ -478,7 +478,6 @@ nfp6000_area_read(struct nfp_cpp_area *area,\n \t\treturn -EFAULT;\n \n \twidth = priv->width.read;\n-\n \tif (width <= 0)\n \t\treturn -EINVAL;\n \n@@ -548,7 +547,6 @@ nfp6000_area_write(struct nfp_cpp_area *area,\n \t\treturn -EFAULT;\n \n \twidth = priv->width.write;\n-\n \tif (width <= 0)\n \t\treturn -EINVAL;\n \n@@ -718,6 +716,7 @@ nfp6000_set_barsz(struct rte_pci_device *dev,\n \t\ti++;\n \n \tdesc->barsz = i;\n+\n \treturn 0;\n }\n \ndiff --git a/drivers/net/nfp/nfpcore/nfp_cppcore.c b/drivers/net/nfp/nfpcore/nfp_cppcore.c\nindex 1e0608a8e4..fa199e80d3 100644\n--- a/drivers/net/nfp/nfpcore/nfp_cppcore.c\n+++ b/drivers/net/nfp/nfpcore/nfp_cppcore.c\n@@ -433,7 +433,6 @@ nfp_cpp_area_acquire(struct nfp_cpp_area *area)\n {\n \tif (area->cpp->op->area_acquire != NULL) {\n \t\tint err = area->cpp->op->area_acquire(area);\n-\n \t\tif (err < 0) {\n \t\t\tPMD_DRV_LOG(ERR, \"Area acquire op failed\");\n \t\t\treturn -1;\n@@ -862,7 +861,6 @@ nfp_cpp_alloc(struct rte_pci_device *dev,\n \tconst struct nfp_cpp_operations *ops;\n \n \tops = nfp_cpp_transport_operations();\n-\n \tif (ops == NULL || ops->init == NULL)\n \t\treturn NULL;\n \ndiff --git a/drivers/net/nfp/nfpcore/nfp_hwinfo.c b/drivers/net/nfp/nfpcore/nfp_hwinfo.c\nindex 7abf9c7700..cee37210b0 100644\n--- a/drivers/net/nfp/nfpcore/nfp_hwinfo.c\n+++ b/drivers/net/nfp/nfpcore/nfp_hwinfo.c\n@@ -54,6 +54,7 @@ nfp_hwinfo_db_walk(struct nfp_hwinfo *hwinfo,\n \t\t\treturn -EINVAL;\n \t\t}\n \t}\n+\n \treturn 0;\n }\n \n@@ -178,6 +179,7 @@ nfp_hwinfo_read(struct nfp_cpp *cpp)\n \t\trte_free(db);\n \t\treturn NULL;\n \t}\n+\n \treturn db;\n }\n \ndiff --git a/drivers/net/nfp/nfpcore/nfp_hwinfo.h b/drivers/net/nfp/nfpcore/nfp_hwinfo.h\nindex 424db8035d..37427bb6c8 100644\n--- a/drivers/net/nfp/nfpcore/nfp_hwinfo.h\n+++ b/drivers/net/nfp/nfpcore/nfp_hwinfo.h\n@@ -8,33 +8,31 @@\n \n #include <inttypes.h>\n \n-#define HWINFO_SIZE_MIN\t0x100\n+#define HWINFO_SIZE_MIN    0x100\n \n /*\n  * The Hardware Info Table defines the properties of the system.\n  *\n  * HWInfo v1 Table (fixed size)\n  *\n- * 0x0000: uint32_t version\t        Hardware Info Table version (1.0)\n- * 0x0004: uint32_t size\t        Total size of the table, including the\n- *\t\t\t\t\tCRC32 (IEEE 802.3)\n- * 0x0008: uint32_t jumptab\t        Offset of key/value table\n- * 0x000c: uint32_t keys\t        Total number of keys in the key/value\n- *\t\t\t\t\ttable\n- * NNNNNN:\t\t\t\tKey/value jump table and string data\n- * (size - 4): uint32_t crc32\tCRC32 (same as IEEE 802.3, POSIX csum, etc)\n- *\t\t\t\tCRC32(\"\",0) = ~0, CRC32(\"a\",1) = 0x48C279FE\n+ * 0x0000: uint32_t version        Hardware Info Table version (1.0)\n+ * 0x0004: uint32_t size           Total size of the table, including the\n+ *                                     CRC32 (IEEE 802.3)\n+ * 0x0008: uint32_t jumptab        Offset of key/value table\n+ * 0x000c: uint32_t keys           Total number of keys in the key/value table\n+ * NNNNNN:                         Key/value jump table and string data\n+ * (size - 4): uint32_t crc32      CRC32 (same as IEEE 802.3, POSIX csum, etc)\n+ *                                     CRC32(\"\",0) = ~0, CRC32(\"a\",1) = 0x48C279FE\n  *\n  * HWInfo v2 Table (variable size)\n  *\n- * 0x0000: uint32_t version\t        Hardware Info Table version (2.0)\n- * 0x0004: uint32_t size\t        Current size of the data area, excluding\n- *\t\t\t\t\tCRC32\n- * 0x0008: uint32_t limit\t        Maximum size of the table\n- * 0x000c: uint32_t reserved\t        Unused, set to zero\n- * NNNNNN:\t\t\tKey/value data\n- * (size - 4): uint32_t crc32\tCRC32 (same as IEEE 802.3, POSIX csum, etc)\n- *\t\t\t\tCRC32(\"\",0) = ~0, CRC32(\"a\",1) = 0x48C279FE\n+ * 0x0000: uint32_t version        Hardware Info Table version (2.0)\n+ * 0x0004: uint32_t size           Current size of the data area, excluding CRC32\n+ * 0x0008: uint32_t limit          Maximum size of the table\n+ * 0x000c: uint32_t reserved       Unused, set to zero\n+ * NNNNNN:                         Key/value data\n+ * (size - 4): uint32_t crc32      CRC32 (same as IEEE 802.3, POSIX csum, etc)\n+ *                                     CRC32(\"\",0) = ~0, CRC32(\"a\",1) = 0x48C279FE\n  *\n  * If the HWInfo table is in the process of being updated, the low bit of\n  * version will be set.\n@@ -47,17 +45,16 @@\n  *\n  *  All keys are guaranteed to be unique.\n  *\n- * N+0:\tuint32_t key_1\t\tOffset to the first key\n- * N+4:\tuint32_t val_1\t\tOffset to the first value\n- * N+8: uint32_t key_2\t\tOffset to the second key\n- * N+c: uint32_t val_2\t\tOffset to the second value\n+ * N+0: uint32_t key_1        Offset to the first key\n+ * N+4: uint32_t val_1        Offset to the first value\n+ * N+8: uint32_t key_2        Offset to the second key\n+ * N+c: uint32_t val_2        Offset to the second value\n  * ...\n  *\n  * HWInfo v2 Key/Value Table\n  * -------------------------\n  *\n  * Packed UTF8Z strings, ie 'key1\\000value1\\000key2\\000value2\\000'\n- *\n  * Unsorted.\n  *\n  * Note: Only the HwInfo v2 Table be supported now.\n@@ -65,7 +62,7 @@\n \n #define NFP_HWINFO_VERSION_1 ('H' << 24 | 'I' << 16 | 1 << 8 | 0 << 1 | 0)\n #define NFP_HWINFO_VERSION_2 ('H' << 24 | 'I' << 16 | 2 << 8 | 0 << 1 | 0)\n-#define NFP_HWINFO_VERSION_UPDATING\tRTE_BIT32(0)\n+#define NFP_HWINFO_VERSION_UPDATING    RTE_BIT32(0)\n \n struct nfp_hwinfo {\n \tuint8_t start[0];\ndiff --git a/drivers/net/nfp/nfpcore/nfp_mip.c b/drivers/net/nfp/nfpcore/nfp_mip.c\nindex 3c59582846..f6f07ac739 100644\n--- a/drivers/net/nfp/nfpcore/nfp_mip.c\n+++ b/drivers/net/nfp/nfpcore/nfp_mip.c\n@@ -11,9 +11,9 @@\n #include \"nfp_mip.h\"\n #include \"nfp_nffw.h\"\n \n-#define NFP_MIP_SIGNATURE\trte_cpu_to_le_32(0x0050494d)  /* \"MIP\\0\" */\n-#define NFP_MIP_VERSION\t\trte_cpu_to_le_32(1)\n-#define NFP_MIP_MAX_OFFSET\t(256 * 1024)\n+#define NFP_MIP_SIGNATURE        rte_cpu_to_le_32(0x0050494d)  /* \"MIP\\0\" */\n+#define NFP_MIP_VERSION          rte_cpu_to_le_32(1)\n+#define NFP_MIP_MAX_OFFSET       (256 * 1024)\n \n struct nfp_mip {\n \tuint32_t signature;\n@@ -49,11 +49,13 @@ nfp_mip_try_read(struct nfp_cpp *cpp,\n \t\tPMD_DRV_LOG(ERR, \"Failed to read MIP data\");\n \t\treturn -EIO;\n \t}\n+\n \tif (mip->signature != NFP_MIP_SIGNATURE) {\n \t\tPMD_DRV_LOG(ERR, \"Incorrect MIP signature %#08x\",\n \t\t\t\trte_le_to_cpu_32(mip->signature));\n \t\treturn -EINVAL;\n \t}\n+\n \tif (mip->mip_version != NFP_MIP_VERSION) {\n \t\tPMD_DRV_LOG(ERR, \"Unsupported MIP version %d\",\n \t\t\t\trte_le_to_cpu_32(mip->mip_version));\n@@ -82,6 +84,7 @@ nfp_mip_read_resource(struct nfp_cpp *cpp,\n \t\tgoto exit_close_nffw;\n \n \terr = nfp_mip_try_read(cpp, cpp_id, addr, mip);\n+\n exit_close_nffw:\n \tnfp_nffw_info_close(nffw_info);\n \treturn err;\ndiff --git a/drivers/net/nfp/nfpcore/nfp_mip.h b/drivers/net/nfp/nfpcore/nfp_mip.h\nindex 980abc2517..16824a6769 100644\n--- a/drivers/net/nfp/nfpcore/nfp_mip.h\n+++ b/drivers/net/nfp/nfpcore/nfp_mip.h\n@@ -18,4 +18,5 @@ void nfp_mip_symtab(const struct nfp_mip *mip, uint32_t *addr, uint32_t *size);\n void nfp_mip_strtab(const struct nfp_mip *mip, uint32_t *addr, uint32_t *size);\n int nfp_nffw_info_mip_first(struct nfp_nffw_info *state, uint32_t *cpp_id,\n \t\tuint64_t *off);\n+\n #endif\ndiff --git a/drivers/net/nfp/nfpcore/nfp_mutex.c b/drivers/net/nfp/nfpcore/nfp_mutex.c\nindex 5392924cf0..61c491e07e 100644\n--- a/drivers/net/nfp/nfpcore/nfp_mutex.c\n+++ b/drivers/net/nfp/nfpcore/nfp_mutex.c\n@@ -85,7 +85,7 @@ nfp_cpp_mutex_init(struct nfp_cpp *cpp,\n {\n \tint err;\n \tuint32_t model = nfp_cpp_model(cpp);\n-\tuint32_t muw = NFP_CPP_ID(target, 4, 0);\t/* atomic_write */\n+\tuint32_t muw = NFP_CPP_ID(target, 4, 0);    /* atomic_write */\n \n \terr = _nfp_cpp_mutex_validate(model, &target, address);\n \tif (err < 0)\n@@ -134,7 +134,7 @@ nfp_cpp_mutex_alloc(struct nfp_cpp *cpp,\n \tuint32_t tmp;\n \tstruct nfp_cpp_mutex *mutex;\n \tuint32_t model = nfp_cpp_model(cpp);\n-\tuint32_t mur = NFP_CPP_ID(target, 3, 0);\t/* atomic_read */\n+\tuint32_t mur = NFP_CPP_ID(target, 3, 0);    /* atomic_read */\n \n \t/* Look for cached mutex */\n \tfor (mutex = cpp->mutex_cache; mutex; mutex = mutex->next) {\n@@ -231,12 +231,15 @@ nfp_cpp_mutex_lock(struct nfp_cpp_mutex *mutex)\n \t\t/* If err != -EBUSY, then the lock was damaged */\n \t\tif (err < 0 && err != -EBUSY)\n \t\t\treturn err;\n+\n \t\tif (time(NULL) >= warn_at) {\n \t\t\tPMD_DRV_LOG(WARNING, \"Waiting for NFP mutex...\");\n \t\t\twarn_at = time(NULL) + 60;\n \t\t}\n+\n \t\tsched_yield();\n \t}\n+\n \treturn 0;\n }\n \n@@ -257,8 +260,8 @@ nfp_cpp_mutex_unlock(struct nfp_cpp_mutex *mutex)\n \tuint32_t value;\n \tstruct nfp_cpp *cpp = mutex->cpp;\n \tuint16_t interface = nfp_cpp_interface(cpp);\n-\tuint32_t muw = NFP_CPP_ID(mutex->target, 4, 0);\t/* atomic_write */\n-\tuint32_t mur = NFP_CPP_ID(mutex->target, 3, 0);\t/* atomic_read */\n+\tuint32_t muw = NFP_CPP_ID(mutex->target, 4, 0);    /* atomic_write */\n+\tuint32_t mur = NFP_CPP_ID(mutex->target, 3, 0);    /* atomic_read */\n \n \tif (mutex->depth > 1) {\n \t\tmutex->depth--;\n@@ -314,9 +317,9 @@ nfp_cpp_mutex_trylock(struct nfp_cpp_mutex *mutex)\n \tuint32_t tmp;\n \tuint32_t value;\n \tstruct nfp_cpp *cpp = mutex->cpp;\n-\tuint32_t mur = NFP_CPP_ID(mutex->target, 3, 0);\t/* atomic_read */\n-\tuint32_t muw = NFP_CPP_ID(mutex->target, 4, 0);\t/* atomic_write */\n-\tuint32_t mus = NFP_CPP_ID(mutex->target, 5, 3);\t/* test_set_imm */\n+\tuint32_t mur = NFP_CPP_ID(mutex->target, 3, 0);    /* atomic_read */\n+\tuint32_t muw = NFP_CPP_ID(mutex->target, 4, 0);    /* atomic_write */\n+\tuint32_t mus = NFP_CPP_ID(mutex->target, 5, 3);    /* test_set_imm */\n \n \tif (mutex->depth > 0) {\n \t\tif (mutex->depth == MUTEX_DEPTH_MAX)\ndiff --git a/drivers/net/nfp/nfpcore/nfp_nffw.c b/drivers/net/nfp/nfpcore/nfp_nffw.c\nindex a635239b30..b14a9bd852 100644\n--- a/drivers/net/nfp/nfpcore/nfp_nffw.c\n+++ b/drivers/net/nfp/nfpcore/nfp_nffw.c\n@@ -61,10 +61,10 @@ nffw_fwinfo_mip_offset_get(const struct nffw_fwinfo *fi)\n \treturn (mip_off_hi & 0xFF) << 32 | fi->mip_offset_lo;\n }\n \n-#define NFP_IMB_TGTADDRESSMODECFG_MODE_of(_x)\t\t(((_x) >> 13) & 0x7)\n-#define NFP_IMB_TGTADDRESSMODECFG_ADDRMODE\t\tRTE_BIT32(12)\n-#define   NFP_IMB_TGTADDRESSMODECFG_ADDRMODE_32_BIT\t0\n-#define   NFP_IMB_TGTADDRESSMODECFG_ADDRMODE_40_BIT\tRTE_BIT32(12)\n+#define NFP_IMB_TGTADDRESSMODECFG_MODE_of(_x)           (((_x) >> 13) & 0x7)\n+#define NFP_IMB_TGTADDRESSMODECFG_ADDRMODE              RTE_BIT32(12)\n+#define   NFP_IMB_TGTADDRESSMODECFG_ADDRMODE_32_BIT     0\n+#define   NFP_IMB_TGTADDRESSMODECFG_ADDRMODE_40_BIT     RTE_BIT32(12)\n \n static int\n nfp_mip_mu_locality_lsb(struct nfp_cpp *cpp)\ndiff --git a/drivers/net/nfp/nfpcore/nfp_nsp.c b/drivers/net/nfp/nfpcore/nfp_nsp.c\nindex dd2d19936d..9bb344aa5f 100644\n--- a/drivers/net/nfp/nfpcore/nfp_nsp.c\n+++ b/drivers/net/nfp/nfpcore/nfp_nsp.c\n@@ -290,6 +290,7 @@ nfp_nsp_command(struct nfp_nsp *state,\n \terr = nfp_cpp_readq(cpp, nsp_cpp, nsp_command, &ret_val);\n \tif (err < 0)\n \t\treturn err;\n+\n \tret_val = FIELD_GET(NSP_COMMAND_OPTION, ret_val);\n \n \terr = FIELD_GET(NSP_STATUS_RESULT, reg);\n@@ -354,6 +355,7 @@ nfp_nsp_command_buf(struct nfp_nsp *nsp,\n \t\tif (err < 0)\n \t\t\treturn err;\n \t}\n+\n \t/* Zero out remaining part of the buffer */\n \tif (out_buf != NULL && out_size > 0 && out_size > in_size) {\n \t\tmemset(out_buf, 0, out_size - in_size);\n@@ -400,6 +402,7 @@ nfp_nsp_wait(struct nfp_nsp *state)\n \t\t\tbreak;\n \t\t}\n \t}\n+\n \tif (err != 0)\n \t\tPMD_DRV_LOG(ERR, \"NSP failed to respond %d\", err);\n \ndiff --git a/drivers/net/nfp/nfpcore/nfp_nsp.h b/drivers/net/nfp/nfpcore/nfp_nsp.h\nindex 0fcb21e99c..ee58bf33b8 100644\n--- a/drivers/net/nfp/nfpcore/nfp_nsp.h\n+++ b/drivers/net/nfp/nfpcore/nfp_nsp.h\n@@ -10,73 +10,72 @@\n #include \"nfp_nsp.h\"\n \n #define GENMASK_ULL(h, l) \\\n-\t(((~0ULL) - (1ULL << (l)) + 1) & \\\n-\t (~0ULL >> (64 - 1 - (h))))\n+\t(((~0ULL) - (1ULL << (l)) + 1) & (~0ULL >> (64 - 1 - (h))))\n \n #define __bf_shf(x) (__builtin_ffsll(x) - 1)\n \n-#define FIELD_GET(_mask, _reg)\t\\\n+#define FIELD_GET(_mask, _reg) \\\n \t(__extension__ ({ \\\n \t\ttypeof(_mask) _x = (_mask); \\\n-\t\t(typeof(_x))(((_reg) & (_x)) >> __bf_shf(_x));\t\\\n+\t\t(typeof(_x))(((_reg) & (_x)) >> __bf_shf(_x)); \\\n \t}))\n \n-#define FIELD_FIT(_mask, _val)\t\t\t\t\t\t\\\n+#define FIELD_FIT(_mask, _val) \\\n \t(__extension__ ({ \\\n \t\ttypeof(_mask) _x = (_mask); \\\n \t\t!((((typeof(_x))_val) << __bf_shf(_x)) & ~(_x)); \\\n \t}))\n \n-#define FIELD_PREP(_mask, _val)\t\t\t\t\t\t\\\n+#define FIELD_PREP(_mask, _val) \\\n \t(__extension__ ({ \\\n \t\ttypeof(_mask) _x = (_mask); \\\n-\t\t((typeof(_x))(_val) << __bf_shf(_x)) & (_x);\t\\\n+\t\t((typeof(_x))(_val) << __bf_shf(_x)) & (_x); \\\n \t}))\n \n /* Offsets relative to the CSR base */\n-#define NSP_STATUS\t\t0x00\n-#define   NSP_STATUS_MAGIC\tGENMASK_ULL(63, 48)\n-#define   NSP_STATUS_MAJOR\tGENMASK_ULL(47, 44)\n-#define   NSP_STATUS_MINOR\tGENMASK_ULL(43, 32)\n-#define   NSP_STATUS_CODE\tGENMASK_ULL(31, 16)\n-#define   NSP_STATUS_RESULT\tGENMASK_ULL(15, 8)\n-#define   NSP_STATUS_BUSY\tRTE_BIT64(0)\n-\n-#define NSP_COMMAND\t\t0x08\n-#define   NSP_COMMAND_OPTION\tGENMASK_ULL(63, 32)\n-#define   NSP_COMMAND_CODE\tGENMASK_ULL(31, 16)\n-#define   NSP_COMMAND_START\tRTE_BIT64(0)\n+#define NSP_STATUS              0x00\n+#define   NSP_STATUS_MAGIC      GENMASK_ULL(63, 48)\n+#define   NSP_STATUS_MAJOR      GENMASK_ULL(47, 44)\n+#define   NSP_STATUS_MINOR      GENMASK_ULL(43, 32)\n+#define   NSP_STATUS_CODE       GENMASK_ULL(31, 16)\n+#define   NSP_STATUS_RESULT     GENMASK_ULL(15, 8)\n+#define   NSP_STATUS_BUSY       RTE_BIT64(0)\n+\n+#define NSP_COMMAND             0x08\n+#define   NSP_COMMAND_OPTION    GENMASK_ULL(63, 32)\n+#define   NSP_COMMAND_CODE      GENMASK_ULL(31, 16)\n+#define   NSP_COMMAND_START     RTE_BIT64(0)\n \n /* CPP address to retrieve the data from */\n-#define NSP_BUFFER\t\t0x10\n-#define   NSP_BUFFER_CPP\tGENMASK_ULL(63, 40)\n-#define   NSP_BUFFER_PCIE\tGENMASK_ULL(39, 38)\n-#define   NSP_BUFFER_ADDRESS\tGENMASK_ULL(37, 0)\n+#define NSP_BUFFER              0x10\n+#define   NSP_BUFFER_CPP        GENMASK_ULL(63, 40)\n+#define   NSP_BUFFER_PCIE       GENMASK_ULL(39, 38)\n+#define   NSP_BUFFER_ADDRESS    GENMASK_ULL(37, 0)\n \n-#define NSP_DFLT_BUFFER\t\t0x18\n+#define NSP_DFLT_BUFFER         0x18\n \n-#define NSP_DFLT_BUFFER_CONFIG\t0x20\n-#define   NSP_DFLT_BUFFER_SIZE_MB\tGENMASK_ULL(7, 0)\n+#define NSP_DFLT_BUFFER_CONFIG 0x20\n+#define   NSP_DFLT_BUFFER_SIZE_MB    GENMASK_ULL(7, 0)\n \n-#define NSP_MAGIC\t\t0xab10\n-#define NSP_MAJOR\t\t0\n-#define NSP_MINOR\t\t8\n+#define NSP_MAGIC               0xab10\n+#define NSP_MAJOR               0\n+#define NSP_MINOR               8\n \n-#define NSP_CODE_MAJOR\t\tGENMASK(15, 12)\n-#define NSP_CODE_MINOR\t\tGENMASK(11, 0)\n+#define NSP_CODE_MAJOR          GENMASK(15, 12)\n+#define NSP_CODE_MINOR          GENMASK(11, 0)\n \n enum nfp_nsp_cmd {\n-\tSPCODE_NOOP\t\t= 0, /* No operation */\n-\tSPCODE_SOFT_RESET\t= 1, /* Soft reset the NFP */\n-\tSPCODE_FW_DEFAULT\t= 2, /* Load default (UNDI) FW */\n-\tSPCODE_PHY_INIT\t\t= 3, /* Initialize the PHY */\n-\tSPCODE_MAC_INIT\t\t= 4, /* Initialize the MAC */\n-\tSPCODE_PHY_RXADAPT\t= 5, /* Re-run PHY RX Adaptation */\n-\tSPCODE_FW_LOAD\t\t= 6, /* Load fw from buffer, len in option */\n-\tSPCODE_ETH_RESCAN\t= 7, /* Rescan ETHs, write ETH_TABLE to buf */\n-\tSPCODE_ETH_CONTROL\t= 8, /* Update media config from buffer */\n-\tSPCODE_NSP_SENSORS\t= 12, /* Read NSP sensor(s) */\n-\tSPCODE_NSP_IDENTIFY\t= 13, /* Read NSP version */\n+\tSPCODE_NOOP             = 0, /* No operation */\n+\tSPCODE_SOFT_RESET       = 1, /* Soft reset the NFP */\n+\tSPCODE_FW_DEFAULT       = 2, /* Load default (UNDI) FW */\n+\tSPCODE_PHY_INIT         = 3, /* Initialize the PHY */\n+\tSPCODE_MAC_INIT         = 4, /* Initialize the MAC */\n+\tSPCODE_PHY_RXADAPT      = 5, /* Re-run PHY RX Adaptation */\n+\tSPCODE_FW_LOAD          = 6, /* Load fw from buffer, len in option */\n+\tSPCODE_ETH_RESCAN       = 7, /* Rescan ETHs, write ETH_TABLE to buf */\n+\tSPCODE_ETH_CONTROL      = 8, /* Update media config from buffer */\n+\tSPCODE_NSP_SENSORS      = 12, /* Read NSP sensor(s) */\n+\tSPCODE_NSP_IDENTIFY     = 13, /* Read NSP version */\n };\n \n static const struct {\n@@ -123,13 +122,13 @@ nfp_nsp_has_mac_reinit(struct nfp_nsp *state)\n }\n \n enum nfp_eth_interface {\n-\tNFP_INTERFACE_NONE\t= 0,\n-\tNFP_INTERFACE_SFP\t= 1,\n-\tNFP_INTERFACE_SFPP\t= 10,\n-\tNFP_INTERFACE_SFP28\t= 28,\n-\tNFP_INTERFACE_QSFP\t= 40,\n-\tNFP_INTERFACE_CXP\t= 100,\n-\tNFP_INTERFACE_QSFP28\t= 112,\n+\tNFP_INTERFACE_NONE      = 0,\n+\tNFP_INTERFACE_SFP       = 1,\n+\tNFP_INTERFACE_SFPP      = 10,\n+\tNFP_INTERFACE_SFP28     = 28,\n+\tNFP_INTERFACE_QSFP      = 40,\n+\tNFP_INTERFACE_CXP       = 100,\n+\tNFP_INTERFACE_QSFP28    = 112,\n };\n \n enum nfp_eth_media {\n@@ -153,10 +152,10 @@ enum nfp_eth_fec {\n \tNFP_FEC_DISABLED_BIT,\n };\n \n-#define NFP_FEC_AUTO\t\tRTE_BIT32(NFP_FEC_AUTO_BIT)\n-#define NFP_FEC_BASER\t\tRTE_BIT32(NFP_FEC_BASER_BIT)\n-#define NFP_FEC_REED_SOLOMON\tRTE_BIT32(NFP_FEC_REED_SOLOMON_BIT)\n-#define NFP_FEC_DISABLED\tRTE_BIT32(NFP_FEC_DISABLED_BIT)\n+#define NFP_FEC_AUTO            RTE_BIT32(NFP_FEC_AUTO_BIT)\n+#define NFP_FEC_BASER           RTE_BIT32(NFP_FEC_BASER_BIT)\n+#define NFP_FEC_REED_SOLOMON    RTE_BIT32(NFP_FEC_REED_SOLOMON_BIT)\n+#define NFP_FEC_DISABLED        RTE_BIT32(NFP_FEC_DISABLED_BIT)\n \n /* ETH table information */\n struct nfp_eth_table {\ndiff --git a/drivers/net/nfp/nfpcore/nfp_nsp_cmds.c b/drivers/net/nfp/nfpcore/nfp_nsp_cmds.c\nindex 54e1e2215d..08f12f862c 100644\n--- a/drivers/net/nfp/nfpcore/nfp_nsp_cmds.c\n+++ b/drivers/net/nfp/nfpcore/nfp_nsp_cmds.c\n@@ -105,5 +105,6 @@ nfp_hwmon_read_sensor(struct nfp_cpp *cpp,\n \tdefault:\n \t\treturn -EINVAL;\n \t}\n+\n \treturn 0;\n }\ndiff --git a/drivers/net/nfp/nfpcore/nfp_nsp_eth.c b/drivers/net/nfp/nfpcore/nfp_nsp_eth.c\nindex 1906fcd385..837c9c6bbd 100644\n--- a/drivers/net/nfp/nfpcore/nfp_nsp_eth.c\n+++ b/drivers/net/nfp/nfpcore/nfp_nsp_eth.c\n@@ -11,70 +11,68 @@\n #include \"nfp_nsp.h\"\n #include \"nfp6000/nfp6000.h\"\n \n-#define NSP_ETH_NBI_PORT_COUNT\t\t24\n-#define NSP_ETH_MAX_COUNT\t\t(2 * NSP_ETH_NBI_PORT_COUNT)\n-#define NSP_ETH_TABLE_SIZE\t\t(NSP_ETH_MAX_COUNT *\t\t\\\n-\t\t\t\t\t sizeof(union eth_table_entry))\n-\n-#define NSP_ETH_PORT_LANES\t\tGENMASK_ULL(3, 0)\n-#define NSP_ETH_PORT_INDEX\t\tGENMASK_ULL(15, 8)\n-#define NSP_ETH_PORT_LABEL\t\tGENMASK_ULL(53, 48)\n-#define NSP_ETH_PORT_PHYLABEL\t\tGENMASK_ULL(59, 54)\n-#define NSP_ETH_PORT_FEC_SUPP_BASER\tRTE_BIT64(60)\n-#define NSP_ETH_PORT_FEC_SUPP_RS\tRTE_BIT64(61)\n-\n-#define NSP_ETH_PORT_LANES_MASK\t\trte_cpu_to_le_64(NSP_ETH_PORT_LANES)\n-\n-#define NSP_ETH_STATE_CONFIGURED\tRTE_BIT64(0)\n-#define NSP_ETH_STATE_ENABLED\t\tRTE_BIT64(1)\n-#define NSP_ETH_STATE_TX_ENABLED\tRTE_BIT64(2)\n-#define NSP_ETH_STATE_RX_ENABLED\tRTE_BIT64(3)\n-#define NSP_ETH_STATE_RATE\t\tGENMASK_ULL(11, 8)\n-#define NSP_ETH_STATE_INTERFACE\t\tGENMASK_ULL(19, 12)\n-#define NSP_ETH_STATE_MEDIA\t\tGENMASK_ULL(21, 20)\n-#define NSP_ETH_STATE_OVRD_CHNG\t\tRTE_BIT64(22)\n-#define NSP_ETH_STATE_ANEG\t\tGENMASK_ULL(25, 23)\n-#define NSP_ETH_STATE_FEC\t\tGENMASK_ULL(27, 26)\n-\n-#define NSP_ETH_CTRL_CONFIGURED\t\tRTE_BIT64(0)\n-#define NSP_ETH_CTRL_ENABLED\t\tRTE_BIT64(1)\n-#define NSP_ETH_CTRL_TX_ENABLED\t\tRTE_BIT64(2)\n-#define NSP_ETH_CTRL_RX_ENABLED\t\tRTE_BIT64(3)\n-#define NSP_ETH_CTRL_SET_RATE\t\tRTE_BIT64(4)\n-#define NSP_ETH_CTRL_SET_LANES\t\tRTE_BIT64(5)\n-#define NSP_ETH_CTRL_SET_ANEG\t\tRTE_BIT64(6)\n-#define NSP_ETH_CTRL_SET_FEC\t\tRTE_BIT64(7)\n+#define NSP_ETH_NBI_PORT_COUNT          24\n+#define NSP_ETH_MAX_COUNT               (2 * NSP_ETH_NBI_PORT_COUNT)\n+#define NSP_ETH_TABLE_SIZE              (NSP_ETH_MAX_COUNT * sizeof(union eth_table_entry))\n+\n+#define NSP_ETH_PORT_LANES              GENMASK_ULL(3, 0)\n+#define NSP_ETH_PORT_INDEX              GENMASK_ULL(15, 8)\n+#define NSP_ETH_PORT_LABEL              GENMASK_ULL(53, 48)\n+#define NSP_ETH_PORT_PHYLABEL           GENMASK_ULL(59, 54)\n+#define NSP_ETH_PORT_FEC_SUPP_BASER     RTE_BIT64(60)\n+#define NSP_ETH_PORT_FEC_SUPP_RS        RTE_BIT64(61)\n+\n+#define NSP_ETH_PORT_LANES_MASK         rte_cpu_to_le_64(NSP_ETH_PORT_LANES)\n+\n+#define NSP_ETH_STATE_CONFIGURED        RTE_BIT64(0)\n+#define NSP_ETH_STATE_ENABLED           RTE_BIT64(1)\n+#define NSP_ETH_STATE_TX_ENABLED        RTE_BIT64(2)\n+#define NSP_ETH_STATE_RX_ENABLED        RTE_BIT64(3)\n+#define NSP_ETH_STATE_RATE              GENMASK_ULL(11, 8)\n+#define NSP_ETH_STATE_INTERFACE         GENMASK_ULL(19, 12)\n+#define NSP_ETH_STATE_MEDIA             GENMASK_ULL(21, 20)\n+#define NSP_ETH_STATE_OVRD_CHNG         RTE_BIT64(22)\n+#define NSP_ETH_STATE_ANEG              GENMASK_ULL(25, 23)\n+#define NSP_ETH_STATE_FEC               GENMASK_ULL(27, 26)\n+\n+#define NSP_ETH_CTRL_CONFIGURED         RTE_BIT64(0)\n+#define NSP_ETH_CTRL_ENABLED            RTE_BIT64(1)\n+#define NSP_ETH_CTRL_TX_ENABLED         RTE_BIT64(2)\n+#define NSP_ETH_CTRL_RX_ENABLED         RTE_BIT64(3)\n+#define NSP_ETH_CTRL_SET_RATE           RTE_BIT64(4)\n+#define NSP_ETH_CTRL_SET_LANES          RTE_BIT64(5)\n+#define NSP_ETH_CTRL_SET_ANEG           RTE_BIT64(6)\n+#define NSP_ETH_CTRL_SET_FEC            RTE_BIT64(7)\n \n /* Which connector port. */\n-#define PORT_TP\t\t\t0x00\n-#define PORT_AUI\t\t0x01\n-#define PORT_MII\t\t0x02\n-#define PORT_FIBRE\t\t0x03\n-#define PORT_BNC\t\t0x04\n-#define PORT_DA\t\t\t0x05\n-#define PORT_NONE\t\t0xef\n-#define PORT_OTHER\t\t0xff\n-\n-#define SPEED_10\t\t10\n-#define SPEED_100\t\t100\n-#define SPEED_1000\t\t1000\n-#define SPEED_2500\t\t2500\n-#define SPEED_5000\t\t5000\n-#define SPEED_10000\t\t10000\n-#define SPEED_14000\t\t14000\n-#define SPEED_20000\t\t20000\n-#define SPEED_25000\t\t25000\n-#define SPEED_40000\t\t40000\n-#define SPEED_50000\t\t50000\n-#define SPEED_56000\t\t56000\n-#define SPEED_100000\t\t100000\n+#define PORT_TP                 0x00\n+#define PORT_AUI                0x01\n+#define PORT_MII                0x02\n+#define PORT_FIBRE              0x03\n+#define PORT_BNC                0x04\n+#define PORT_DA                 0x05\n+#define PORT_NONE               0xef\n+#define PORT_OTHER              0xff\n+\n+#define SPEED_10                10\n+#define SPEED_100               100\n+#define SPEED_1000              1000\n+#define SPEED_2500              2500\n+#define SPEED_5000              5000\n+#define SPEED_10000             10000\n+#define SPEED_14000             14000\n+#define SPEED_20000             20000\n+#define SPEED_25000             25000\n+#define SPEED_40000             40000\n+#define SPEED_50000             50000\n+#define SPEED_56000             56000\n+#define SPEED_100000            100000\n \n enum nfp_eth_raw {\n \tNSP_ETH_RAW_PORT = 0,\n \tNSP_ETH_RAW_STATE,\n \tNSP_ETH_RAW_MAC,\n \tNSP_ETH_RAW_CONTROL,\n-\n \tNSP_ETH_NUM_RAW\n };\n \n@@ -102,12 +100,12 @@ static const struct {\n \tenum nfp_eth_rate rate;\n \tuint32_t speed;\n } nsp_eth_rate_tbl[] = {\n-\t{ RATE_INVALID,\t0, },\n-\t{ RATE_10M,\tSPEED_10, },\n-\t{ RATE_100M,\tSPEED_100, },\n-\t{ RATE_1G,\tSPEED_1000, },\n-\t{ RATE_10G,\tSPEED_10000, },\n-\t{ RATE_25G,\tSPEED_25000, },\n+\t{ RATE_INVALID, 0, },\n+\t{ RATE_10M,     SPEED_10, },\n+\t{ RATE_100M,    SPEED_100, },\n+\t{ RATE_1G,      SPEED_1000, },\n+\t{ RATE_10G,     SPEED_10000, },\n+\t{ RATE_25G,     SPEED_25000, },\n };\n \n static uint32_t\n@@ -211,10 +209,12 @@ nfp_eth_calc_port_geometry(struct nfp_eth_table *table)\n \t\t\tif (table->ports[i].label_port !=\n \t\t\t\t\ttable->ports[j].label_port)\n \t\t\t\tcontinue;\n+\n \t\t\ttable->ports[i].port_lanes += table->ports[j].lanes;\n \n \t\t\tif (i == j)\n \t\t\t\tcontinue;\n+\n \t\t\tif (table->ports[i].label_subport ==\n \t\t\t\t\ttable->ports[j].label_subport)\n \t\t\t\tPMD_DRV_LOG(DEBUG, \"Port %d subport %d is a duplicate\",\n@@ -552,11 +552,11 @@ nfp_eth_set_bit_config(struct nfp_nsp *nsp,\n \treturn 0;\n }\n \n-#define NFP_ETH_SET_BIT_CONFIG(nsp, raw_idx, mask, val, ctrl_bit)\t\\\n-\t(__extension__ ({ \\\n-\t\ttypeof(mask) _x = (mask); \\\n+#define NFP_ETH_SET_BIT_CONFIG(nsp, raw_idx, mask, val, ctrl_bit)      \\\n+\t(__extension__ ({                                              \\\n+\t\ttypeof(mask) _x = (mask);                              \\\n \t\tnfp_eth_set_bit_config(nsp, raw_idx, _x, __bf_shf(_x), \\\n-\t\t\t\tval, ctrl_bit);\t\t\t\\\n+\t\t\t\tval, ctrl_bit);                        \\\n \t}))\n \n /**\ndiff --git a/drivers/net/nfp/nfpcore/nfp_resource.c b/drivers/net/nfp/nfpcore/nfp_resource.c\nindex 8ba3784f8a..e7e232eb4e 100644\n--- a/drivers/net/nfp/nfpcore/nfp_resource.c\n+++ b/drivers/net/nfp/nfpcore/nfp_resource.c\n@@ -13,14 +13,14 @@\n #include \"nfp_resource.h\"\n #include \"nfp_crc.h\"\n \n-#define NFP_RESOURCE_TBL_TARGET\t\tNFP_CPP_TARGET_MU\n-#define NFP_RESOURCE_TBL_BASE\t\t0x8100000000ULL\n+#define NFP_RESOURCE_TBL_TARGET         NFP_CPP_TARGET_MU\n+#define NFP_RESOURCE_TBL_BASE           0x8100000000ULL\n \n /* NFP Resource Table self-identifier */\n-#define NFP_RESOURCE_TBL_NAME\t\t\"nfp.res\"\n-#define NFP_RESOURCE_TBL_KEY\t\t0x00000000 /* Special key for entry 0 */\n+#define NFP_RESOURCE_TBL_NAME           \"nfp.res\"\n+#define NFP_RESOURCE_TBL_KEY            0x00000000 /* Special key for entry 0 */\n \n-#define NFP_RESOURCE_ENTRY_NAME_SZ\t8\n+#define NFP_RESOURCE_ENTRY_NAME_SZ      8\n \n /* Resource table entry */\n struct nfp_resource_entry {\n@@ -42,9 +42,9 @@ struct nfp_resource_entry {\n \t} region;\n };\n \n-#define NFP_RESOURCE_TBL_SIZE\t\t4096\n-#define NFP_RESOURCE_TBL_ENTRIES\t(int)(NFP_RESOURCE_TBL_SIZE /\t\\\n-\t\t\t\t\t sizeof(struct nfp_resource_entry))\n+#define NFP_RESOURCE_TBL_SIZE       4096\n+#define NFP_RESOURCE_TBL_ENTRIES    (int)(NFP_RESOURCE_TBL_SIZE /        \\\n+\t\t\t\t\tsizeof(struct nfp_resource_entry))\n \n struct nfp_resource {\n \tchar name[NFP_RESOURCE_ENTRY_NAME_SZ + 1];\n@@ -75,6 +75,7 @@ nfp_cpp_resource_find(struct nfp_cpp *cpp,\n \t\tPMD_DRV_LOG(ERR, \"Grabbing device lock not supported\");\n \t\treturn -EOPNOTSUPP;\n \t}\n+\n \tkey = nfp_crc32_posix(name_pad, NFP_RESOURCE_ENTRY_NAME_SZ);\n \n \tfor (i = 0; i < NFP_RESOURCE_TBL_ENTRIES; i++) {\n@@ -96,6 +97,7 @@ nfp_cpp_resource_find(struct nfp_cpp *cpp,\n \t\t\t\tentry.region.cpp_token);\n \t\tres->addr = ((uint64_t)entry.region.page_offset) << 8;\n \t\tres->size = (uint64_t)entry.region.page_size << 8;\n+\n \t\treturn 0;\n \t}\n \ndiff --git a/drivers/net/nfp/nfpcore/nfp_rtsym.c b/drivers/net/nfp/nfpcore/nfp_rtsym.c\nindex 0e6c0f9fe1..37811ceaeb 100644\n--- a/drivers/net/nfp/nfpcore/nfp_rtsym.c\n+++ b/drivers/net/nfp/nfpcore/nfp_rtsym.c\n@@ -17,18 +17,18 @@\n #include \"nfp6000/nfp6000.h\"\n \n /* These need to match the linker */\n-#define SYM_TGT_LMEM\t\t0\n-#define SYM_TGT_EMU_CACHE\t0x17\n+#define SYM_TGT_LMEM            0\n+#define SYM_TGT_EMU_CACHE       0x17\n \n struct nfp_rtsym_entry {\n-\tuint8_t\ttype;\n-\tuint8_t\ttarget;\n-\tuint8_t\tisland;\n-\tuint8_t\taddr_hi;\n+\tuint8_t type;\n+\tuint8_t target;\n+\tuint8_t island;\n+\tuint8_t addr_hi;\n \tuint32_t addr_lo;\n \tuint16_t name;\n-\tuint8_t\tmenum;\n-\tuint8_t\tsize_hi;\n+\tuint8_t menum;\n+\tuint8_t size_hi;\n \tuint32_t size_lo;\n };\n \ndiff --git a/drivers/net/nfp/nfpcore/nfp_rtsym.h b/drivers/net/nfp/nfpcore/nfp_rtsym.h\nindex ff1facbd17..de1966f04b 100644\n--- a/drivers/net/nfp/nfpcore/nfp_rtsym.h\n+++ b/drivers/net/nfp/nfpcore/nfp_rtsym.h\n@@ -57,4 +57,5 @@ uint64_t nfp_rtsym_read_le(struct nfp_rtsym_table *rtbl, const char *name,\n \t\tint *error);\n uint8_t *nfp_rtsym_map(struct nfp_rtsym_table *rtbl, const char *name,\n \t\tuint32_t min_size, struct nfp_cpp_area **area);\n+\n #endif\n",
    "prefixes": [
        "v2",
        "09/27"
    ]
}