get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 115953,
    "url": "http://patches.dpdk.org/api/patches/115953/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220906052149.21033-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": "<20220906052149.21033-3-xuan.ding@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220906052149.21033-3-xuan.ding@intel.com",
    "date": "2022-09-06T05:21:49",
    "name": "[v2,2/2] examples/vhost: unconfigure DMA vchannel",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "debe4e271b5ad46204546c273a725a73df8f35ff",
    "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/20220906052149.21033-3-xuan.ding@intel.com/mbox/",
    "series": [
        {
            "id": 24549,
            "url": "http://patches.dpdk.org/api/series/24549/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=24549",
            "date": "2022-09-06T05:21:47",
            "name": "vhost: introduce DMA vchannel unconfiguration",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/24549/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/115953/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/115953/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 77DF2A0542;\n\tTue,  6 Sep 2022 07:22:16 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2716B427F3;\n\tTue,  6 Sep 2022 07:22:13 +0200 (CEST)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by mails.dpdk.org (Postfix) with ESMTP id 5D5BB427F2\n for <dev@dpdk.org>; Tue,  6 Sep 2022 07:22:11 +0200 (CEST)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 05 Sep 2022 22:22:10 -0700",
            "from npg-dpdk-xuan-cbdma.sh.intel.com ([10.67.111.163])\n by fmsmga004.fm.intel.com with ESMTP; 05 Sep 2022 22:22:08 -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=1662441731; x=1693977731;\n h=from:to:cc:subject:date:message-id:in-reply-to: references;\n bh=5RRyQit9hcH7RH0YvJUM9W3CF6YmY6LH0Z1FGx6ysDU=;\n b=OmADJYlOYxQrHSMaectiqL8VmCUS8NhCgTvo8VEqRnT2Uih/eQQYcd50\n SGJBjF3sWC0aY9hFS0OKvQd54cA/KxzMNJlDVa8jfuKdFiQtrctyxrxXa\n dP54pu+7QnQTC+ypbX2xoGD6tUolG72pgDbBUSxU78VZ6jjCkDfBlnX9c\n 0a1bxyOGaa4eI+C6j2s38boHba5SxiQ8zSpH7hKhjgXFz07xY9T82Shab\n bUwgs1MbSwlHWjNjsruFG2lYpyOdH/p3j1itjaFQeB7IPEk2rK18s0hke\n 6TUVuzOkDZvLOnP723zKeDxM65Td2kmz+UPvztKVauROkS0qG+lgmXAg4 Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10461\"; a=\"297817986\"",
            "E=Sophos;i=\"5.93,293,1654585200\"; d=\"scan'208\";a=\"297817986\"",
            "E=Sophos;i=\"5.93,293,1654585200\"; d=\"scan'208\";a=\"682267065\""
        ],
        "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 v2 2/2] examples/vhost: unconfigure DMA vchannel",
        "Date": "Tue,  6 Sep 2022 05:21:49 +0000",
        "Message-Id": "<20220906052149.21033-3-xuan.ding@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20220906052149.21033-1-xuan.ding@intel.com>",
        "References": "<20220814140442.82525-1-xuan.ding@intel.com>\n <20220906052149.21033-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() API\nto manually free 'dma_copy_track' array instead of waiting\nuntil the program ends to be released.\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..1754d9ee27 100644\n--- a/examples/vhost/main.c\n+++ b/examples/vhost/main.c\n@@ -1624,6 +1624,13 @@ destroy_device(int vid)\n \t\tdma_bind[vid].dmas[VIRTIO_TXQ].async_enabled = false;\n \t}\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 \trte_free(vdev);\n }\n \n",
    "prefixes": [
        "v2",
        "2/2"
    ]
}