get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 37566,
    "url": "https://patches.dpdk.org/api/patches/37566/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/12eff10c6f1a51306249460fb7603aa75b765e09.1523218215.git.anatoly.burakov@intel.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": "<12eff10c6f1a51306249460fb7603aa75b765e09.1523218215.git.anatoly.burakov@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/12eff10c6f1a51306249460fb7603aa75b765e09.1523218215.git.anatoly.burakov@intel.com",
    "date": "2018-04-08T20:17:54",
    "name": "[dpdk-dev,v4,21/70] net/qede: use contiguous allocation for DMA memory",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "020b1a654ecac769df907fcf333eb0c089a8111c",
    "submitter": {
        "id": 4,
        "url": "https://patches.dpdk.org/api/people/4/?format=api",
        "name": "Burakov, Anatoly",
        "email": "anatoly.burakov@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/12eff10c6f1a51306249460fb7603aa75b765e09.1523218215.git.anatoly.burakov@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/37566/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/37566/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 30D8D1B720;\n\tSun,  8 Apr 2018 22:20:07 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id 478C41B69F\n\tfor <dev@dpdk.org>; Sun,  8 Apr 2018 22:18:54 +0200 (CEST)",
            "from fmsmga005.fm.intel.com ([10.253.24.32])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t08 Apr 2018 13:18:52 -0700",
            "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby fmsmga005.fm.intel.com with ESMTP; 08 Apr 2018 13:18:48 -0700",
            "from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com\n\t[10.237.217.45])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\tw38KIm1D021130; Sun, 8 Apr 2018 21:18:48 +0100",
            "from sivswdev01.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev01.ir.intel.com with ESMTP id w38KImS5011031;\n\tSun, 8 Apr 2018 21:18:48 +0100",
            "(from aburakov@localhost)\n\tby sivswdev01.ir.intel.com with LOCAL id w38KImR1011027;\n\tSun, 8 Apr 2018 21:18:48 +0100"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.48,424,1517904000\"; d=\"scan'208\";a=\"218751413\"",
        "From": "Anatoly Burakov <anatoly.burakov@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Rasesh Mody <rasesh.mody@cavium.com>,\n\tHarish Patil <harish.patil@cavium.com>,\n\tShahed Shaikh <shahed.shaikh@cavium.com>, keith.wiles@intel.com,\n\tjianfeng.tan@intel.com, andras.kovacs@ericsson.com,\n\tlaszlo.vadkeri@ericsson.com, benjamin.walker@intel.com,\n\tbruce.richardson@intel.com, thomas@monjalon.net,\n\tkonstantin.ananyev@intel.com, kuralamudhan.ramakrishnan@intel.com,\n\tlouise.m.daly@intel.com, nelio.laranjeiro@6wind.com,\n\tyskoh@mellanox.com, pepperjo@japf.ch, jerin.jacob@caviumnetworks.com, \n\themant.agrawal@nxp.com, olivier.matz@6wind.com, shreyansh.jain@nxp.com,\n\tgowrishankar.m@linux.vnet.ibm.com",
        "Date": "Sun,  8 Apr 2018 21:17:54 +0100",
        "Message-Id": "<12eff10c6f1a51306249460fb7603aa75b765e09.1523218215.git.anatoly.burakov@intel.com>",
        "X-Mailer": "git-send-email 1.7.0.7",
        "In-Reply-To": [
            "<cover.1523218215.git.anatoly.burakov@intel.com>",
            "<cover.1523218215.git.anatoly.burakov@intel.com>"
        ],
        "References": [
            "<cover.1523218215.git.anatoly.burakov@intel.com>",
            "<cover.1522797505.git.anatoly.burakov@intel.com>\n\t<cover.1523218215.git.anatoly.burakov@intel.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH v4 21/70] net/qede: use contiguous allocation for\n\tDMA memory",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "All hardware drivers should allocate IOVA-contiguous\nmemzones for their hardware resources.\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\nAcked-by: Harish Patil <harish.patil@cavium.com>\n---\n\nNotes:\n    v4:\n    - Use new memzone flag instead of new API\n    - Remove experimental API from build files\n    \n    v3:\n    - Add experimental API to build files\n    \n    v3:\n    - Moved the patch earlier in the patchset\n    - Allowed experimental API in Makefile\n\n drivers/net/qede/base/bcm_osal.c | 7 ++++---\n 1 file changed, 4 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/net/qede/base/bcm_osal.c b/drivers/net/qede/base/bcm_osal.c\nindex 91017b8..f550412 100644\n--- a/drivers/net/qede/base/bcm_osal.c\n+++ b/drivers/net/qede/base/bcm_osal.c\n@@ -135,8 +135,8 @@ void *osal_dma_alloc_coherent(struct ecore_dev *p_dev,\n \tif (core_id == (unsigned int)LCORE_ID_ANY)\n \t\tcore_id = rte_get_master_lcore();\n \tsocket_id = rte_lcore_to_socket_id(core_id);\n-\tmz = rte_memzone_reserve_aligned(mz_name, size,\n-\t\t\t\t\t socket_id, 0, RTE_CACHE_LINE_SIZE);\n+\tmz = rte_memzone_reserve_aligned(mz_name, size, socket_id,\n+\t\t\tRTE_MEMZONE_IOVA_CONTIG, RTE_CACHE_LINE_SIZE);\n \tif (!mz) {\n \t\tDP_ERR(p_dev, \"Unable to allocate DMA memory \"\n \t\t       \"of size %zu bytes - %s\\n\",\n@@ -174,7 +174,8 @@ void *osal_dma_alloc_coherent_aligned(struct ecore_dev *p_dev,\n \tif (core_id == (unsigned int)LCORE_ID_ANY)\n \t\tcore_id = rte_get_master_lcore();\n \tsocket_id = rte_lcore_to_socket_id(core_id);\n-\tmz = rte_memzone_reserve_aligned(mz_name, size, socket_id, 0, align);\n+\tmz = rte_memzone_reserve_aligned(mz_name, size, socket_id,\n+\t\t\tRTE_MEMZONE_IOVA_CONTIG, align);\n \tif (!mz) {\n \t\tDP_ERR(p_dev, \"Unable to allocate DMA memory \"\n \t\t       \"of size %zu bytes - %s\\n\",\n",
    "prefixes": [
        "dpdk-dev",
        "v4",
        "21/70"
    ]
}