Show a patch.

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

{
    "id": 73583,
    "url": "https://patches.dpdk.org/api/patches/73583/",
    "web_url": "https://patches.dpdk.org/patch/73583/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<20200709073452.948894-2-parav@mellanox.com>",
    "date": "2020-07-09T07:34:44",
    "name": "[v5,1/9] eal: introduce macros for getting value for bit",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "51a75289158ccc2b587b0a933535897873bf1e02",
    "submitter": {
        "id": 1780,
        "url": "https://patches.dpdk.org/api/people/1780/",
        "name": "Parav Pandit",
        "email": "parav@mellanox.com"
    },
    "delegate": {
        "id": 3268,
        "url": "https://patches.dpdk.org/api/users/3268/",
        "username": "rasland",
        "first_name": "Raslan",
        "last_name": "Darawsheh",
        "email": "rasland@mellanox.com"
    },
    "mbox": "https://patches.dpdk.org/patch/73583/mbox/",
    "series": [
        {
            "id": 10912,
            "url": "https://patches.dpdk.org/api/series/10912/",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=10912",
            "date": "2020-07-09T07:34:43",
            "name": "Improve mlx5 PMD driver framework for multiple classes",
            "version": 5,
            "mbox": "https://patches.dpdk.org/series/10912/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/73583/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/73583/checks/",
    "tags": {},
    "headers": {
        "X-Mailman-Version": "2.1.15",
        "In-Reply-To": "<20200709073452.948894-1-parav@mellanox.com>",
        "X-MS-Exchange-CrossTenant-AuthSource": "DB7PR05MB4876.eurprd05.prod.outlook.com",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-Microsoft-Antispam-Message-Info": "\n idgvu0LLYXvrJ4iwuEUwRypKa7yMFIJ0Uhav/Zdm7XZRao6NOh1jKeAjIJ6+I7ip8zMmOpW6540LiecUOZSqb/hlAkoIJeC8zwQ/IMmkUmC41aX4gpp22fPU6nx/EVP+/uD7zA6JK6C0b7AQ+uzh+v63GByLSAWhUGFxTrbYqbax9FCytLg674tKrhepbyLgLnXoMlQU32bZnSRJv95EcLWUiXwOocqDgzSDO5docOlwCDh195lpfYnt9YyAxp2sIrrUDgGrFIHHI2QSqlunRzbZ/cgUFYKcksfoz+zXez8jB9ofpcTD5HCflMEQEMaJbo5hYaXstNcW6irkxn849w==",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 344E1A0526;\n\tThu,  9 Jul 2020 09:35:41 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 188041DC57;\n\tThu,  9 Jul 2020 09:35:41 +0200 (CEST)",
            "from EUR05-DB8-obe.outbound.protection.outlook.com\n (mail-db8eur05on2071.outbound.protection.outlook.com [40.107.20.71])\n by dpdk.org (Postfix) with ESMTP id DFD381DC56\n for <dev@dpdk.org>; Thu,  9 Jul 2020 09:35:39 +0200 (CEST)",
            "from DB7PR05MB4876.eurprd05.prod.outlook.com (2603:10a6:10:1d::32)\n by DBAPR05MB6936.eurprd05.prod.outlook.com (2603:10a6:10:18f::10) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.23; Thu, 9 Jul\n 2020 07:35:38 +0000",
            "from DB7PR05MB4876.eurprd05.prod.outlook.com\n ([fe80::8cb3:93cb:c3ef:4293]) by DB7PR05MB4876.eurprd05.prod.outlook.com\n ([fe80::8cb3:93cb:c3ef:4293%5]) with mapi id 15.20.3174.022; Thu, 9 Jul 2020\n 07:35:38 +0000",
            "from sw-mtx-036.mtx.labs.mlnx (208.176.44.194) by\n SN4PR0501CA0104.namprd05.prod.outlook.com (2603:10b6:803:42::21) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.9 via Frontend\n Transport; Thu, 9 Jul 2020 07:35:18 +0000"
        ],
        "References": "<20200610171728.89-2-parav@mellanox.com>\n <20200709073452.948894-1-parav@mellanox.com>",
        "X-MS-Office365-Filtering-Correlation-Id": "8ea3900b-bdb0-4efc-7ac8-08d823daa1bb",
        "MIME-Version": "1.0",
        "X-MS-Exchange-MessageSentRepresentingType": "1",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "09 Jul 2020 07:35:38.6397 (UTC)",
        "X-ClientProxiedBy": "SN4PR0501CA0104.namprd05.prod.outlook.com\n (2603:10b6:803:42::21) To DB7PR05MB4876.eurprd05.prod.outlook.com\n (2603:10a6:10:1d::32)",
        "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-SenderADCheck;\n bh=nhzR/Ix8+zn8zpqX1kSmulajUdj7gy1tamEBGjdwZEA=;\n b=WHCqbbGm43jH38kupEli7i8FWJi4rHH6xNftJk5Qnd9KZoHoDidGMdYuDkpjKFIx6x9ICAfahbulcaP5jiVntax7hZ8vXQLUMJazo0I+ngTAjNOYELgVJqKjtpOC9RqVvd90c3kniZ+e2CermdG5RhtgggkcqAnqicHV6l5cLxcytJiG9M/VFz1u86LEJkJLEP4C4YqNX6YxBOda8opGtnE0OCTvrkPgp9ttfNZWW77XaV7Xcn6GipuQCs8ktMsSuWmXtgvMwjCVwwJh448g6lpux3mVXTlwWYn//WqBo3fKYUiQhNbiolwxo9k0BXwSpZIU0+HW0P3hf4dWO/lV1g==",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "X-MS-Exchange-AntiSpam-MessageData": "\n JXS7c087OdVgVSgJ4uAUExF0je6Sggp0qtVWudREkfcYbs+SkaGfGQSdqtlXUrFW7jfEvvA/5phLZ8zN+rZbHWvQC17KdI1tRH8cMPo5rTej5280+43PvHPqusWDQBTj1Vj31wch9g+eYgj2ZJ95rfqouxaJR0KMZxLNOUOuMb599NGjfJuMulxAtWWueFiV8tBVLjZjVqBfcOKw77moSojhf7Xh8r12ioraWUCoKwccTUNHCpLuEZ32sDDm+OCZ1Y+SR79d/PENN1Cmk5BpDKWOhuH9Date0zJeUwMNbp0pF8NjvHlB31LacfoNDLwc4wK+TyWZqEjrzR44mCpw+ku/8FeqKnr/X28u7KvxSqOL1zn7zI3jqV4caix2z7TZXHZSf7gH5iRB7v0EMSWo3imbYFU7vd4olxxNBLQ150gAIuaqDHdWV5eqC7iV56v55Z65uVMCQntOy60sIGaFxi0xn0Cby6iR9vAgRf12ySpMPjicUjTXZ0KEo3EJC+xU",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Content-Type": "text/plain; charset=UTF-8",
        "X-MS-Exchange-Transport-Forked": "True",
        "X-Microsoft-Antispam": "BCL:0;",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-MS-Office365-Filtering-HT": "Tenant",
        "To": "dev@dpdk.org, grive@u256.net, ferruh.yigit@intel.com, thomas@monjalon.net",
        "X-MS-Oob-TLC-OOBClassifiers": "OLM:2449;",
        "X-LD-Processed": "a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtFwd,ExtAddr",
        "List-Post": "<mailto:dev@dpdk.org>",
        "X-Originating-IP": "[208.176.44.194]",
        "X-MS-TrafficTypeDiagnostic": "DBAPR05MB6936:",
        "Cc": "rasland@mellanox.com, orika@mellanox.com, matan@mellanox.com,\n joyce.kong@arm.com, Parav Pandit <parav@mellanox.com>, =?utf-8?q?Morten_Br?=\n\t=?utf-8?q?=C3=B8rup?= <mb@smartsharesystems.com>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Date": "Thu,  9 Jul 2020 10:34:44 +0300",
        "X-Microsoft-Antispam-PRVS": "\n <DBAPR05MB6936C9C41F9EA961068C53E7D1640@DBAPR05MB6936.eurprd05.prod.outlook.com>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass\n smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com;\n dkim=pass header.d=mellanox.com; arc=none",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "Hosted",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 8ea3900b-bdb0-4efc-7ac8-08d823daa1bb",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com;\n s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=nhzR/Ix8+zn8zpqX1kSmulajUdj7gy1tamEBGjdwZEA=;\n b=EDfVvzAQCosSGXANKg+HMr/PR4Z795udPslTomRaYP/W/4FJOxc0TaVe5PhY7RPHa8xAWdOH4QgCjVXI0+DDmBYbmdCvlpfXYinYdLqCzRvTZf5pFyz2b96x1vjZsIiig10wGZClm26PRmVy0MWP7pLgji33kgDVO88vDUhQVvo=",
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=m4lS0TUgA083PCrmUnNwlbT6pJn3oAjJONYSjdvHK6ci5V1UzTdfbhhDat9ZtG0CwuKsRFkdXu3AbNtDq6FeeBBaLKojORcxhiTboi1laSZuNBav2/QpB/baBWBdQgY9iBGP2IGnHW9W+Z4qeQ7cXIh5ZvOL09FqeO0eum9K30Wahe5J80hQ5SQBLzCBzWEt6dCAO83un0Meo6mLYp+eRuLAD8MKev9jL4rMbmHVv7qS59xOLNbiO2uaLEkz3xhFgCoP6ta6bRsfp/v+9xGRQXBrhhrBQHUD4eEvFBHnc0BptReC3A72au0bT9GlQGqlyZwCAjEGD02/sp2pb68MOg==",
        "Message-Id": "<20200709073452.948894-2-parav@mellanox.com>",
        "Authentication-Results": "dpdk.org; dkim=none (message not signed)\n header.d=none;dpdk.org; dmarc=none action=none header.from=mellanox.com;",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Content-Transfer-Encoding": "8bit",
        "From": "Parav Pandit <parav@mellanox.com>",
        "X-MS-Exchange-CrossTenant-AuthAs": "Internal",
        "X-Mailer": [
            "git-send-email 2.26.2",
            "git-send-email 2.26.2"
        ],
        "X-OriginatorOrg": "Mellanox.com",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "X-MS-Exchange-CrossTenant-Id": "a652971c-7d2e-4d9b-a6a4-d149256f461b",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-Exchange-CrossTenant-UserPrincipalName": "\n aT5eGiutWDc7fjt2nkl5R4IyiBu27RNpYY0tlUNkzcKhh883dMqvcrKXe/IG7CUWRxLTrpGJ21GQhR+pvOHMiw==",
        "Precedence": "list",
        "X-MS-Exchange-CrossTenant-MailboxType": "HOSTED",
        "X-Forefront-PRVS": "04599F3534",
        "X-BeenThere": "dev@dpdk.org",
        "Subject": "[dpdk-dev] [PATCH v5 1/9] eal: introduce macros for getting value\n\tfor bit",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "DBAPR05MB6936",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-Forefront-Antispam-Report": "CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:DB7PR05MB4876.eurprd05.prod.outlook.com; PTR:; CAT:NONE;\n SFTY:;\n SFS:(4636009)(366004)(136003)(396003)(39860400002)(346002)(376002)(66476007)(36756003)(4326008)(66556008)(1076003)(6486002)(6506007)(66946007)(6666004)(16526019)(186003)(26005)(52116002)(5660300002)(2906002)(478600001)(8936002)(8676002)(956004)(54906003)(2616005)(6512007)(86362001)(316002);\n DIR:OUT; SFP:1101;"
    },
    "content": "There are several drivers which duplicate bit generation macro.\nIntroduce a generic bit macros so that such drivers avoid redefining\nsame in multiple drivers.\n\nSigned-off-by: Parav Pandit <parav@mellanox.com>\nAcked-by: Matan Azrad <matan@mellanox.com>\nAcked-by: Morten Brørup <mb@smartsharesystems.com>\n---\nChangelog:\nv4->v5:\n - Addressed comments from Morten Brørup\n - Renamed newly added macro to RTE_BIT64\n - Added doxygen comment section for the macro\nv1->v2:\n - Addressed comments from Thomas and Gaten.\n - Avoided new file, added macro to rte_bitops.h\n---\n lib/librte_eal/include/rte_bitops.h | 8 ++++++++\n 1 file changed, 8 insertions(+)",
    "diff": "diff --git a/lib/librte_eal/include/rte_bitops.h b/lib/librte_eal/include/rte_bitops.h\nindex 740927f3b..ca46a110f 100644\n--- a/lib/librte_eal/include/rte_bitops.h\n+++ b/lib/librte_eal/include/rte_bitops.h\n@@ -17,6 +17,14 @@\n #include <rte_debug.h>\n #include <rte_compat.h>\n \n+/**\n+ * Get the uint64_t value for a specified bit set.\n+ *\n+ * @param nr\n+ *   The bit number in range of 0 to 63.\n+ */\n+#define RTE_BIT64(nr) (UINT64_C(1) << (nr))\n+\n /*------------------------ 32-bit relaxed operations ------------------------*/\n \n /**\n",
    "prefixes": [
        "v5",
        "1/9"
    ]
}