get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 112881,
    "url": "https://patches.dpdk.org/api/patches/112881/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220616093609.106130-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": "<20220616093609.106130-1-xuan.ding@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220616093609.106130-1-xuan.ding@intel.com",
    "date": "2022-06-16T09:36:09",
    "name": "vhost: fix missing statistics update",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "9e6d6d1e4d842df832985dd59d16e47bc183a439",
    "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/20220616093609.106130-1-xuan.ding@intel.com/mbox/",
    "series": [
        {
            "id": 23568,
            "url": "https://patches.dpdk.org/api/series/23568/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=23568",
            "date": "2022-06-16T09:36:09",
            "name": "vhost: fix missing statistics update",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/23568/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/112881/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/112881/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 C1D69A00BE;\n\tThu, 16 Jun 2022 11:39:31 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id ADBE74281E;\n\tThu, 16 Jun 2022 11:39:31 +0200 (CEST)",
            "from mga06.intel.com (mga06b.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id 16FE24003C;\n Thu, 16 Jun 2022 11:39:29 +0200 (CEST)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 16 Jun 2022 02:39:21 -0700",
            "from npg-dpdk-xuan-cbdma.sh.intel.com ([10.67.110.228])\n by fmsmga008.fm.intel.com with ESMTP; 16 Jun 2022 02:39:19 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1655372370; x=1686908370;\n h=from:to:cc:subject:date:message-id;\n bh=Lcx4uSRhJ2Fo2pvmt2f72f/w0l05ERmOfHeKU95WYjM=;\n b=e0Vz3AMeAS3qIKnoBlLaQMy4XUn6sbh8bUwUVzCO29eWXsbTCE658irL\n h2U6GsYBe8A7R9nI+UK3+cswccbbrrAsdxhoaGvdlgBBq3LPgLLDsvoZy\n 6TCiWqc8uaJDw5nkr/RCkvJ0L27znqa4HCcNbpDZjPqMedsIXxRhJjqEu\n d2cTpuZ71TwP6zNito59/nzs7qwSnxkbLJ9ixABJ9e3MRy20NvQSpWODB\n LPGW3g9A4rROPhiKDLlV8GFV3KwraSRFipOAWbX0SimuXxMJj6a4GDfBo\n zGAnUlHtkrGnPjhiRU+Dxb1wdP989OV7NmU1n5aff9eNeFH3exXNJLR/G A==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10379\"; a=\"340865518\"",
            "E=Sophos;i=\"5.91,304,1647327600\"; d=\"scan'208\";a=\"340865518\"",
            "E=Sophos;i=\"5.91,304,1647327600\"; d=\"scan'208\";a=\"641464228\""
        ],
        "X-ExtLoop1": "1",
        "From": "xuan.ding@intel.com",
        "To": "maxime.coquelin@redhat.com,\n\tchenbo.xia@intel.com",
        "Cc": "dev@dpdk.org, jiayu.hu@intel.com, wenwux.ma@intel.com,\n Xuan Ding <xuan.ding@intel.com>, stable@dpdk.org",
        "Subject": "[PATCH] vhost: fix missing statistics update",
        "Date": "Thu, 16 Jun 2022 09:36:09 +0000",
        "Message-Id": "<20220616093609.106130-1-xuan.ding@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "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"
    },
    "content": "From: Xuan Ding <xuan.ding@intel.com>\n\nThis patch adds missing per-virtqueue statistics in async dequeue path.\n\nFixes: 84d5204310d7(\"vhost: support async dequeue for split ring\")\nCc: stable@dpdk.org\n\nSigned-off-by: Xuan Ding <xuan.ding@intel.com>\n---\n lib/vhost/virtio_net.c | 2 ++\n 1 file changed, 2 insertions(+)",
    "diff": "diff --git a/lib/vhost/virtio_net.c b/lib/vhost/virtio_net.c\nindex 68a26eb17d..a5e510c51e 100644\n--- a/lib/vhost/virtio_net.c\n+++ b/lib/vhost/virtio_net.c\n@@ -3538,6 +3538,7 @@ rte_vhost_async_try_dequeue_burst(int vid, uint16_t queue_id,\n \t\t * learning table will get updated first.\n \t\t */\n \t\tpkts[0] = rarp_mbuf;\n+\t\tvhost_queue_stats_update(dev, vq, pkts, 1);\n \t\tpkts++;\n \t\tcount -= 1;\n \t}\n@@ -3562,6 +3563,7 @@ rte_vhost_async_try_dequeue_burst(int vid, uint16_t queue_id,\n \t\t\t\t\t\t\t    count, dma_id, vchan_id);\n \n \t*nr_inflight = vq->async->pkts_inflight_n;\n+\tvhost_queue_stats_update(dev, vq, pkts, count);\n \n out:\n \tif (dev->features & (1ULL << VIRTIO_F_IOMMU_PLATFORM))\n",
    "prefixes": []
}