get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 113885,
    "url": "http://patches.dpdk.org/api/patches/113885/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220709082644.664675-30-david.marchand@redhat.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": "<20220709082644.664675-30-david.marchand@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220709082644.664675-30-david.marchand@redhat.com",
    "date": "2022-07-09T08:26:44",
    "name": "[RFC,v2,v2,29/29] dev: hide device object",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "70509f004717918eafcabcfdcd6d9a28951e3dfc",
    "submitter": {
        "id": 1173,
        "url": "http://patches.dpdk.org/api/people/1173/?format=api",
        "name": "David Marchand",
        "email": "david.marchand@redhat.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/20220709082644.664675-30-david.marchand@redhat.com/mbox/",
    "series": [
        {
            "id": 23949,
            "url": "http://patches.dpdk.org/api/series/23949/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=23949",
            "date": "2022-07-09T08:26:16",
            "name": "Bus and device cleanup for 22.11",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/23949/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/113885/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/113885/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 ED0D0A00C5;\n\tSat,  9 Jul 2022 10:30:08 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D2CCD42B72;\n\tSat,  9 Jul 2022 10:30:07 +0200 (CEST)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.133.124])\n by mails.dpdk.org (Postfix) with ESMTP id A203F42826\n for <dev@dpdk.org>; Sat,  9 Jul 2022 10:30:05 +0200 (CEST)",
            "from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com\n [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n us-mta-668-casbJu92N8a6SbhqzTxW-Q-1; Sat, 09 Jul 2022 04:29:56 -0400",
            "from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com\n [10.11.54.4])\n (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n (No client certificate requested)\n by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3218C811E80;\n Sat,  9 Jul 2022 08:29:56 +0000 (UTC)",
            "from localhost.localdomain (unknown [10.40.192.194])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 6933C2026D2D;\n Sat,  9 Jul 2022 08:29:55 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1657355405;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=muSipBFPyyTOtNoWWK/ZNnZ0z2UovzWWmCpBKcvHndo=;\n b=fZ2fkPJ2SyNH3R3w4F4cD7dt0EWSSRKlyICkZzeRpQad+TcAjSSmx5NbsTuhvvjc8FrcOc\n Xl6g3oI54o4or2/FBAse2rNcOKE3/YhOOgPeTMwofXgvTf1j11n3cIqUQt1mLrNTh+N7j2\n +WcyBIe10CZcQx6QIfZLuPctFPHrYhU=",
        "X-MC-Unique": "casbJu92N8a6SbhqzTxW-Q-1",
        "From": "David Marchand <david.marchand@redhat.com>",
        "To": "dev@dpdk.org",
        "Cc": "Maxime Coquelin <maxime.coquelin@redhat.com>,\n Chenbo Xia <chenbo.xia@intel.com>",
        "Subject": "[RFC v2 v2 29/29] dev: hide device object",
        "Date": "Sat,  9 Jul 2022 10:26:44 +0200",
        "Message-Id": "<20220709082644.664675-30-david.marchand@redhat.com>",
        "In-Reply-To": "<20220709082644.664675-1-david.marchand@redhat.com>",
        "References": "<20220628144643.1213026-1-david.marchand@redhat.com>\n <20220709082644.664675-1-david.marchand@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 2.78 on 10.11.54.4",
        "Authentication-Results": "relay.mimecast.com;\n auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain; charset=\"US-ASCII\"; x-default=true",
        "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": "Make rte_device opaque for non internal users.\nThis will make extending this object possible without breaking the ABI.\n\nSigned-off-by: David Marchand <david.marchand@redhat.com>\n---\n lib/eal/common/eal_private.h |  2 +-\n lib/eal/include/dev_driver.h | 14 ++++++++++++++\n lib/eal/include/rte_dev.h    | 13 +------------\n lib/vhost/vdpa.c             |  1 +\n 4 files changed, 17 insertions(+), 13 deletions(-)",
    "diff": "diff --git a/lib/eal/common/eal_private.h b/lib/eal/common/eal_private.h\nindex 44d14241f0..3ca9ce2ffc 100644\n--- a/lib/eal/common/eal_private.h\n+++ b/lib/eal/common/eal_private.h\n@@ -10,7 +10,7 @@\n #include <stdio.h>\n #include <sys/queue.h>\n \n-#include <rte_dev.h>\n+#include <dev_driver.h>\n #include <rte_lcore.h>\n #include <rte_memory.h>\n \ndiff --git a/lib/eal/include/dev_driver.h b/lib/eal/include/dev_driver.h\nindex 015188abd5..01c3e30994 100644\n--- a/lib/eal/include/dev_driver.h\n+++ b/lib/eal/include/dev_driver.h\n@@ -12,6 +12,8 @@ extern \"C\" {\n #include <rte_common.h>\n #include <rte_dev.h>\n \n+struct rte_devargs;\n+\n /**\n  * A structure describing a device driver.\n  */\n@@ -21,6 +23,18 @@ struct rte_driver {\n \tconst char *alias;              /**< Driver alias. */\n };\n \n+/**\n+ * A structure describing a generic device.\n+ */\n+struct rte_device {\n+\tRTE_TAILQ_ENTRY(rte_device) next; /**< Next device */\n+\tconst char *name;             /**< Device name */\n+\tconst struct rte_driver *driver; /**< Driver assigned after probing */\n+\tconst struct rte_bus *bus;    /**< Bus handle assigned on scan */\n+\tint numa_node;                /**< NUMA node connection */\n+\tstruct rte_devargs *devargs;  /**< Arguments for latest probing */\n+};\n+\n #ifdef __cplusplus\n }\n #endif\ndiff --git a/lib/eal/include/rte_dev.h b/lib/eal/include/rte_dev.h\nindex a80447a645..3077cf3f0f 100644\n--- a/lib/eal/include/rte_dev.h\n+++ b/lib/eal/include/rte_dev.h\n@@ -25,6 +25,7 @@ extern \"C\" {\n \n struct rte_bus;\n struct rte_driver;\n+struct rte_device;\n \n /**\n  * The device event type.\n@@ -127,18 +128,6 @@ __rte_experimental\n int\n rte_dev_numa_node(const struct rte_device *dev);\n \n-/**\n- * A structure describing a generic device.\n- */\n-struct rte_device {\n-\tRTE_TAILQ_ENTRY(rte_device) next; /**< Next device */\n-\tconst char *name;             /**< Device name */\n-\tconst struct rte_driver *driver; /**< Driver assigned after probing */\n-\tconst struct rte_bus *bus;    /**< Bus handle assigned on scan */\n-\tint numa_node;                /**< NUMA node connection */\n-\tstruct rte_devargs *devargs;  /**< Arguments for latest probing */\n-};\n-\n /**\n  * Query status of a device.\n  *\ndiff --git a/lib/vhost/vdpa.c b/lib/vhost/vdpa.c\nindex bdebcbe565..aaf3f267e9 100644\n--- a/lib/vhost/vdpa.c\n+++ b/lib/vhost/vdpa.c\n@@ -10,6 +10,7 @@\n \n #include <sys/queue.h>\n \n+#include <dev_driver.h>\n #include <rte_common.h>\n #include <rte_class.h>\n #include <rte_malloc.h>\n",
    "prefixes": [
        "RFC",
        "v2",
        "v2",
        "29/29"
    ]
}