get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 99784,
    "url": "https://patches.dpdk.org/api/patches/99784/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210927122650.30881-12-nipun.gupta@nxp.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20210927122650.30881-12-nipun.gupta@nxp.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210927122650.30881-12-nipun.gupta@nxp.com",
    "date": "2021-09-27T12:26:50",
    "name": "[11/11] common/dpaax: fix paddr to vaddr invalid conversion",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "bc197da79e9017ee9c744a5c7264f97ca6d4065f",
    "submitter": {
        "id": 471,
        "url": "https://patches.dpdk.org/api/people/471/?format=api",
        "name": "Nipun Gupta",
        "email": "nipun.gupta@nxp.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210927122650.30881-12-nipun.gupta@nxp.com/mbox/",
    "series": [
        {
            "id": 19191,
            "url": "https://patches.dpdk.org/api/series/19191/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=19191",
            "date": "2021-09-27T12:26:39",
            "name": "NXP DPAAx Bus and PMD changes",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/19191/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/99784/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/99784/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 6A7CFA0548;\n\tMon, 27 Sep 2021 14:28:09 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B961C41158;\n\tMon, 27 Sep 2021 14:27:11 +0200 (CEST)",
            "from inva021.nxp.com (inva021.nxp.com [92.121.34.21])\n by mails.dpdk.org (Postfix) with ESMTP id 8B39F410ED;\n Mon, 27 Sep 2021 14:26:57 +0200 (CEST)",
            "from inva021.nxp.com (localhost [127.0.0.1])\n by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 6C5B6201434;\n Mon, 27 Sep 2021 14:26:57 +0200 (CEST)",
            "from aprdc01srsp001v.ap-rdc01.nxp.com\n (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16])\n by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 270D2201127;\n Mon, 27 Sep 2021 14:26:57 +0200 (CEST)",
            "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 5DD7E183AD07;\n Mon, 27 Sep 2021 20:26:56 +0800 (+08)"
        ],
        "From": "nipun.gupta@nxp.com",
        "To": "dev@dpdk.org",
        "Cc": "thomas@monjalon.net, ferruh.yigit@intel.com, hemant.agrawal@nxp.com,\n sachin.saxena@nxp.com, stable@dpdk.org, Gagandeep Singh <g.singh@nxp.com>,\n Nipun Gupta <nipun.gupta@nxp.com>",
        "Date": "Mon, 27 Sep 2021 17:56:50 +0530",
        "Message-Id": "<20210927122650.30881-12-nipun.gupta@nxp.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20210927122650.30881-1-nipun.gupta@nxp.com>",
        "References": "<20210927122650.30881-1-nipun.gupta@nxp.com>",
        "X-Virus-Scanned": "ClamAV using ClamSMTP",
        "Subject": "[dpdk-dev] [PATCH 11/11] common/dpaax: fix paddr to vaddr invalid\n conversion",
        "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": "From: Gagandeep Singh <g.singh@nxp.com>\n\nIf some of the VA entries of table are somehow not populated and are\nNULL, it can add offset to NULL and return the invalid VA in PA to\nVA conversion.\n\nIn this patch, adding a check if the VA entry has valid address only\nthen add offset and return VA.\n\nFixes: 2f3d633aa593 (\"common/dpaax: add library for PA/VA translation table\")\nCc: stable@dpdk.org\n\nSigned-off-by: Gagandeep Singh <g.singh@nxp.com>\nSigned-off-by: Nipun Gupta <nipun.gupta@nxp.com>\n---\n drivers/common/dpaax/dpaax_iova_table.h | 8 +++++++-\n 1 file changed, 7 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/common/dpaax/dpaax_iova_table.h b/drivers/common/dpaax/dpaax_iova_table.h\nindex 230fba8ba0..d7087ee7ca 100644\n--- a/drivers/common/dpaax/dpaax_iova_table.h\n+++ b/drivers/common/dpaax/dpaax_iova_table.h\n@@ -1,5 +1,5 @@\n /* SPDX-License-Identifier: BSD-3-Clause\n- * Copyright 2018 NXP\n+ * Copyright 2018-2021 NXP\n  */\n \n #ifndef _DPAAX_IOVA_TABLE_H_\n@@ -101,6 +101,12 @@ dpaax_iova_table_get_va(phys_addr_t paddr) {\n \n \t\t/* paddr > entry->start && paddr <= entry->(start+len) */\n \t\tindex = (paddr_align - entry[i].start)/DPAAX_MEM_SPLIT;\n+\t\t/* paddr is within range, but no vaddr entry ever written\n+\t\t * at index\n+\t\t */\n+\t\tif ((void *)entry[i].pages[index] == NULL)\n+\t\t\treturn NULL;\n+\n \t\tvaddr = (void *)((uintptr_t)entry[i].pages[index] + offset);\n \t\tbreak;\n \t} while (1);\n",
    "prefixes": [
        "11/11"
    ]
}