get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 35134,
    "url": "http://patches.dpdk.org/api/patches/35134/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180212154612.5297-2-maxime.coquelin@redhat.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": "<20180212154612.5297-2-maxime.coquelin@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180212154612.5297-2-maxime.coquelin@redhat.com",
    "date": "2018-02-12T15:46:10",
    "name": "[dpdk-dev,v2,1/3] net/virtio: fix mbuf data offset for simple Rx function",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "0d07088ac2157a74fac5fde5f50453f21a604b4d",
    "submitter": {
        "id": 512,
        "url": "http://patches.dpdk.org/api/people/512/?format=api",
        "name": "Maxime Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20180212154612.5297-2-maxime.coquelin@redhat.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/35134/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/35134/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 41DC61B38D;\n\tMon, 12 Feb 2018 16:46:42 +0100 (CET)",
            "from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73])\n\tby dpdk.org (Postfix) with ESMTP id 5E9941B385;\n\tMon, 12 Feb 2018 16:46:40 +0100 (CET)",
            "from smtp.corp.redhat.com\n\t(int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id EC40C404084E;\n\tMon, 12 Feb 2018 15:46:39 +0000 (UTC)",
            "from localhost.localdomain (ovpn-112-42.ams2.redhat.com\n\t[10.36.112.42])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id 83B492026DFD;\n\tMon, 12 Feb 2018 15:46:37 +0000 (UTC)"
        ],
        "From": "Maxime Coquelin <maxime.coquelin@redhat.com>",
        "To": "tiwei.bie@intel.com, yliu@fridaylinux.org, ferruh.yigit@intel.com,\n\tvictork@redhat.com, thomas@monjalon.net, olivier.matz@6wind.com,\n\tjianfeng.tan@intel.com",
        "Cc": "dev@dpdk.org, stable@dpdk.org, zhihong.wang@intel.com,\n\tqian.q.xu@intel.com, lei.a.yao@intel.com",
        "Date": "Mon, 12 Feb 2018 16:46:10 +0100",
        "Message-Id": "<20180212154612.5297-2-maxime.coquelin@redhat.com>",
        "In-Reply-To": "<20180212154612.5297-1-maxime.coquelin@redhat.com>",
        "References": "<20180212154612.5297-1-maxime.coquelin@redhat.com>",
        "X-Scanned-By": "MIMEDefang 2.78 on 10.11.54.4",
        "X-Greylist": [
            "Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.11.55.5]); Mon, 12 Feb 2018 15:46:40 +0000 (UTC)",
            "inspected by milter-greylist-4.5.16 (mx1.redhat.com\n\t[10.11.55.5]); \n\tMon, 12 Feb 2018 15:46:40 +0000 (UTC) for IP:'10.11.54.4'\n\tDOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com'\n\tHELO:'smtp.corp.redhat.com' FROM:'maxime.coquelin@redhat.com' RCPT:''"
        ],
        "Subject": "[dpdk-dev] [PATCH v2 1/3] net/virtio: fix mbuf data offset for\n\tsimple Rx function",
        "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": "From: Olivier Matz <olivier.matz@6wind.com>\n\nThe mbuf->data_off was was not properly set for the first received\nmbufs. Fix this by setting it in virtqueue_enqueue_recv_refill_simple(),\nwhich is used to enqueue the first mbuf in the ring.\n\nThe function virtio_rxq_rearm_vec(), which is used to rearm the ring\nwith new mbufs, is valid and does not need to be updated.\n\nFixes: cab0461234e7 (\"virtio: fill Rx avail ring with blank mbufs\")\nCc: stable@dpdk.org\n\nSigned-off-by: Olivier Matz <olivier.matz@6wind.com>\n---\n drivers/net/virtio/virtio_rxtx_simple.c | 1 +\n 1 file changed, 1 insertion(+)",
    "diff": "diff --git a/drivers/net/virtio/virtio_rxtx_simple.c b/drivers/net/virtio/virtio_rxtx_simple.c\nindex 7247a0822..b1f610ffa 100644\n--- a/drivers/net/virtio/virtio_rxtx_simple.c\n+++ b/drivers/net/virtio/virtio_rxtx_simple.c\n@@ -36,6 +36,7 @@ virtqueue_enqueue_recv_refill_simple(struct virtqueue *vq,\n \tuint16_t desc_idx;\n \n \tcookie->port = vq->rxq.port_id;\n+\tcookie->data_off = RTE_PKTMBUF_HEADROOM;\n \n \tdesc_idx = vq->vq_avail_idx & (vq->vq_nentries - 1);\n \tdxp = &vq->vq_descx[desc_idx];\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "1/3"
    ]
}