get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 119085,
    "url": "http://patches.dpdk.org/api/patches/119085/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20221025082540.100618-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": "<20221025082540.100618-3-xuan.ding@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20221025082540.100618-3-xuan.ding@intel.com",
    "date": "2022-10-25T08:25:40",
    "name": "[v8,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/20221025082540.100618-3-xuan.ding@intel.com/mbox/",
    "series": [
        {
            "id": 25413,
            "url": "http://patches.dpdk.org/api/series/25413/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=25413",
            "date": "2022-10-25T08:25:38",
            "name": "vhost: introduce DMA vchannel unconfiguration",
            "version": 8,
            "mbox": "http://patches.dpdk.org/series/25413/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/119085/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/119085/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 C0C76A0543;\n\tTue, 25 Oct 2022 10:29:33 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id AC0E342BD0;\n\tTue, 25 Oct 2022 10:29:32 +0200 (CEST)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by mails.dpdk.org (Postfix) with ESMTP id 5F6C542BC8\n for <dev@dpdk.org>; Tue, 25 Oct 2022 10:29:30 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 25 Oct 2022 01:29:29 -0700",
            "from npg-dpdk-xuan-cbdma.sh.intel.com ([10.67.111.102])\n by orsmga001.jf.intel.com with ESMTP; 25 Oct 2022 01:29:27 -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=1666686570; x=1698222570;\n h=from:to:cc:subject:date:message-id:in-reply-to: references;\n bh=oR0Ba99HU4ZtbSLvytXvaQnw9aj5eJukT4ZwUkPlyQ4=;\n b=RKINXrLZnKFOBJLnabYZi0yjfMCSLHaebZ3ClmzXytS7gcVZrJxeRnaK\n 73IOayulO+CPhE8uvp+0pea5eVQ2wDqrwdFe3nLnjs3QGsgVOvCzKGk46\n rQbQRET8NVl3XoeYLt2OrFej/0uqRgKac8uQu0tPhpQy0nBk2ZUfToGuG\n kRcTJRLeCkgYepqgrz7mClk5h/eX2MtYYDp8AC8gcQHkjX/3MtP16pW0M\n dpErfpeVtIZMa8fntbWFy1keU5mXEX6Qkx84f5wNzEad5sOWfsG9EIIFB\n +wjNkHmno6BNEpaKSNZ31UV8/jBPDRDCJLplC8WCU20ubyEzba7ck18KG w==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10510\"; a=\"305234261\"",
            "E=Sophos;i=\"5.95,211,1661842800\"; d=\"scan'208\";a=\"305234261\"",
            "E=McAfee;i=\"6500,9779,10510\"; a=\"664833394\"",
            "E=Sophos;i=\"5.95,211,1661842800\"; d=\"scan'208\";a=\"664833394\""
        ],
        "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 weix.ling@intel.com, cheng1.jiang@intel.com, yuanx.wang@intel.com,\n wenwux.ma@intel.com, Xuan Ding <xuan.ding@intel.com>",
        "Subject": "[PATCH v8 2/2] examples/vhost: unconfigure DMA vchannel",
        "Date": "Tue, 25 Oct 2022 08:25:40 +0000",
        "Message-Id": "<20221025082540.100618-3-xuan.ding@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20221025082540.100618-1-xuan.ding@intel.com>",
        "References": "<20220814140442.82525-1-xuan.ding@intel.com>\n <20221025082540.100618-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\nvChannel 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": [
        "v8",
        "2/2"
    ]
}