get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 114951,
    "url": "https://patches.dpdk.org/api/patches/114951/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220814140442.82525-3-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": "<20220814140442.82525-3-xuan.ding@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220814140442.82525-3-xuan.ding@intel.com",
    "date": "2022-08-14T14:04:42",
    "name": "[v1,2/2] example/vhost: unconfigure DMA vchannel",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e981df8c5bd1bc8cbeada521a769659512ae12c4",
    "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/20220814140442.82525-3-xuan.ding@intel.com/mbox/",
    "series": [
        {
            "id": 24304,
            "url": "https://patches.dpdk.org/api/series/24304/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=24304",
            "date": "2022-08-14T14:04:40",
            "name": "vhost: introduce DMA vchannel unconfiguration",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/24304/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/114951/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/114951/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 26B18A0548;\n\tSun, 14 Aug 2022 16:05:24 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5B08742684;\n\tSun, 14 Aug 2022 16:05:21 +0200 (CEST)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by mails.dpdk.org (Postfix) with ESMTP id 46AD440697\n for <dev@dpdk.org>; Sun, 14 Aug 2022 16:05:19 +0200 (CEST)",
            "from orsmga006.jf.intel.com ([10.7.209.51])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 14 Aug 2022 07:05:02 -0700",
            "from npg-dpdk-xuan-cbdma.sh.intel.com ([10.67.111.163])\n by orsmga006.jf.intel.com with ESMTP; 14 Aug 2022 07:04:59 -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=1660485919; x=1692021919;\n h=from:to:cc:subject:date:message-id:in-reply-to: references;\n bh=aj8Beyjwq/FV2hD1yW/SEnvrScjPxUJeB0feQs7erio=;\n b=fV20xfQcPd61KLmnbkhtIWbYwMWTwI/sIo8p8AHc2eYlZ+HwWUMPGnFI\n MlvWrDoQ6LWt+mvuuBo/iKv6lR1/TUzcO7dPPazUU7xJx6zMl8zEDJ21V\n kRJYimHQJ5cGwO+9nsXK4vevyNJ/YqprtIALrBqQaB4xpuJhUiTMShWPV\n 1pxcLh2MJ1UI6NHN+W3PNpNzf4h+VK2oPbmMswFF+fct70ZyZ/oMT4AjF\n eQzi3FTRpnZk2Nz1SWI50yYBtoez4MiGemJJ1L2xXsL+yVnHByC6ZoLZ4\n TC95yn6r7Q9b+8QQjTkAUbJDL1yDbZ2uXupaHlQUGRpVJK3ihU/oIOTa4 A==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10439\"; a=\"272221101\"",
            "E=Sophos;i=\"5.93,236,1654585200\"; d=\"scan'208\";a=\"272221101\"",
            "E=Sophos;i=\"5.93,236,1654585200\"; d=\"scan'208\";a=\"582597615\""
        ],
        "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, xingguang.he@intel.com,\n yvonnex.yang@intel.com, cheng1.jiang@intel.com, yuanx.wang@intel.com,\n wenwux.ma@intel.com, Xuan Ding <xuan.ding@intel.com>",
        "Subject": "[PATCH v1 2/2] example/vhost: unconfigure DMA vchannel",
        "Date": "Sun, 14 Aug 2022 14:04:42 +0000",
        "Message-Id": "<20220814140442.82525-3-xuan.ding@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20220814140442.82525-1-xuan.ding@intel.com>",
        "References": "<20220814140442.82525-1-xuan.ding@intel.com>",
        "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 uses rte_vhost_async_dma_unconfigure() API\nto manually free 'dma_coy_track' array rather than wait for\nthe program to finish before being freed.\n\nSigned-off-by: Xuan Ding <xuan.ding@intel.com>\n---\n examples/vhost/main.c | 7 +++++++\n 1 file changed, 7 insertions(+)",
    "diff": "diff --git a/examples/vhost/main.c b/examples/vhost/main.c\nindex 7e1666f42a..1dba9724c2 100644\n--- a/examples/vhost/main.c\n+++ b/examples/vhost/main.c\n@@ -2060,6 +2060,13 @@ main(int argc, char *argv[])\n \tRTE_LCORE_FOREACH_WORKER(lcore_id)\n \t\trte_eal_wait_lcore(lcore_id);\n \n+\tfor (i = 0; i < dma_count; i++) {\n+\t\tif (rte_vhost_async_dma_unconfigure(dmas_id[i], 0) < 0) {\n+\t\t\tRTE_LOG(ERR, VHOST_PORT, \"Failed to unconfigure DMA in vhost.\\n\");\n+\t\t\trte_exit(EXIT_FAILURE, \"Cannot use given DMA device\\n\");\n+\t\t}\n+\t}\n+\n \t/* clean up the EAL */\n \trte_eal_cleanup();\n \n",
    "prefixes": [
        "v1",
        "2/2"
    ]
}