get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 7736,
    "url": "https://patches.dpdk.org/api/patches/7736/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1445247869-713-2-git-send-email-jerome.jutteau@outscale.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": "<1445247869-713-2-git-send-email-jerome.jutteau@outscale.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1445247869-713-2-git-send-email-jerome.jutteau@outscale.com",
    "date": "2015-10-19T09:44:26",
    "name": "[dpdk-dev,v2,1/4] vhost: avoid device identifier to be reset to 0 in reset_owner",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "e4b67d29f5bb98ddd1a129a3d36bf1fc005b94c6",
    "submitter": {
        "id": 354,
        "url": "https://patches.dpdk.org/api/people/354/?format=api",
        "name": "Jerome Jutteau",
        "email": "jerome.jutteau@outscale.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1445247869-713-2-git-send-email-jerome.jutteau@outscale.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/7736/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/7736/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id F41498E88;\n\tMon, 19 Oct 2015 11:45:11 +0200 (CEST)",
            "from mail-lf0-f45.google.com (mail-lf0-f45.google.com\n\t[209.85.215.45]) by dpdk.org (Postfix) with ESMTP id EEC925961\n\tfor <dev@dpdk.org>; Mon, 19 Oct 2015 11:45:09 +0200 (CEST)",
            "by lffz202 with SMTP id z202so23394627lff.3\n\tfor <dev@dpdk.org>; Mon, 19 Oct 2015 02:45:09 -0700 (PDT)",
            "from localhost.localdomain\n\t(ows-185-21-195-233.eu-west-1.compute.outscale.com. [185.21.195.233])\n\tby smtp.gmail.com with ESMTPSA id\n\txt1sm39011197wjb.32.2015.10.19.02.45.08\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 19 Oct 2015 02:45:09 -0700 (PDT)"
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=QF1MhjpoKvL6F5uHB4cifzdCOGM6FgBtStyH8NIeBnY=;\n\tb=K3/ZEtW1FyOvd3xe57iMBPlRGbVsvojjQgfd3cMLFBMRgwvJuo8PNBM+THThetHGrX\n\t2nE+erK5sl6E5eZbUNpcnuqcg7tdYpKMyYMAk6oTJTtkS3euqiRwgy+sref7+I018rHI\n\tKzffHBXIpQPhFn0QoFmbxbdIR9TQUO56XueFlO46nY9ACoDL/YK9DSId5+79TiFPi0nU\n\tHbQ9Tmp28LBBZAkEro5dfj/MuLS2kmdblrXmDIOiAQoUHtEyD5Y3NP13zxbhzLK3Y18V\n\tU4vreYFGM19jpj98BiC6GNyA2evA0ip4Kw2R5N6vFnp9p8sPfectekvo96yAZp4SjqvA\n\t0S7g==",
        "X-Gm-Message-State": "ALoCoQlf1tSc/JGl7BCNQqRd9Bd8103M+7hWfor2euLFRIJq32Js8PM3+yWPcQ3/nXq0vOt4+GaM",
        "X-Received": "by 10.180.86.129 with SMTP id p1mr20255503wiz.83.1445247909682; \n\tMon, 19 Oct 2015 02:45:09 -0700 (PDT)",
        "From": "Jerome Jutteau <jerome.jutteau@outscale.com>",
        "To": "dev@dpdk.org",
        "Date": "Mon, 19 Oct 2015 11:44:26 +0200",
        "Message-Id": "<1445247869-713-2-git-send-email-jerome.jutteau@outscale.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1445247869-713-1-git-send-email-jerome.jutteau@outscale.com>",
        "References": "<1445247869-713-1-git-send-email-jerome.jutteau@outscale.com>",
        "Subject": "[dpdk-dev] [PATCH v2 1/4] vhost: avoid device identifier to be\n\treset to 0 in reset_owner",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://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": "<http://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": "virtio-net clean and init device after a VHOST_USER_RESET_OWNER.\nThis reset device identifier to 0 and break ll_root listing logic.\nThis patch keep the old device identifier and re-write it on the cleaned\ndevice.\n\nSigned-off-by: Jerome Jutteau <jerome.jutteau@outscale.com>\n---\n lib/librte_vhost/virtio-net.c | 3 +++\n 1 file changed, 3 insertions(+)",
    "diff": "diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c\nindex d0f1764..955a29d 100644\n--- a/lib/librte_vhost/virtio-net.c\n+++ b/lib/librte_vhost/virtio-net.c\n@@ -399,11 +399,14 @@ static int\n reset_owner(struct vhost_device_ctx ctx)\n {\n \tstruct virtio_net_config_ll *ll_dev;\n+\tuint64_t device_fh;\n \n \tll_dev = get_config_ll_entry(ctx);\n+\tdevice_fh = ll_dev->dev.device_fh;\n \n \tcleanup_device(&ll_dev->dev);\n \tinit_device(&ll_dev->dev);\n+\tll_dev->dev.device_fh = device_fh;\n \n \treturn 0;\n }\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "1/4"
    ]
}