get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 104946,
    "url": "http://patchwork.dpdk.org/api/patches/104946/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20211206121824.3493-18-nipun.gupta@nxp.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": "<20211206121824.3493-18-nipun.gupta@nxp.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211206121824.3493-18-nipun.gupta@nxp.com",
    "date": "2021-12-06T12:18:24",
    "name": "[17/17] net/pfe: fix for 32 bit and PPC compilation",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "139a8b60a0f4be97566c5e4e05d40d7370c298c2",
    "submitter": {
        "id": 471,
        "url": "http://patchwork.dpdk.org/api/people/471/?format=api",
        "name": "Nipun Gupta",
        "email": "nipun.gupta@nxp.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patchwork.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20211206121824.3493-18-nipun.gupta@nxp.com/mbox/",
    "series": [
        {
            "id": 20873,
            "url": "http://patchwork.dpdk.org/api/series/20873/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=20873",
            "date": "2021-12-06T12:18:07",
            "name": "features and fixes on NXP eth devices",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/20873/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/104946/comments/",
    "check": "fail",
    "checks": "http://patchwork.dpdk.org/api/patches/104946/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 9032CA034F;\n\tMon,  6 Dec 2021 13:20:16 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 410204277E;\n\tMon,  6 Dec 2021 13:18:49 +0100 (CET)",
            "from inva020.nxp.com (inva020.nxp.com [92.121.34.13])\n by mails.dpdk.org (Postfix) with ESMTP id 44ACB411C3;\n Mon,  6 Dec 2021 13:18:34 +0100 (CET)",
            "from inva020.nxp.com (localhost [127.0.0.1])\n by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 2827F1A134E;\n Mon,  6 Dec 2021 13:18:34 +0100 (CET)",
            "from aprdc01srsp001v.ap-rdc01.nxp.com\n (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16])\n by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id E575A1A06EF;\n Mon,  6 Dec 2021 13:18:33 +0100 (CET)",
            "from lsv03274.swis.in-blr01.nxp.com (lsv03274.swis.in-blr01.nxp.com\n [92.120.147.114])\n by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 4E169183AD05;\n Mon,  6 Dec 2021 20:18:33 +0800 (+08)"
        ],
        "From": "nipun.gupta@nxp.com",
        "To": "dev@dpdk.org",
        "Cc": "thomas@monjalon.net, ferruh.yigit@intel.com, hemant.agrawal@nxp.com,\n stable@dpdk.org, Sachin Saxena <sachin.saxena@nxp.com>",
        "Subject": "[PATCH 17/17] net/pfe: fix for 32 bit and PPC compilation",
        "Date": "Mon,  6 Dec 2021 17:48:24 +0530",
        "Message-Id": "<20211206121824.3493-18-nipun.gupta@nxp.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20211206121824.3493-1-nipun.gupta@nxp.com>",
        "References": "<20211206121824.3493-1-nipun.gupta@nxp.com>",
        "X-Virus-Scanned": "ClamAV using ClamSMTP",
        "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: Sachin Saxena <sachin.saxena@nxp.com>\n\nThis patch fixes compilation for 32 bit and power PC\ncompiler.\n\nFixes: 36220514de01 (\"net/pfe: add Rx/Tx\")\nCc: stable@dpdk.org\n\nSigned-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>\nSigned-off-by: Sachin Saxena <sachin.saxena@nxp.com>\n---\n drivers/net/pfe/pfe_hif.c     | 3 ++-\n drivers/net/pfe/pfe_hif_lib.c | 3 ++-\n 2 files changed, 4 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/pfe/pfe_hif.c b/drivers/net/pfe/pfe_hif.c\nindex eade726b2e..67efb8b3a7 100644\n--- a/drivers/net/pfe/pfe_hif.c\n+++ b/drivers/net/pfe/pfe_hif.c\n@@ -309,7 +309,8 @@ client_put_rxpacket(struct hif_rx_queue *queue,\n \n \n \tif (readl(&desc->ctrl) & CL_DESC_OWN) {\n-\t\tmbuf = rte_cpu_to_le_64(rte_pktmbuf_alloc(pool));\n+\t\tmbuf = (struct rte_mbuf *)\n+\t\t\trte_cpu_to_le_64((uintptr_t)rte_pktmbuf_alloc(pool));\n \t\tif (unlikely(!mbuf)) {\n \t\t\tPFE_PMD_WARN(\"Buffer allocation failure\\n\");\n \t\t\treturn NULL;\ndiff --git a/drivers/net/pfe/pfe_hif_lib.c b/drivers/net/pfe/pfe_hif_lib.c\nindex 799050dce3..2487273a7c 100644\n--- a/drivers/net/pfe/pfe_hif_lib.c\n+++ b/drivers/net/pfe/pfe_hif_lib.c\n@@ -50,7 +50,8 @@ pfe_hif_shm_init(struct hif_shm *hif_shm, struct rte_mempool *mb_pool)\n \thif_shm->rx_buf_pool_cnt = HIF_RX_DESC_NT;\n \n \tfor (i = 0; i < hif_shm->rx_buf_pool_cnt; i++) {\n-\t\tmbuf = rte_cpu_to_le_64(rte_pktmbuf_alloc(mb_pool));\n+\t\tmbuf = (struct rte_mbuf *)\n+\t\t\trte_cpu_to_le_64((uintptr_t)rte_pktmbuf_alloc(mb_pool));\n \t\tif (mbuf)\n \t\t\thif_shm->rx_buf_pool[i] = mbuf;\n \t\telse\n",
    "prefixes": [
        "17/17"
    ]
}