Show a patch.

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

{
    "id": 74697,
    "url": "https://patches.dpdk.org/api/patches/74697/",
    "web_url": "https://patches.dpdk.org/patch/74697/",
    "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": "<20200723200910.376581-8-parav@mellanox.com>",
    "date": "2020-07-23T20:09:07",
    "name": "[v8,07/10] common/mlx5: change class values as bits",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a89d64b8baf686408d070a00a33f856952bf05cd",
    "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/74697/mbox/",
    "series": [
        {
            "id": 11259,
            "url": "https://patches.dpdk.org/api/series/11259/",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11259",
            "date": "2020-07-23T20:09:00",
            "name": "Improve mlx5 PMD driver framework for multiple classes",
            "version": 8,
            "mbox": "https://patches.dpdk.org/series/11259/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/74697/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/74697/checks/",
    "tags": {},
    "headers": {
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "Hosted",
        "X-Mailman-Version": "2.1.15",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "DB7PR05MB5558",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "X-MS-Exchange-CrossTenant-UserPrincipalName": "\n w+m5fxdw8JO5IzoWJItCR2zxq+nTgxJGuTxM0s0ewxGQghxvh5pfdzV7kgale8OpCk+tgTCnk0tq3K1x1tV/qw==",
        "Precedence": "list",
        "X-MS-Exchange-Transport-Forked": "True",
        "X-BeenThere": "dev@dpdk.org",
        "X-LD-Processed": "a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtFwd,ExtAddr",
        "X-ClientProxiedBy": "DM6PR03CA0009.namprd03.prod.outlook.com\n (2603:10b6:5:40::22) To DB7PR05MB4876.eurprd05.prod.outlook.com\n (2603:10a6:10:1d::32)",
        "Content-Transfer-Encoding": "8bit",
        "X-MS-Exchange-CrossTenant-AuthAs": "Internal",
        "X-MS-Exchange-AntiSpam-MessageData": "\n FR/zUmhrkmU91HH3emua20W5DWKtFzEBMq5lMDCwxavQqiVNFf5G7sDLykAmWSXS5nP5kpctE7lNFuo/uRb66eEFNAPS4et4Phk7REOpM5ERXt3PVFfwuofMgVKF+mbSOmuye3rcZW7eFCdit8KnUJtKLkpM7m6ZQ/8hClo1eiSBZZWovDWwA72E5vGds8U94QXkg/YcVziIoDZkALOZVRK2CZM7Tw56EegxNK+jK8AWTKKMKgJU49wVYcjUB75cUFE5ox8qgfVUWrz+23Qa45GbTLp9sfxkoNxiHBFpjXYdx3HXQiHl9dAXMVMuGIqhl3U5Ofop7QwtypJpPoG8PjaHcWrTyfbeyyqybzFaYhqQdaqSWj63LKch0K4AiWS96Q3bNa3LkmT2KqGOUF/CNeWg/zgAzmSr35fZ+7TSSfrF4taBPrKTldQduX6n9n6SsRk2UOat3gLssLM9m2aSSX34idg6HvS9dHlzhI0yGjbqNjh0f+GF2cmHwrkp/Fru",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 1C3CAA0518;\n\tThu, 23 Jul 2020 22:10:48 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id B9F121C07E;\n\tThu, 23 Jul 2020 22:09:49 +0200 (CEST)",
            "from EUR03-DB5-obe.outbound.protection.outlook.com\n (mail-eopbgr40071.outbound.protection.outlook.com [40.107.4.71])\n by dpdk.org (Postfix) with ESMTP id 45B341C038\n for <dev@dpdk.org>; Thu, 23 Jul 2020 22:09:43 +0200 (CEST)",
            "from DB7PR05MB4876.eurprd05.prod.outlook.com (2603:10a6:10:1d::32)\n by DB7PR05MB5558.eurprd05.prod.outlook.com (2603:10a6:10:5c::21) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.20; Thu, 23 Jul\n 2020 20:09:42 +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.3216.022; Thu, 23 Jul 2020\n 20:09:42 +0000",
            "from sw-mtx-036.mtx.labs.mlnx (208.176.44.194) by\n DM6PR03CA0009.namprd03.prod.outlook.com (2603:10b6:5:40::22) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.3216.21 via Frontend Transport; Thu, 23 Jul 2020 20:09:40 +0000"
        ],
        "Subject": "[dpdk-dev] [PATCH v8 07/10] common/mlx5: change class values as bits",
        "X-MS-PublicTrafficType": "Email",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Message-Id": "<20200723200910.376581-8-parav@mellanox.com>",
        "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=iDHLqTwUYU/7FPloKGlnwZSF3pDrjOjLBNLHPvDO9y4=;\n b=kPTMzAFYHEoI/maA6rllWdt95asvPPNVoKfA14YGopg/bik2a1Fp+c+xDRIF5be6Ra6HWgXLKOz3pbz4QJr53F/gqWdKYzguSJ4C0zo84AkZdY8EdoqQvGuiMrBnTnfTfbylfl8t5K4jPNoPXAEcRTwlsWON4UzqFujDjFL+D5U=",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "X-MS-Office365-Filtering-HT": "Tenant",
        "To": "dev@dpdk.org, grive@u256.net, ferruh.yigit@intel.com, thomas@monjalon.net",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "From": "Parav Pandit <parav@mellanox.com>",
        "X-MS-Exchange-CrossTenant-MailboxType": "HOSTED",
        "Cc": "rasland@mellanox.com, orika@mellanox.com, matan@mellanox.com,\n joyce.kong@arm.com, Parav Pandit <parav@mellanox.com>",
        "X-MS-Exchange-CrossTenant-AuthSource": "DB7PR05MB4876.eurprd05.prod.outlook.com",
        "X-MS-TrafficTypeDiagnostic": "DB7PR05MB5558:",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "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",
        "Authentication-Results": "dpdk.org; dkim=none (message not signed)\n header.d=none;dpdk.org; dmarc=none action=none header.from=mellanox.com;",
        "X-OriginatorOrg": "Mellanox.com",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "X-Microsoft-Antispam-PRVS": "\n <DB7PR05MB5558CFC429C1E9E892E42557D1760@DB7PR05MB5558.eurprd05.prod.outlook.com>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "MIME-Version": "1.0",
        "In-Reply-To": "<20200723200910.376581-1-parav@mellanox.com>",
        "X-MS-Exchange-MessageSentRepresentingType": "1",
        "References": "<20200610171728.89-2-parav@mellanox.com>\n <20200723200910.376581-1-parav@mellanox.com>",
        "Content-Type": "text/plain",
        "X-MS-Oob-TLC-OOBClassifiers": "OLM:1079;",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-Originating-IP": "[208.176.44.194]",
        "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)(376002)(346002)(366004)(396003)(136003)(39860400002)(6506007)(8676002)(8936002)(26005)(52116002)(2906002)(4326008)(478600001)(66946007)(66476007)(66556008)(83380400001)(36756003)(5660300002)(2616005)(6486002)(86362001)(956004)(1076003)(6512007)(6666004)(107886003)(186003)(16526019)(316002);\n DIR:OUT; SFP:1101;",
        "X-Mailer": [
            "git-send-email 2.26.2",
            "git-send-email 2.26.2"
        ],
        "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=iDHLqTwUYU/7FPloKGlnwZSF3pDrjOjLBNLHPvDO9y4=;\n b=BeKetGWAI8vtvt0p0OBRFmIiUqqfyMxHX/Zo/d899hqfXHJmd4NeVppxCsx/FaQUyv4NZsT3FZIB0PD2aY/4cu3Zk7eFkDet1iJ+posXt28DgzQWNCauokTQNYrBI22+JU4D8vBVuDrK3N3t0/qOGNChQTh4+A9Fl0PF9MldiyNFN2m3X2XF4SlP4hZ0cdBsIu5t0y+X2RLjavfwOwL42IBn5B8lii7dDqzjB0mlC1xjK9lBKERGfZqwD+gBF/wY8GnTJyfg1C6eqOUatCC08EffDc/7jx1zIj4M2M+8Sc/3JSc4mW+HFyp3IYES4NpGo2LCdFJ2MnhPz9MxaWNLVQ==",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 718e695f-6ed1-49c5-8e09-08d82f4455cb",
        "Date": "Thu, 23 Jul 2020 23:09:07 +0300",
        "X-MS-Office365-Filtering-Correlation-Id": "718e695f-6ed1-49c5-8e09-08d82f4455cb",
        "X-Microsoft-Antispam-Message-Info": "\n GVIdlAdkWtYaVypuNm1LCwUi1fkU5DfuKDrW5DoiNYgRs91mhcPDQ+BN7A18r9+Nnw5GQL2HZ8LsvDAFSvFjCFwchNlLkKS4lGcxyVReQQ4uVQ8gPG9kSYAOFum56GNvJaNxXHTD97vgVCaQg0EfO48tWqUwhqx2dje85KBVNhpoN1GJSjkTRUoXXXk3iJttOe8ry8eQCUIIzcmzIFVX/8zv76kleAE55uu3kC+kfQ2HKU3hXEBYXR/HxjSPaZK8jxFZHfyj/sXayfajG1BvNw4td3QYW4B7bYTxhcQLi6NSdtH506eWKfUiFfbOZmRRIUIMig+Pxe4zPSi53JMp1Q==",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-CrossTenant-Id": "a652971c-7d2e-4d9b-a6a4-d149256f461b",
        "X-Microsoft-Antispam": "BCL:0;",
        "Errors-To": "dev-bounces@dpdk.org",
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=jqiM6irhxjjVHItgtW4v+TAWJsBmJCS8bnqG9RRPOmdfl9ppdz6ZfwZRZG247yAcAAxfAhwz+CKFPznTXAexFN6NqGXETlzyKWC2jpN3YiH7v8UiHR191kVspqZZvCvOT01vPBjyP1qI1EgTbe25Z7NGwXmp/ZTBbxJRsGxMedEqEib3cajzlGOoUPxSkpxRZKQjFYDKFpMstxMXPtK8gCoX9BiArJjGDbRyfnp5oynLz6pjzunTxYxqQcjoecIu5bevMkbODGUOxhUV1aW/bcpkX4fqUcb03rI3idLSuRf4Ff3F4YX264YAEG0r8vdELyW/Oufz/jnQNCQOHYibpw==",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "23 Jul 2020 20:09:41.9468 (UTC)"
    },
    "content": "mlx5 PCI Device supports multiple classes of devices such as net, vdpa,\nand/or regex.\nTo support these multiple classes, change mlx5_class to a\nbitmap values so that if users asks to enable multiple of them, all\nsupported classes can be parsed.\n\nSigned-off-by: Parav Pandit <parav@mellanox.com>\nAcked-by: Matan Azrad <matan@mellanox.com>\n---\n drivers/common/mlx5/mlx5_common.h | 7 ++++---\n 1 file changed, 4 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/common/mlx5/mlx5_common.h b/drivers/common/mlx5/mlx5_common.h\nindex ebe4e9ced..864e82ff0 100644\n--- a/drivers/common/mlx5/mlx5_common.h\n+++ b/drivers/common/mlx5/mlx5_common.h\n@@ -13,6 +13,7 @@\n #include <rte_log.h>\n #include <rte_kvargs.h>\n #include <rte_devargs.h>\n+#include <rte_bitops.h>\n \n #include \"mlx5_prm.h\"\n #include \"mlx5_devx_cmds.h\"\n@@ -208,10 +209,10 @@ int mlx5_get_ifname_sysfs(const char *ibdev_path, char *ifname);\n #define MLX5_CLASS_ARG_NAME \"class\"\n \n enum mlx5_class {\n-\tMLX5_CLASS_NET,\n-\tMLX5_CLASS_VDPA,\n-\tMLX5_CLASS_REGEX,\n \tMLX5_CLASS_INVALID,\n+\tMLX5_CLASS_NET = RTE_BIT64(0),\n+\tMLX5_CLASS_VDPA = RTE_BIT64(1),\n+\tMLX5_CLASS_REGEX = RTE_BIT64(2),\n };\n \n #define MLX5_DBR_SIZE RTE_CACHE_LINE_SIZE\n",
    "prefixes": [
        "v8",
        "07/10"
    ]
}