get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 65999,
    "url": "https://patches.dpdk.org/api/patches/65999/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200224145025.84899-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": "<20200224145025.84899-1-yong.liu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200224145025.84899-1-yong.liu@intel.com",
    "date": "2020-02-24T14:50:24",
    "name": "vhost: fix zmbuf buffer id invalid",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "3dd8268d8b919a6ada9d956982a3a6a6e63275bd",
    "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/20200224145025.84899-1-yong.liu@intel.com/mbox/",
    "series": [
        {
            "id": 8657,
            "url": "https://patches.dpdk.org/api/series/8657/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=8657",
            "date": "2020-02-24T14:50:24",
            "name": "vhost: fix zmbuf buffer id invalid",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/8657/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/65999/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/65999/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id EA9FDA0524;\n\tMon, 24 Feb 2020 08:13:51 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 54BBA1BFAB;\n\tMon, 24 Feb 2020 08:13:49 +0100 (CET)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by dpdk.org (Postfix) with ESMTP id 445481BE85;\n Mon, 24 Feb 2020 08:13:47 +0100 (CET)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 23 Feb 2020 23:13:46 -0800",
            "from npg-dpdk-virtual-marvin-dev.sh.intel.com ([10.67.119.58])\n by fmsmga008.fm.intel.com with ESMTP; 23 Feb 2020 23:13:44 -0800"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.70,479,1574150400\"; d=\"scan'208\";a=\"231044555\"",
        "From": "Marvin Liu <yong.liu@intel.com>",
        "To": "maxime.coquelin@redhat.com",
        "Cc": "dev@dpdk.org, tiwei.bie@intel.com, zhihong.wang@intel.com,\n Marvin Liu <yong.liu@intel.com>, stable@dpdk.org",
        "Date": "Mon, 24 Feb 2020 22:50:24 +0800",
        "Message-Id": "<20200224145025.84899-1-yong.liu@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "Subject": "[dpdk-dev] [PATCH] vhost: fix zmbuf buffer id invalid",
        "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 <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 <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "zc mbufs should record available buffer id when doing dequeue zcopy.\nThere's no guarantee that local queue avail index equal to buffer index.\n\nFixes: d1eafb532268 (\"vhost: add packed ring zcopy batch and single dequeue\")\nCc: stable@dpdk.org\n\nSigned-off-by: Marvin Liu <yong.liu@intel.com>\nReported-by: Yinan Wang <yinan.wang@intel.com>",
    "diff": "diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c\nindex 37c47c7dc..210415904 100644\n--- a/lib/librte_vhost/virtio_net.c\n+++ b/lib/librte_vhost/virtio_net.c\n@@ -2004,7 +2004,7 @@ virtio_dev_tx_batch_packed_zmbuf(struct virtio_net *dev,\n \n \tvhost_for_each_try_unroll(i, 0, PACKED_BATCH_SIZE) {\n \t\tzmbufs[i]->mbuf = pkts[i];\n-\t\tzmbufs[i]->desc_idx = avail_idx + i;\n+\t\tzmbufs[i]->desc_idx = ids[i];\n \t\tzmbufs[i]->desc_count = 1;\n \t}\n \n@@ -2045,7 +2045,7 @@ virtio_dev_tx_single_packed_zmbuf(struct virtio_net *dev,\n \t\treturn -1;\n \t}\n \tzmbuf->mbuf = *pkts;\n-\tzmbuf->desc_idx = vq->last_avail_idx;\n+\tzmbuf->desc_idx = buf_id;\n \tzmbuf->desc_count = desc_count;\n \n \trte_mbuf_refcnt_update(*pkts, 1);\n",
    "prefixes": []
}