get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 102520,
    "url": "https://patches.dpdk.org/api/patches/102520/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20211021142540.43753-1-xuan.ding@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": "<20211021142540.43753-1-xuan.ding@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211021142540.43753-1-xuan.ding@intel.com",
    "date": "2021-10-21T14:25:40",
    "name": "net/virtio: fix incorrect avail desc id",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "1dde447775b306145e1bdf581ccf98bf3146a1b7",
    "submitter": {
        "id": 1401,
        "url": "https://patches.dpdk.org/api/people/1401/?format=api",
        "name": "Ding, Xuan",
        "email": "xuan.ding@intel.com"
    },
    "delegate": {
        "id": 2642,
        "url": "https://patches.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20211021142540.43753-1-xuan.ding@intel.com/mbox/",
    "series": [
        {
            "id": 19864,
            "url": "https://patches.dpdk.org/api/series/19864/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=19864",
            "date": "2021-10-21T14:25:40",
            "name": "net/virtio: fix incorrect avail desc id",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/19864/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/102520/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/102520/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id C0119A0C4B;\n\tThu, 21 Oct 2021 07:54:11 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 8C419410E2;\n\tThu, 21 Oct 2021 07:54:11 +0200 (CEST)",
            "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id 3243A40142;\n Thu, 21 Oct 2021 07:54:10 +0200 (CEST)",
            "from orsmga007.jf.intel.com ([10.7.209.58])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Oct 2021 22:54:09 -0700",
            "from npg-dpdk-xuan-cbdma.sh.intel.com ([10.67.110.228])\n by orsmga007.jf.intel.com with ESMTP; 20 Oct 2021 22:54:06 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10143\"; a=\"289794401\"",
            "E=Sophos;i=\"5.87,168,1631602800\"; d=\"scan'208\";a=\"289794401\"",
            "E=Sophos;i=\"5.87,168,1631602800\"; d=\"scan'208\";a=\"484063170\""
        ],
        "X-ExtLoop1": "1",
        "From": "xuan.ding@intel.com",
        "To": "dev@dpdk.org,\n\tmaxime.coquelin@redhat.com,\n\tchenbo.xia@intel.com",
        "Cc": "Xuan Ding <xuan.ding@intel.com>, stable@dpdk.org,\n Yong Liu <yong.liu@intel.com>, Miao Li <miao.li@intel.com>",
        "Date": "Thu, 21 Oct 2021 14:25:40 +0000",
        "Message-Id": "<20211021142540.43753-1-xuan.ding@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH] net/virtio: fix incorrect avail desc id",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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": "From: Xuan Ding <xuan.ding@intel.com>\n\nVhost will update desc’s Buffer ID advance to next used descriptor when\nVIRTIO_F_IN_ORDER feature negotiated. When virtio reuses the descriptor,\nthe Buffer ID should be restored even VIRTQ_DESC_F_INDIRECT\nfeature negotiated.\n\nFixes: b473061b0e1d (\"net/virtio: fix indirect descriptors in packed datapaths\")\nCc: stable@dpdk.org\n\nSigned-off-by: Xuan Ding <xuan.ding@intel.com>\nSigned-off-by: Yong Liu <yong.liu@intel.com>\nSigned-off-by: Miao Li <miao.li@intel.com>\n---\n drivers/net/virtio/virtqueue.h | 3 +++\n 1 file changed, 3 insertions(+)",
    "diff": "diff --git a/drivers/net/virtio/virtqueue.h b/drivers/net/virtio/virtqueue.h\nindex d0c48ca415..5259a6f814 100644\n--- a/drivers/net/virtio/virtqueue.h\n+++ b/drivers/net/virtio/virtqueue.h\n@@ -709,6 +709,9 @@ virtqueue_enqueue_xmit_packed(struct virtnet_tx *txvq, struct rte_mbuf *cookie,\n \t\t\tRTE_PTR_DIFF(&txr[idx].tx_packed_indir, txr);\n \t\tstart_dp[idx].len   = (seg_num + 1) *\n \t\t\tsizeof(struct vring_packed_desc);\n+\t\t/* Packed descriptor id needs to be restored when inorder. */\n+\t\tif (in_order)\n+\t\t\tstart_dp[idx].id = idx;\n \t\t/* reset flags for indirect desc */\n \t\thead_flags = VRING_DESC_F_INDIRECT;\n \t\thead_flags |= vq->vq_packed.cached_flags;\n",
    "prefixes": []
}