get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 130083,
    "url": "http://patchwork.dpdk.org/api/patches/130083/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230810123633.2455-3-gmuthukrishn@marvell.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20230810123633.2455-3-gmuthukrishn@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230810123633.2455-3-gmuthukrishn@marvell.com",
    "date": "2023-08-10T12:36:32",
    "name": "[v2,2/3] test/dma: test vchan reconfiguration",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "b6a20a74a57bfbcc7c71f83e33982aca343cf67c",
    "submitter": {
        "id": 2301,
        "url": "http://patchwork.dpdk.org/api/people/2301/?format=api",
        "name": "Gowrishankar Muthukrishnan",
        "email": "gmuthukrishn@marvell.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230810123633.2455-3-gmuthukrishn@marvell.com/mbox/",
    "series": [
        {
            "id": 29158,
            "url": "http://patchwork.dpdk.org/api/series/29158/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29158",
            "date": "2023-08-10T12:36:30",
            "name": "test/dma: add vchan reconfig and SG tests",
            "version": 2,
            "mbox": "http://patchwork.dpdk.org/series/29158/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/130083/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/130083/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 353D343026;\n\tThu, 10 Aug 2023 14:36:55 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4D74543254;\n\tThu, 10 Aug 2023 14:36:49 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 0583F43258\n for <dev@dpdk.org>; Thu, 10 Aug 2023 14:36:47 +0200 (CEST)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 37A8YNXN021056; Thu, 10 Aug 2023 05:36:47 -0700",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3scj5man46-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Thu, 10 Aug 2023 05:36:47 -0700",
            "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Thu, 10 Aug 2023 05:36:45 -0700",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend\n Transport; Thu, 10 Aug 2023 05:36:45 -0700",
            "from BG-LT91401.marvell.com (BG-LT91401.marvell.com [10.28.168.34])\n by maili.marvell.com (Postfix) with ESMTP id 2C0653F70AB;\n Thu, 10 Aug 2023 05:36:42 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0220;\n bh=aYc3ukxnUfzPb9xCKXIKSUb5JPUSBesyXW+zdQLOGiY=;\n b=kwMVR9mR5R16nS6WQtYDXjQI0kZ7Cnh8pkJyrcAX98/ac13bt1TLNfQ4G59yNzSa9k4H\n JdWQfENEK1Gutfwv3nFow/kUYez+97jG2zj/QGMXU805RdgdPd+kZ9GrPvOTzHuWT6JD\n 7zIoYz5tUjDehgiRifio7o7SCv23api8jXDj15VU+TKMl/YoIrnThGP3zaREeJWVvDEp\n ioW1Ye/j7Gr+jWJXbCcQkGyRl6wv6T/kSZeJC0KWxctTo2iGtnyvSgZKwqq8JeTkTdE7\n +pPtxrBe9xBogK5sGoJ927+aaBs8ERgTnXiI3nXK8vDp1j0rGh9rWFyjhz8Op19YAklt UA==",
        "From": "Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<anoobj@marvell.com>, Chengwen Feng <fengchengwen@huawei.com>, \"Vamsi\n Attunuru\" <vattunuru@marvell.com>, Vidya Sagar Velumuri\n <vvelumuri@marvell.com>, Gowrishankar Muthukrishnan\n <gmuthukrishn@marvell.com>",
        "Subject": "[PATCH v2 2/3] test/dma: test vchan reconfiguration",
        "Date": "Thu, 10 Aug 2023 18:06:32 +0530",
        "Message-ID": "<20230810123633.2455-3-gmuthukrishn@marvell.com>",
        "X-Mailer": "git-send-email 2.21.0",
        "In-Reply-To": "<20230810123633.2455-1-gmuthukrishn@marvell.com>",
        "References": "<20230810115933.2164-1-gmuthukrishn@marvell.com>\n <20230810123633.2455-1-gmuthukrishn@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "1YuzNLvL7vF2zq-ZbyUAzZ1HP0TU_uGL",
        "X-Proofpoint-GUID": "1YuzNLvL7vF2zq-ZbyUAzZ1HP0TU_uGL",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26\n definitions=2023-08-10_10,2023-08-10_01,2023-05-22_02",
        "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": "Reconfigure vchan count and validate if new count is effective.\n\nSigned-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>\n---\n app/test/test_dmadev_api.c | 51 ++++++++++++++++++++++++++++++++++++++\n 1 file changed, 51 insertions(+)",
    "diff": "diff --git a/app/test/test_dmadev_api.c b/app/test/test_dmadev_api.c\nindex a1646472b0..5cdd87e162 100644\n--- a/app/test/test_dmadev_api.c\n+++ b/app/test/test_dmadev_api.c\n@@ -355,6 +355,56 @@ test_dma_start_stop(void)\n \treturn TEST_SUCCESS;\n }\n \n+static int\n+test_dma_reconfigure(void)\n+{\n+\tstruct rte_dma_vchan_conf vchan_conf = { 0 };\n+\tstruct rte_dma_conf dev_conf = { 0 };\n+\tstruct rte_dma_info dev_info = { 0 };\n+\tuint16_t cfg_vchans;\n+\tint ret;\n+\n+\tret = rte_dma_info_get(test_dev_id, &dev_info);\n+\tRTE_TEST_ASSERT_SUCCESS(ret, \"Failed to obtain device info, %d\", ret);\n+\n+\t/* At least two vchans required for the test */\n+\tif (dev_info.max_vchans < 2)\n+\t\treturn TEST_SKIPPED;\n+\n+\t/* Setup one vchan for later test */\n+\tret = setup_one_vchan();\n+\tRTE_TEST_ASSERT_SUCCESS(ret, \"Failed to setup one vchan, %d\", ret);\n+\n+\tret = rte_dma_start(test_dev_id);\n+\tRTE_TEST_ASSERT_SUCCESS(ret, \"Failed to start, %d\", ret);\n+\n+\tret = rte_dma_stop(test_dev_id);\n+\tRTE_TEST_ASSERT_SUCCESS(ret, \"Failed to stop, %d\", ret);\n+\n+\t/* Check reconfigure and vchan setup after device stopped */\n+\tcfg_vchans = dev_conf.nb_vchans = (dev_info.max_vchans - 1);\n+\n+\tret = rte_dma_configure(test_dev_id, &dev_conf);\n+\tRTE_TEST_ASSERT_SUCCESS(ret, \"Failed to configure, %d\", ret);\n+\n+\tvchan_conf.direction = RTE_DMA_DIR_MEM_TO_MEM;\n+\tvchan_conf.nb_desc = dev_info.min_desc;\n+\tret = rte_dma_vchan_setup(test_dev_id, 0, &vchan_conf);\n+\tRTE_TEST_ASSERT_SUCCESS(ret, \"Failed to setup vchan, %d\", ret);\n+\n+\tret = rte_dma_start(test_dev_id);\n+\tRTE_TEST_ASSERT_SUCCESS(ret, \"Failed to start, %d\", ret);\n+\n+\tret = rte_dma_info_get(test_dev_id, &dev_info);\n+\tRTE_TEST_ASSERT_SUCCESS(ret, \"Failed to obtain device info, %d\", ret);\n+\tRTE_TEST_ASSERT_EQUAL(dev_info.nb_vchans, cfg_vchans, \"incorrect reconfiguration\");\n+\n+\tret = rte_dma_stop(test_dev_id);\n+\tRTE_TEST_ASSERT_SUCCESS(ret, \"Failed to stop, %d\", ret);\n+\n+\treturn TEST_SUCCESS;\n+}\n+\n static int\n test_dma_stats(void)\n {\n@@ -567,6 +617,7 @@ test_dma_api(uint16_t dev_id)\n \tDMA_TEST_API_RUN(test_dma_configure);\n \tDMA_TEST_API_RUN(test_dma_vchan_setup);\n \tDMA_TEST_API_RUN(test_dma_start_stop);\n+\tDMA_TEST_API_RUN(test_dma_reconfigure);\n \tDMA_TEST_API_RUN(test_dma_stats);\n \tDMA_TEST_API_RUN(test_dma_dump);\n \tDMA_TEST_API_RUN(test_dma_completed);\n",
    "prefixes": [
        "v2",
        "2/3"
    ]
}