get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 35099,
    "url": "http://patches.dpdk.org/api/patches/35099/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180209173455.14116-1-tomaszx.kulasek@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": "<20180209173455.14116-1-tomaszx.kulasek@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180209173455.14116-1-tomaszx.kulasek@intel.com",
    "date": "2018-02-09T17:34:55",
    "name": "[dpdk-dev] vhost: fix wait for valid descriptor",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": true,
    "hash": "1b9d2288e2e4ccfdba36f023644bd2c33571408c",
    "submitter": {
        "id": 155,
        "url": "http://patches.dpdk.org/api/people/155/?format=api",
        "name": "Tomasz Kulasek",
        "email": "tomaszx.kulasek@intel.com"
    },
    "delegate": {
        "id": 2642,
        "url": "http://patches.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20180209173455.14116-1-tomaszx.kulasek@intel.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/35099/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/35099/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 083E11B843;\n\tFri,  9 Feb 2018 18:36:12 +0100 (CET)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n\tby dpdk.org (Postfix) with ESMTP id 34F2E1B840;\n\tFri,  9 Feb 2018 18:36:09 +0100 (CET)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t09 Feb 2018 09:36:09 -0800",
            "from unknown (HELO Sent) ([10.103.103.74])\n\tby fmsmga001.fm.intel.com with SMTP; 09 Feb 2018 09:36:06 -0800",
            "by Sent (sSMTP sendmail emulation); Fri, 09 Feb 2018 18:35:02 +0100"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.46,483,1511856000\"; d=\"scan'208\";a=\"29532142\"",
        "From": "Tomasz Kulasek <tomaszx.kulasek@intel.com>",
        "To": "yliu@fridaylinux.org",
        "Cc": "dev@dpdk.org, yuanhan.liu@linux.intel.com, stable@dpdk.org,\n\tChangpeng Liu <changpeng.liu@intel.com>",
        "Date": "Fri,  9 Feb 2018 18:34:55 +0100",
        "Message-Id": "<20180209173455.14116-1-tomaszx.kulasek@intel.com>",
        "X-Mailer": "git-send-email 2.12.3",
        "Subject": "[dpdk-dev] [PATCH] vhost: fix wait for valid descriptor",
        "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://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "For each virt queue's kickfd and callfd, there are 2 invalid\nstatus: VIRTIO_UNINITIALIZED_EVENTFD and VIRTIO_INVALID_EVENTFD.\nDon't set the virt queue to ready status until got the valid\ndescriptor.\n\nThis is safe for polling mode drivers in Guest OS, the backend\nvhost process will not post notification to interrupt vector for\nPMD mode in guest, but the interrupt vector still valid.\n\nFixes: e049ca6d10e0 (\"vhost-user: prepare multiple queue setup\")\nCc: yuanhan.liu@linux.intel.com\nCc: stable@dpdk.org\n\nSigned-off-by: Changpeng Liu <changpeng.liu@intel.com>\nSigned-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>\n---\n lib/librte_vhost/vhost_user.c | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/lib/librte_vhost/vhost_user.c b/lib/librte_vhost/vhost_user.c\nindex 65ee33919..4508f697b 100644\n--- a/lib/librte_vhost/vhost_user.c\n+++ b/lib/librte_vhost/vhost_user.c\n@@ -766,7 +766,9 @@ vq_is_ready(struct vhost_virtqueue *vq)\n {\n \treturn vq && vq->desc && vq->avail && vq->used &&\n \t       vq->kickfd != VIRTIO_UNINITIALIZED_EVENTFD &&\n-\t       vq->callfd != VIRTIO_UNINITIALIZED_EVENTFD;\n+\t       vq->callfd != VIRTIO_UNINITIALIZED_EVENTFD &&\n+\t       vq->kickfd != VIRTIO_INVALID_EVENTFD &&\n+\t       vq->callfd != VIRTIO_INVALID_EVENTFD;\n }\n \n static int\n",
    "prefixes": [
        "dpdk-dev"
    ]
}