get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 95948,
    "url": "https://patches.dpdk.org/api/patches/95948/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210716072436.19017-6-cheng1.jiang@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": "<20210716072436.19017-6-cheng1.jiang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210716072436.19017-6-cheng1.jiang@intel.com",
    "date": "2021-07-16T07:24:36",
    "name": "[v5,5/5] doc: update doc for try drain API in vhost lib",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "8a0bcdf572aff78e20565ff516c697b1a4cf1314",
    "submitter": {
        "id": 1530,
        "url": "https://patches.dpdk.org/api/people/1530/?format=api",
        "name": "Jiang, Cheng1",
        "email": "Cheng1.jiang@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/20210716072436.19017-6-cheng1.jiang@intel.com/mbox/",
    "series": [
        {
            "id": 17853,
            "url": "https://patches.dpdk.org/api/series/17853/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=17853",
            "date": "2021-07-16T07:24:31",
            "name": "vhost: handle memory hotplug for async vhost",
            "version": 5,
            "mbox": "https://patches.dpdk.org/series/17853/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/95948/comments/",
    "check": "warning",
    "checks": "https://patches.dpdk.org/api/patches/95948/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 D71CDA0C50;\n\tFri, 16 Jul 2021 09:41:45 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id ED7BD41341;\n\tFri, 16 Jul 2021 09:41:37 +0200 (CEST)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by mails.dpdk.org (Postfix) with ESMTP id 116A441341\n for <dev@dpdk.org>; Fri, 16 Jul 2021 09:41:35 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 16 Jul 2021 00:41:35 -0700",
            "from dpdk_jiangcheng.sh.intel.com ([10.67.119.149])\n by fmsmga002.fm.intel.com with ESMTP; 16 Jul 2021 00:41:32 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10046\"; a=\"191062533\"",
            "E=Sophos;i=\"5.84,244,1620716400\"; d=\"scan'208\";a=\"191062533\"",
            "E=Sophos;i=\"5.84,244,1620716400\"; d=\"scan'208\";a=\"506384334\""
        ],
        "X-ExtLoop1": "1",
        "From": "Cheng Jiang <cheng1.jiang@intel.com>",
        "To": "maxime.coquelin@redhat.com,\n\tChenbo.Xia@intel.com",
        "Cc": "dev@dpdk.org, jiayu.hu@intel.com, yvonnex.yang@intel.com,\n Cheng Jiang <cheng1.jiang@intel.com>",
        "Date": "Fri, 16 Jul 2021 07:24:36 +0000",
        "Message-Id": "<20210716072436.19017-6-cheng1.jiang@intel.com>",
        "X-Mailer": "git-send-email 2.29.2",
        "In-Reply-To": "<20210716072436.19017-1-cheng1.jiang@intel.com>",
        "References": "<20210602042802.31943-1-cheng1.jiang@intel.com>\n <20210716072436.19017-1-cheng1.jiang@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v5 5/5] doc: update doc for try drain API in\n vhost lib",
        "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": "update the program guide and release notes for try drain API in vhost\nlib.\n\nSigned-off-by: Cheng Jiang <cheng1.jiang@intel.com>\n---\n doc/guides/prog_guide/vhost_lib.rst    | 5 +++++\n doc/guides/rel_notes/release_21_08.rst | 5 +++++\n 2 files changed, 10 insertions(+)",
    "diff": "diff --git a/doc/guides/prog_guide/vhost_lib.rst b/doc/guides/prog_guide/vhost_lib.rst\nindex d18fb98910..85aabc4a75 100644\n--- a/doc/guides/prog_guide/vhost_lib.rst\n+++ b/doc/guides/prog_guide/vhost_lib.rst\n@@ -281,6 +281,11 @@ The following is an overview of some key Vhost API functions:\n   Poll enqueue completion status from async data path. Completed packets\n   are returned to applications through ``pkts``.\n \n+* ``rte_vhost_try_drain_queue_thread_unsafe(vid, queue_id, **pkts, count, times)``\n+\n+  Try to drain in-flight packets which are submitted to DMA engine in vhost async data\n+  path. Completed packets are returned to applications through ``pkts``.\n+\n Vhost-user Implementations\n --------------------------\n \ndiff --git a/doc/guides/rel_notes/release_21_08.rst b/doc/guides/rel_notes/release_21_08.rst\nindex 6a902ef9ac..c38e358cf9 100644\n--- a/doc/guides/rel_notes/release_21_08.rst\n+++ b/doc/guides/rel_notes/release_21_08.rst\n@@ -117,6 +117,11 @@ New Features\n   The experimental PMD power management API now supports managing\n   multiple Ethernet Rx queues per lcore.\n \n+* **Added try drain API in vhost library.**\n+\n+  Added an API which can try to drain the inflight packets submitted to DMA\n+  engine in vhost async data path.\n+\n \n Removed Items\n -------------\n",
    "prefixes": [
        "v5",
        "5/5"
    ]
}