get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 132422,
    "url": "http://patches.dpdk.org/api/patches/132422/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231009120236.1641008-2-amitprakashs@marvell.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": "<20231009120236.1641008-2-amitprakashs@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231009120236.1641008-2-amitprakashs@marvell.com",
    "date": "2023-10-09T12:02:35",
    "name": "[v4,1/2] dmadev: offload to auto free DMA buffer",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "95c6c7ab93c852153377fda39e2877dc6d4f93ac",
    "submitter": {
        "id": 2699,
        "url": "http://patches.dpdk.org/api/people/2699/?format=api",
        "name": "Amit Prakash Shukla",
        "email": "amitprakashs@marvell.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20231009120236.1641008-2-amitprakashs@marvell.com/mbox/",
    "series": [
        {
            "id": 29770,
            "url": "http://patches.dpdk.org/api/series/29770/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=29770",
            "date": "2023-10-09T12:02:34",
            "name": "offload support to auto free dma buffer",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/29770/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/132422/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/132422/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 A5A8E4233C;\n\tMon,  9 Oct 2023 14:03:07 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 93AB040691;\n\tMon,  9 Oct 2023 14:03:07 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id 247FC40691\n for <dev@dpdk.org>; Mon,  9 Oct 2023 14:03:05 +0200 (CEST)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 398NU4ma010336; Mon, 9 Oct 2023 05:03:05 -0700",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3tkh9sm35k-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Mon, 09 Oct 2023 05:03:05 -0700",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Mon, 9 Oct 2023 05:03:03 -0700",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend\n Transport; Mon, 9 Oct 2023 05:03:03 -0700",
            "from localhost.localdomain (unknown [10.28.36.157])\n by maili.marvell.com (Postfix) with ESMTP id 30D353F7051;\n Mon,  9 Oct 2023 05:02:58 -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-type : content-transfer-encoding; s=pfpt0220;\n bh=6cHAIhPn9MrK8xuuZ3YvzO3/UZRbEigCrq/LMoZ8I84=;\n b=EaBKKzBxs/vXk8GKneHVGDNdklI86Up7c4KS0kunCm4aDaUWXecI8E1gPDSexYyvQ7Wp\n vAdIcD0A6/pKRjv34ud9QsSSu/A0HcxkPqvwlVFnpIN18X0sbjlNj8elNa8n3Xmnp741\n M1rWPF0Il7HIyCxBUm7H+8S62GAYUKADaBr7xiXnRr1/livEkxLRdtthFzjXSkPxdh8t\n dsjNibQdSmjTor0QftFi12EUrkBp1IaINMzFSZVbr+GeW14TuyKwxi34nqsUU9l4taAO\n D7qktageoYxtNXKU9X+jDLAtT2I6N/FoV6rkY/rNbv/qEfLSMIRho5GxgzQA4eJtWqnB 1A==",
        "From": "Amit Prakash Shukla <amitprakashs@marvell.com>",
        "To": "Chengwen Feng <fengchengwen@huawei.com>, Kevin Laatz\n <kevin.laatz@intel.com>, Bruce Richardson <bruce.richardson@intel.com>",
        "CC": "<dev@dpdk.org>, <jerinj@marvell.com>, <conor.walsh@intel.com>,\n <vattunuru@marvell.com>, <g.singh@nxp.com>,\n <sachin.saxena@oss.nxp.com>, <hemant.agrawal@nxp.com>,\n <cheng1.jiang@intel.com>, <ndabilpuram@marvell.com>,\n <anoobj@marvell.com>, <mb@smartsharesystems.com>,\n Amit Prakash Shukla <amitprakashs@marvell.com>",
        "Subject": "[PATCH v4 1/2] dmadev: offload to auto free DMA buffer",
        "Date": "Mon, 9 Oct 2023 17:32:35 +0530",
        "Message-ID": "<20231009120236.1641008-2-amitprakashs@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20231009120236.1641008-1-amitprakashs@marvell.com>",
        "References": "<20230928115031.259592-1-amitprakashs@marvell.com>\n <20231009120236.1641008-1-amitprakashs@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"UTF-8\"",
        "Content-Transfer-Encoding": "8bit",
        "X-Proofpoint-GUID": "1wyXw3UQy8tjkXA3O4ty4EVqrATok_fB",
        "X-Proofpoint-ORIG-GUID": "1wyXw3UQy8tjkXA3O4ty4EVqrATok_fB",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26\n definitions=2023-10-09_11,2023-10-09_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": "This changeset adds support in DMA library to auto free DMA buffer by\nhardware. On a supported hardware, application can pass on the mempool\ninformation as part of vchan config.\n\nSigned-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>\nAcked-by: Morten Brørup <mb@smartsharesystems.com>\nAcked-by: Anoob Joseph <anoobj@marvell.com>\n---\n lib/dmadev/rte_dmadev.h | 43 +++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 43 insertions(+)",
    "diff": "diff --git a/lib/dmadev/rte_dmadev.h b/lib/dmadev/rte_dmadev.h\nindex b157ab7600..493263a5d6 100644\n--- a/lib/dmadev/rte_dmadev.h\n+++ b/lib/dmadev/rte_dmadev.h\n@@ -269,6 +269,14 @@ int16_t rte_dma_next_dev(int16_t start_dev_id);\n  * must ensure that all memory addresses are valid and accessible by HW.\n  */\n #define RTE_DMA_CAPA_HANDLES_ERRORS\tRTE_BIT64(6)\n+/** Support auto free for source buffer once mem to dev transfer is completed.\n+ *\n+ * @note Even though the DMA driver has this capability, it may not support all\n+ * mempool drivers. If the mempool is not supported by the DMA driver,\n+ * rte_dma_vchan_setup() will fail.\n+ */\n+#define RTE_DMA_CAPA_M2D_AUTO_FREE      RTE_BIT64(7)\n+\n /** Support copy operation.\n  * This capability start with index of 32, so that it could leave gap between\n  * normal capability and ops capability.\n@@ -552,6 +560,26 @@ struct rte_dma_port_param {\n \tuint64_t reserved[2]; /**< Reserved for future fields. */\n };\n \n+/**\n+ * A structure used for offload auto free params.\n+ */\n+struct rte_dma_auto_free_param {\n+\tunion {\n+\t\tstruct {\n+\t\t\t/**\n+\t\t\t * Mempool from which buffer is allocated. Mempool info\n+\t\t\t * is used for freeing buffer by hardware.\n+\t\t\t *\n+\t\t\t * @note If the mempool is not supported by the DMA device,\n+\t\t\t * rte_dma_vchan_setup() will fail.\n+\t\t\t */\n+\t\t\tstruct rte_mempool *pool;\n+\t\t} m2d;\n+\t};\n+\t/** Reserved for future fields. */\n+\tuint64_t reserved[2];\n+};\n+\n /**\n  * A structure used to configure a virtual DMA channel.\n  *\n@@ -581,6 +609,14 @@ struct rte_dma_vchan_conf {\n \t * @see struct rte_dma_port_param\n \t */\n \tstruct rte_dma_port_param dst_port;\n+\t/** Buffer params to auto free buffer by hardware. To free the buffer\n+\t * by hardware, RTE_DMA_OP_FLAG_AUTO_FREE must be set while calling\n+\t * rte_dma_copy and rte_dma_copy_sg().\n+\t *\n+\t * @see RTE_DMA_OP_FLAG_AUTO_FREE\n+\t * @see struct rte_dma_auto_free_param\n+\t */\n+\tstruct rte_dma_auto_free_param auto_free;\n };\n \n /**\n@@ -818,6 +854,13 @@ struct rte_dma_sge {\n  * capability bit for this, driver should not return error if this flag was set.\n  */\n #define RTE_DMA_OP_FLAG_LLC     RTE_BIT64(2)\n+/** Auto free buffer flag.\n+ * Operation with this flag must issue command to hardware to free the DMA\n+ * buffer after DMA transfer is completed.\n+ *\n+ * @see struct rte_dma_vchan_conf::auto_free\n+ */\n+#define RTE_DMA_OP_FLAG_AUTO_FREE\tRTE_BIT64(3)\n /**@}*/\n \n /**\n",
    "prefixes": [
        "v4",
        "1/2"
    ]
}