get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 59289,
    "url": "http://patches.dpdk.org/api/patches/59289/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190917145234.16951-3-jin.yu@intel.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": "<20190917145234.16951-3-jin.yu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190917145234.16951-3-jin.yu@intel.com",
    "date": "2019-09-17T14:52:25",
    "name": "[v7,02/11] vhost: add packed ring",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "37a9ccadab5fc2d313674b7c5e6ec51a9ef0d1c8",
    "submitter": {
        "id": 1265,
        "url": "http://patches.dpdk.org/api/people/1265/?format=api",
        "name": "Jin Yu",
        "email": "jin.yu@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190917145234.16951-3-jin.yu@intel.com/mbox/",
    "series": [
        {
            "id": 6419,
            "url": "http://patches.dpdk.org/api/series/6419/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=6419",
            "date": "2019-09-17T14:52:23",
            "name": "vhost: support inflight share memory protocol feature",
            "version": 7,
            "mbox": "http://patches.dpdk.org/series/6419/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/59289/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/59289/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 30A651BFB7;\n\tTue, 17 Sep 2019 09:09:29 +0200 (CEST)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n\tby dpdk.org (Postfix) with ESMTP id C42371BFB0\n\tfor <dev@dpdk.org>; Tue, 17 Sep 2019 09:09:25 +0200 (CEST)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n\tby fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t17 Sep 2019 00:09:25 -0700",
            "from storage36.sh.intel.com ([10.67.110.166])\n\tby orsmga008.jf.intel.com with ESMTP; 17 Sep 2019 00:09:23 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.64,515,1559545200\"; d=\"scan'208\";a=\"180682385\"",
        "From": "JinYu <jin.yu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "changpeng.liu@intel.com, maxime.coquelin@redhat.com, tiwei.bie@intel.com,\n\tzhihong.wang@intel.com, JinYu <jin.yu@intel.com>,\n\tLin Li <lilin24@baidu.com>, Xun Ni <nixun@baidu.com>,\n\tYu Zhang <zhangyu31@baidu.com>",
        "Date": "Tue, 17 Sep 2019 22:52:25 +0800",
        "Message-Id": "<20190917145234.16951-3-jin.yu@intel.com>",
        "X-Mailer": "git-send-email 2.17.2",
        "In-Reply-To": "<20190917145234.16951-1-jin.yu@intel.com>",
        "References": "<20190829141224.49700> <20190917145234.16951-1-jin.yu@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v7 02/11] vhost: add packed ring",
        "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "This patch add the packed ring in the rte_vhost_vring.\n\nSigned-off-by: Lin Li <lilin24@baidu.com>\nSigned-off-by: Xun Ni <nixun@baidu.com>\nSigned-off-by: Yu Zhang <zhangyu31@baidu.com>\nSigned-off-by: Jin Yu <jin.yu@intel.com>\n---\n lib/librte_vhost/rte_vhost.h | 15 ++++++++++++---\n 1 file changed, 12 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/lib/librte_vhost/rte_vhost.h b/lib/librte_vhost/rte_vhost.h\nindex 9943575ce..7257f0965 100644\n--- a/lib/librte_vhost/rte_vhost.h\n+++ b/lib/librte_vhost/rte_vhost.h\n@@ -103,9 +103,18 @@ struct rte_vhost_memory {\n };\n \n struct rte_vhost_vring {\n-\tstruct vring_desc\t*desc;\n-\tstruct vring_avail\t*avail;\n-\tstruct vring_used\t*used;\n+\tunion {\n+\t\tstruct vring_desc *desc;\n+\t\tstruct vring_packed_desc *desc_packed;\n+\t};\n+\tunion {\n+\t\tstruct vring_avail *avail;\n+\t\tstruct vring_packed_desc_event *driver_event;\n+\t};\n+\tunion {\n+\t\tstruct vring_used *used;\n+\t\tstruct vring_packed_desc_event *device_event;\n+\t};\n \tuint64_t\t\tlog_guest_addr;\n \n \t/** Deprecated, use rte_vhost_vring_call() instead. */\n",
    "prefixes": [
        "v7",
        "02/11"
    ]
}