get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 60778,
    "url": "https://patches.dpdk.org/api/patches/60778/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20191009203746.64933-2-jin.yu@intel.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20191009203746.64933-2-jin.yu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20191009203746.64933-2-jin.yu@intel.com",
    "date": "2019-10-09T20:37:38",
    "name": "[v10,1/9] vhost: add the inflight description",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "99e272c33ab6960c45ac7c3d7359f9c748896e59",
    "submitter": {
        "id": 1265,
        "url": "https://patches.dpdk.org/api/people/1265/?format=api",
        "name": "Jin Yu",
        "email": "jin.yu@intel.com"
    },
    "delegate": {
        "id": 2642,
        "url": "https://patches.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20191009203746.64933-2-jin.yu@intel.com/mbox/",
    "series": [
        {
            "id": 6763,
            "url": "https://patches.dpdk.org/api/series/6763/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=6763",
            "date": "2019-10-09T20:37:38",
            "name": "[v10,1/9] vhost: add the inflight description",
            "version": 10,
            "mbox": "https://patches.dpdk.org/series/6763/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/60778/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/60778/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 8BEE91E54B;\n\tWed,  9 Oct 2019 14:54:53 +0200 (CEST)",
            "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n\tby dpdk.org (Postfix) with ESMTP id 7F2CC1BFDD\n\tfor <dev@dpdk.org>; Wed,  9 Oct 2019 14:54:48 +0200 (CEST)",
            "from fmsmga007.fm.intel.com ([10.253.24.52])\n\tby orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t09 Oct 2019 05:54:48 -0700",
            "from storage36.sh.intel.com ([10.67.110.177])\n\tby fmsmga007.fm.intel.com with ESMTP; 09 Oct 2019 05:54:46 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.67,276,1566889200\"; d=\"scan'208\";a=\"193671499\"",
        "From": "Jin Yu <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, Jin Yu <jin.yu@intel.com>,\n\tLin Li <lilin24@baidu.com>, Xun Ni <nixun@baidu.com>,\n\tYu Zhang <zhangyu31@baidu.com>",
        "Date": "Thu, 10 Oct 2019 04:37:38 +0800",
        "Message-Id": "<20191009203746.64933-2-jin.yu@intel.com>",
        "X-Mailer": "git-send-email 2.17.2",
        "In-Reply-To": "<20191009203746.64933-1-jin.yu@intel.com>",
        "References": "<20191008153341.22228> <20191009203746.64933-1-jin.yu@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v10 1/9] vhost: add the inflight description",
        "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 inflight message description and\nthe inflight share fd protocol feature flag.\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>\nReviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>\n---\nv1 - specify the APIs are split-ring only\nv2 - fix APIs and judge split or packed\nv3 - add rte_vhost_ prefix and fix one issue\nv4 - add the packed ring support\nv5 - revise get_vring_base func depend on Tiwei's suggestion\nv6 - divide patch into small patches\nv7 - updated base on Maxime's comments\nv8 - updated base on Tiwei's comments\n---\n lib/librte_vhost/rte_vhost.h  | 4 ++++\n lib/librte_vhost/vhost_user.h | 8 ++++++++\n 2 files changed, 12 insertions(+)",
    "diff": "diff --git a/lib/librte_vhost/rte_vhost.h b/lib/librte_vhost/rte_vhost.h\nindex 0226b3eff..9943575ce 100644\n--- a/lib/librte_vhost/rte_vhost.h\n+++ b/lib/librte_vhost/rte_vhost.h\n@@ -71,6 +71,10 @@ extern \"C\" {\n #define VHOST_USER_PROTOCOL_F_HOST_NOTIFIER 11\n #endif\n \n+#ifndef VHOST_USER_PROTOCOL_F_INFLIGHT_SHMFD\n+#define VHOST_USER_PROTOCOL_F_INFLIGHT_SHMFD 12\n+#endif\n+\n /** Indicate whether protocol features negotiation is supported. */\n #ifndef VHOST_USER_F_PROTOCOL_FEATURES\n #define VHOST_USER_F_PROTOCOL_FEATURES\t30\ndiff --git a/lib/librte_vhost/vhost_user.h b/lib/librte_vhost/vhost_user.h\nindex 2a650fe4b..17a1d7bca 100644\n--- a/lib/librte_vhost/vhost_user.h\n+++ b/lib/librte_vhost/vhost_user.h\n@@ -112,6 +112,13 @@ typedef struct VhostUserVringArea {\n \tuint64_t offset;\n } VhostUserVringArea;\n \n+typedef struct VhostUserInflight {\n+\tuint64_t mmap_size;\n+\tuint64_t mmap_offset;\n+\tuint16_t num_queues;\n+\tuint16_t queue_size;\n+} VhostUserInflight;\n+\n typedef struct VhostUserMsg {\n \tunion {\n \t\tuint32_t master; /* a VhostUserRequest value */\n@@ -134,6 +141,7 @@ typedef struct VhostUserMsg {\n \t\tstruct vhost_iotlb_msg iotlb;\n \t\tVhostUserCryptoSessionParam crypto_session;\n \t\tVhostUserVringArea area;\n+\t\tVhostUserInflight inflight;\n \t} payload;\n \tint fds[VHOST_MEMORY_MAX_NREGIONS];\n \tint fd_num;\n",
    "prefixes": [
        "v10",
        "1/9"
    ]
}