get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 95422,
    "url": "http://patchwork.dpdk.org/api/patches/95422/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20210706202841.661302-3-bruce.richardson@intel.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": "<20210706202841.661302-3-bruce.richardson@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210706202841.661302-3-bruce.richardson@intel.com",
    "date": "2021-07-06T20:28:34",
    "name": "[RFC,UPDATE,2/9] dmadev: change virtual addresses to IOVA",
    "commit_ref": null,
    "pull_url": null,
    "state": "rfc",
    "archived": true,
    "hash": "11fd10213e771a02988e2d63d129211368315bba",
    "submitter": {
        "id": 20,
        "url": "http://patchwork.dpdk.org/api/people/20/?format=api",
        "name": "Bruce Richardson",
        "email": "bruce.richardson@intel.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20210706202841.661302-3-bruce.richardson@intel.com/mbox/",
    "series": [
        {
            "id": 17674,
            "url": "http://patchwork.dpdk.org/api/series/17674/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=17674",
            "date": "2021-07-06T20:28:32",
            "name": "dmadev rfc suggested updates",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/17674/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/95422/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/95422/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 25D7FA0C48;\n\tTue,  6 Jul 2021 22:29:11 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 11EB141333;\n\tTue,  6 Jul 2021 22:29:11 +0200 (CEST)",
            "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n by mails.dpdk.org (Postfix) with ESMTP id A15DA4067C\n for <dev@dpdk.org>; Tue,  6 Jul 2021 22:29:09 +0200 (CEST)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 06 Jul 2021 13:29:07 -0700",
            "from silpixa00399126.ir.intel.com ([10.237.223.29])\n by FMSMGA003.fm.intel.com with ESMTP; 06 Jul 2021 13:29:06 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10037\"; a=\"196470315\"",
            "E=Sophos;i=\"5.83,329,1616482800\"; d=\"scan'208\";a=\"196470315\"",
            "E=Sophos;i=\"5.83,329,1616482800\"; d=\"scan'208\";a=\"486522064\""
        ],
        "X-ExtLoop1": "1",
        "From": "Bruce Richardson <bruce.richardson@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Chengwen Feng <fengchengwen@huawei.com>,\n Jerin Jacob <jerinjacobk@gmail.com>, Jerin Jacob <jerinj@marvell.com>,\n\t=?utf-8?q?Morten_Br=C3=B8rup?= <mb@smartsharesystems.com>,\n Bruce Richardson <bruce.richardson@intel.com>",
        "Date": "Tue,  6 Jul 2021 21:28:34 +0100",
        "Message-Id": "<20210706202841.661302-3-bruce.richardson@intel.com>",
        "X-Mailer": "git-send-email 2.30.2",
        "In-Reply-To": "<20210706202841.661302-1-bruce.richardson@intel.com>",
        "References": "<1625231891-2963-1-git-send-email-fengchengwen@huawei.com>\n <20210706202841.661302-1-bruce.richardson@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [RFC UPDATE PATCH 2/9] dmadev: change virtual addresses\n to IOVA",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "For 32-bit builds, iova's are 64-bit still, so to ensure we can still\nuse PA mode on 32-bit we need to convert all enqueue \"void *\" parameters\nto rte_iova_t\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n lib/dmadev/rte_dmadev.h      | 8 ++++----\n lib/dmadev/rte_dmadev_core.h | 4 ++--\n 2 files changed, 6 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/lib/dmadev/rte_dmadev.h b/lib/dmadev/rte_dmadev.h\nindex f74fc6adb..1659ceaf2 100644\n--- a/lib/dmadev/rte_dmadev.h\n+++ b/lib/dmadev/rte_dmadev.h\n@@ -133,8 +133,8 @@ typedef int32_t dma_cookie_t;\n  * dma_scatterlist - can hold scatter DMA operation request\n  */\n struct dma_scatterlist {\n-\tvoid *src;\n-\tvoid *dst;\n+\trte_iova_t src;\n+\trte_iova_t dst;\n \tuint32_t length;\n };\n \n@@ -505,7 +505,7 @@ rte_dmadev_queue_info_get(uint16_t dev_id, uint16_t vq_id,\n  */\n __rte_experimental\n static inline dma_cookie_t\n-rte_dmadev_copy(uint16_t dev_id, uint16_t vq_id, void *src, void *dst,\n+rte_dmadev_copy(uint16_t dev_id, uint16_t vq_id, rte_iova_t src, rte_iova_t dst,\n \t\tuint32_t length, uint64_t flags)\n {\n \tstruct rte_dmadev *dev = &rte_dmadevices[dev_id];\n@@ -579,7 +579,7 @@ rte_dmadev_copy_sg(uint16_t dev_id, uint16_t vq_id,\n __rte_experimental\n static inline dma_cookie_t\n rte_dmadev_fill(uint16_t dev_id, uint16_t vq_id, uint64_t pattern,\n-\t\tvoid *dst, uint32_t length, uint64_t flags)\n+\t\trte_iova_t dst, uint32_t length, uint64_t flags)\n {\n \tstruct rte_dmadev *dev = &rte_dmadevices[dev_id];\n \treturn (*dev->fill)(dev, vq_id, pattern, dst, length, flags);\ndiff --git a/lib/dmadev/rte_dmadev_core.h b/lib/dmadev/rte_dmadev_core.h\nindex a3afea251..80b56ed83 100644\n--- a/lib/dmadev/rte_dmadev_core.h\n+++ b/lib/dmadev/rte_dmadev_core.h\n@@ -17,7 +17,7 @@\n struct rte_dmadev;\n \n typedef dma_cookie_t (*dmadev_copy_t)(struct rte_dmadev *dev, uint16_t vq_id,\n-\t\t\t\t      void *src, void *dst,\n+\t\t\t\t      rte_iova_t src, rte_iova_t dst,\n \t\t\t\t      uint32_t length, uint64_t flags);\n /**< @internal Function used to enqueue a copy operation. */\n \n@@ -27,7 +27,7 @@ typedef dma_cookie_t (*dmadev_copy_sg_t)(struct rte_dmadev *dev, uint16_t vq_id,\n /**< @internal Function used to enqueue a scatter list copy operation. */\n \n typedef dma_cookie_t (*dmadev_fill_t)(struct rte_dmadev *dev, uint16_t vq_id,\n-\t\t\t\t      uint64_t pattern, void *dst,\n+\t\t\t\t      uint64_t pattern, rte_iova_t dst,\n \t\t\t\t      uint32_t length, uint64_t flags);\n /**< @internal Function used to enqueue a fill operation. */\n \n",
    "prefixes": [
        "RFC",
        "UPDATE",
        "2/9"
    ]
}