get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 85475,
    "url": "http://patches.dpdk.org/api/patches/85475/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1608304614-13908-9-git-send-email-xuemingl@nvidia.com/",
    "project": {
        "id": 1,
        "url": "http://patches.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": "<1608304614-13908-9-git-send-email-xuemingl@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1608304614-13908-9-git-send-email-xuemingl@nvidia.com",
    "date": "2020-12-18T15:16:53",
    "name": "[RFC,8/9] common/mlx5: support device global syntax",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "7a013723bd477377c1167649e6e89a25fe042232",
    "submitter": {
        "id": 1904,
        "url": "http://patches.dpdk.org/api/people/1904/?format=api",
        "name": "Xueming Li",
        "email": "xuemingl@nvidia.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1608304614-13908-9-git-send-email-xuemingl@nvidia.com/mbox/",
    "series": [
        {
            "id": 14378,
            "url": "http://patches.dpdk.org/api/series/14378/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=14378",
            "date": "2020-12-18T15:16:52",
            "name": "support global syntax",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/14378/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/85475/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/85475/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 3D837A09FD;\n\tFri, 18 Dec 2020 16:18:57 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 639FDCB7F;\n\tFri, 18 Dec 2020 16:17:20 +0100 (CET)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 4C2DACB03\n for <dev@dpdk.org>; Fri, 18 Dec 2020 16:17:10 +0100 (CET)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n xuemingl@nvidia.com) with SMTP; 18 Dec 2020 17:17:05 +0200",
            "from nvidia.com (pegasus05.mtr.labs.mlnx [10.210.16.100])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 0BIFH4qg010856;\n Fri, 18 Dec 2020 17:17:05 +0200"
        ],
        "From": "Xueming Li <xuemingl@nvidia.com>",
        "To": "Viacheslav Ovsiienko <viacheslavo@nvidia.com>,\n Thomas Monjalon <thomas@monjalon.net>,\n Ferruh Yigit <ferruh.yigit@intel.com>,\n Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>,\n Olivier Matz <olivier.matz@6wind.com>, Matan Azrad <matan@nvidia.com>",
        "Cc": "dev@dpdk.org, xuemingl@nvidia.com, Asaf Penso <asafp@nvidia.com>",
        "Date": "Fri, 18 Dec 2020 15:16:53 +0000",
        "Message-Id": "<1608304614-13908-9-git-send-email-xuemingl@nvidia.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1608304614-13908-1-git-send-email-xuemingl@nvidia.com>",
        "References": "<1608304614-13908-1-git-send-email-xuemingl@nvidia.com>",
        "Subject": "[dpdk-dev] [RFC 8/9] common/mlx5: support device global syntax",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "This patch support new device global syntax:\nbus=<bus>,k=v,,,/class=<cls>,k=v,,,/driver=<pmd>,k=v,,,,\n\nTo reuse class name of global syntax, this patch also changes internal\nclass name introduced by commit [1] to algin with RTE class name.\n\n[1]\n8a41f4deccc3: common/mlx5: introduce layer for multiple class drivers\n\nSigned-off-by: Xueming Li <xuemingl@nvidia.com>\n---\n drivers/common/mlx5/mlx5_common_pci.c | 6 +++++-\n 1 file changed, 5 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/common/mlx5/mlx5_common_pci.c b/drivers/common/mlx5/mlx5_common_pci.c\nindex 5208972bb6..b1eda7b3c8 100644\n--- a/drivers/common/mlx5/mlx5_common_pci.c\n+++ b/drivers/common/mlx5/mlx5_common_pci.c\n@@ -4,6 +4,7 @@\n \n #include <stdlib.h>\n #include <rte_malloc.h>\n+#include <rte_class.h>\n #include \"mlx5_common_utils.h\"\n #include \"mlx5_common_pci.h\"\n \n@@ -26,7 +27,7 @@ static const struct {\n \tunsigned int driver_class;\n } mlx5_classes[] = {\n \t{ .name = \"vdpa\", .driver_class = MLX5_CLASS_VDPA },\n-\t{ .name = \"net\", .driver_class = MLX5_CLASS_NET },\n+\t{ .name = \"eth\", .driver_class = MLX5_CLASS_NET },\n \t{ .name = \"regex\", .driver_class = MLX5_CLASS_REGEX },\n };\n \n@@ -115,6 +116,9 @@ parse_class_options(const struct rte_devargs *devargs)\n \n \tif (devargs == NULL)\n \t\treturn 0;\n+\tif (devargs->cls)\n+\t\t/* support new global syntax */\n+\t\treturn class_name_to_value(devargs->cls->name);\n \tkvlist = rte_kvargs_parse(devargs->args, NULL);\n \tif (kvlist == NULL)\n \t\treturn 0;\n",
    "prefixes": [
        "RFC",
        "8/9"
    ]
}