get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 43334,
    "url": "https://patches.dpdk.org/api/patches/43334/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20180725102556.68604-1-yong.liu@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": "<20180725102556.68604-1-yong.liu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180725102556.68604-1-yong.liu@intel.com",
    "date": "2018-07-25T10:25:56",
    "name": "[v3] examples/vhost: workaround qemu abort",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": true,
    "hash": "40e8c1b5c23107f92807ea3fbe559c625ddc1519",
    "submitter": {
        "id": 17,
        "url": "https://patches.dpdk.org/api/people/17/?format=api",
        "name": "Marvin Liu",
        "email": "yong.liu@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20180725102556.68604-1-yong.liu@intel.com/mbox/",
    "series": [
        {
            "id": 752,
            "url": "https://patches.dpdk.org/api/series/752/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=752",
            "date": "2018-07-25T10:25:56",
            "name": "[v3] examples/vhost: workaround qemu abort",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/752/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/43334/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/43334/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 3F45FF72;\n\tWed, 25 Jul 2018 04:41:02 +0200 (CEST)",
            "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n\tby dpdk.org (Postfix) with ESMTP id 6FBEC23D\n\tfor <dev@dpdk.org>; Wed, 25 Jul 2018 04:41:00 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t24 Jul 2018 19:40:59 -0700",
            "from dpdk-test32.sh.intel.com ([10.67.119.193])\n\tby orsmga001.jf.intel.com with ESMTP; 24 Jul 2018 19:40:58 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.51,400,1526367600\"; d=\"scan'208\";a=\"75679173\"",
        "From": "Marvin Liu <yong.liu@intel.com>",
        "To": "tiwei.bie@intel.com,\n\tdev@dpdk.org",
        "Cc": "Marvin Liu <yong.liu@intel.com>",
        "Date": "Wed, 25 Jul 2018 18:25:56 +0800",
        "Message-Id": "<20180725102556.68604-1-yong.liu@intel.com>",
        "X-Mailer": "git-send-email 2.17.0",
        "In-Reply-To": "<20180724151649.44490-1-yong.liu@intel.com>",
        "References": "<20180724151649.44490-1-yong.liu@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v3] examples/vhost: workaround qemu abort",
        "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": "Current qemu vhost net ring start has a dependency on feature bit\nVHOST_USER_F_PROTOCOL_FEATURES. Without this feature, vhost ring can't\nenabled and ioevent fd won't be deleted after vhost device stop. That\nwill cause qemu abort when reloading driver. Work around qemu issues by\nenabling feature bit in vhost user backend.\n\nSigned-off-by: Marvin Liu <yong.liu@intel.com>",
    "diff": "diff --git a/examples/vhost/main.c b/examples/vhost/main.c\nindex 2175c1186..8573004dd 100644\n--- a/examples/vhost/main.c\n+++ b/examples/vhost/main.c\n@@ -1520,7 +1520,10 @@ main(int argc, char *argv[])\n \t\t}\n \n \t\tif (builtin_net_driver)\n-\t\t\trte_vhost_driver_set_features(file, VIRTIO_NET_FEATURES);\n+\t\t\t/* Workaround for qemu vhost net device startup */\n+\t\t\trte_vhost_driver_set_features(file,\n+\t\t\t\tVIRTIO_NET_FEATURES |\n+\t\t\t\t1ULL << VHOST_USER_F_PROTOCOL_FEATURES);\n \n \t\tif (mergeable == 0) {\n \t\t\trte_vhost_driver_disable_features(file,\n",
    "prefixes": [
        "v3"
    ]
}