get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 118434,
    "url": "http://patches.dpdk.org/api/patches/118434/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20221018152221.86341-3-xuan.ding@intel.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<20221018152221.86341-3-xuan.ding@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20221018152221.86341-3-xuan.ding@intel.com",
    "date": "2022-10-18T15:22:21",
    "name": "[v6,2/2] examples/vhost: unconfigure DMA vchannel",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "11861ba1ebaf956d0af23a1d1f4ed97cbe742b29",
    "submitter": {
        "id": 1401,
        "url": "http://patches.dpdk.org/api/people/1401/?format=api",
        "name": "Ding, Xuan",
        "email": "xuan.ding@intel.com"
    },
    "delegate": {
        "id": 2642,
        "url": "http://patches.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20221018152221.86341-3-xuan.ding@intel.com/mbox/",
    "series": [
        {
            "id": 25286,
            "url": "http://patches.dpdk.org/api/series/25286/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=25286",
            "date": "2022-10-18T15:22:19",
            "name": "vhost: introduce DMA vchannel unconfiguration",
            "version": 6,
            "mbox": "http://patches.dpdk.org/series/25286/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/118434/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/118434/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 89987A0560;\n\tTue, 18 Oct 2022 17:25:26 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4C1C841147;\n\tTue, 18 Oct 2022 17:25:23 +0200 (CEST)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by mails.dpdk.org (Postfix) with ESMTP id EEFE74021D\n for <dev@dpdk.org>; Tue, 18 Oct 2022 17:25:21 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 18 Oct 2022 08:25:21 -0700",
            "from npg-dpdk-xuan-cbdma.sh.intel.com ([10.67.111.102])\n by fmsmga002.fm.intel.com with ESMTP; 18 Oct 2022 08:25:18 -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=1666106722; x=1697642722;\n h=from:to:cc:subject:date:message-id:in-reply-to: references;\n bh=HYnGNBEfLpaFNjAv72GAkIslYko9BKcbdAD0nagL21I=;\n b=A1HDS9hXWhmNocwnplLO6DLQOJ/c0mPUDl70qN7M8hirv6NME7+FUYpV\n fK8erUEdm+qW32TiEU+RJ8GcCq7Re2wEsgRjR5kgCjYuvfsUGUUzWycAe\n 4snxjrgP3wCjn6DWpXujhif7kRblDsdxW3gxUzz2xs7DZQykBJFWcCFBn\n Z0GyX5oURCOYW7VUqs5ODQTweQVPBzLGELU2UsJ8INLL98W2kpbarijzK\n ZSgECgzXYaE9xzGT6mYFn3UQwNqpGAUin2SyC4Uq85dsHMFCadp0v0TQU\n 9ol7A9Tr1fa096lGcmMb9omNefM9CNy4Sjwyd1zSBu0IXYobVk5FGjp+V Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10504\"; a=\"392444820\"",
            "E=Sophos;i=\"5.95,193,1661842800\"; d=\"scan'208\";a=\"392444820\"",
            "E=McAfee;i=\"6500,9779,10504\"; a=\"733686076\"",
            "E=Sophos;i=\"5.95,193,1661842800\"; d=\"scan'208\";a=\"733686076\""
        ],
        "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 v6 2/2] examples/vhost: unconfigure DMA vchannel",
        "Date": "Tue, 18 Oct 2022 15:22:21 +0000",
        "Message-Id": "<20221018152221.86341-3-xuan.ding@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20221018152221.86341-1-xuan.ding@intel.com>",
        "References": "<20220814140442.82525-1-xuan.ding@intel.com>\n <20221018152221.86341-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 applies rte_vhost_async_dma_unconfigure() to manually free\nDMA vchannels. Before unconfiguration, make sure the specified DMA\ndevice is no longer used by any vhost ports.\n\nSigned-off-by: Xuan Ding <xuan.ding@intel.com>\n---\n examples/vhost/main.c | 8 ++++++++\n 1 file changed, 8 insertions(+)",
    "diff": "diff --git a/examples/vhost/main.c b/examples/vhost/main.c\nindex ac78704d79..42e53a0f9a 100644\n--- a/examples/vhost/main.c\n+++ b/examples/vhost/main.c\n@@ -2066,6 +2066,14 @@ 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,\n+\t\t\t\t\"Failed to unconfigure DMA %d in vhost.\\n\", dmas_id[i]);\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": [
        "v6",
        "2/2"
    ]
}