get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 37883,
    "url": "https://patches.dpdk.org/api/patches/37883/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/bdb00f0616396df58355dc9bf09850a6d36e7959.1523448978.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": "<bdb00f0616396df58355dc9bf09850a6d36e7959.1523448978.git.anatoly.burakov@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/bdb00f0616396df58355dc9bf09850a6d36e7959.1523448978.git.anatoly.burakov@intel.com",
    "date": "2018-04-11T12:29:54",
    "name": "[dpdk-dev,v6,19/70] net/enic: use contiguous allocation for DMA memory",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "31ebd8e6db2f15a3d739eec4059da89de83fa41b",
    "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/bdb00f0616396df58355dc9bf09850a6d36e7959.1523448978.git.anatoly.burakov@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/37883/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/37883/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 C78601B6D7;\n\tWed, 11 Apr 2018 14:31:23 +0200 (CEST)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n\tby dpdk.org (Postfix) with ESMTP id B4D371BB97\n\tfor <dev@dpdk.org>; Wed, 11 Apr 2018 14:30:54 +0200 (CEST)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t11 Apr 2018 05:30:54 -0700",
            "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby orsmga003.jf.intel.com with ESMTP; 11 Apr 2018 05:30:50 -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\tw3BCUnpX012339; Wed, 11 Apr 2018 13:30:49 +0100",
            "from sivswdev01.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev01.ir.intel.com with ESMTP id w3BCUnNV013647;\n\tWed, 11 Apr 2018 13:30:49 +0100",
            "(from aburakov@localhost)\n\tby sivswdev01.ir.intel.com with LOCAL id w3BCUnBW013641;\n\tWed, 11 Apr 2018 13:30:49 +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,436,1517904000\"; d=\"scan'208\";a=\"42487924\"",
        "From": "Anatoly Burakov <anatoly.burakov@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "John Daley <johndale@cisco.com>, Hyong Youb Kim <hyonkim@cisco.com>,\n\tkeith.wiles@intel.com, jianfeng.tan@intel.com,\n\tandras.kovacs@ericsson.com, laszlo.vadkeri@ericsson.com,\n\tbenjamin.walker@intel.com, bruce.richardson@intel.com,\n\tthomas@monjalon.net, konstantin.ananyev@intel.com,\n\tkuralamudhan.ramakrishnan@intel.com, louise.m.daly@intel.com,\n\tnelio.laranjeiro@6wind.com, yskoh@mellanox.com, pepperjo@japf.ch,\n\tjerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com,\n\tolivier.matz@6wind.com, shreyansh.jain@nxp.com,\n\tgowrishankar.m@linux.vnet.ibm.com",
        "Date": "Wed, 11 Apr 2018 13:29:54 +0100",
        "Message-Id": "<bdb00f0616396df58355dc9bf09850a6d36e7959.1523448978.git.anatoly.burakov@intel.com>",
        "X-Mailer": "git-send-email 1.7.0.7",
        "In-Reply-To": [
            "<cover.1523448978.git.anatoly.burakov@intel.com>",
            "<cover.1523448978.git.anatoly.burakov@intel.com>"
        ],
        "References": [
            "<cover.1523448978.git.anatoly.burakov@intel.com>",
            "<cover.1523296700.git.anatoly.burakov@intel.com>\n\t<cover.1523448978.git.anatoly.burakov@intel.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH v6 19/70] net/enic: 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: John Daley <johndale@cisco.com>\nTested-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>\nTested-by: Hemant Agrawal <hemant.agrawal@nxp.com>\nTested-by: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>\n---\n drivers/net/enic/enic_main.c | 9 ++++-----\n 1 file changed, 4 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c\nindex 69ad425..94e8e68 100644\n--- a/drivers/net/enic/enic_main.c\n+++ b/drivers/net/enic/enic_main.c\n@@ -343,8 +343,8 @@ enic_alloc_consistent(void *priv, size_t size,\n \tstruct enic *enic = (struct enic *)priv;\n \tstruct enic_memzone_entry *mze;\n \n-\trz = rte_memzone_reserve_aligned((const char *)name,\n-\t\t\t\t\t size, SOCKET_ID_ANY, 0, ENIC_ALIGN);\n+\trz = rte_memzone_reserve_aligned((const char *)name, size,\n+\t\t\tSOCKET_ID_ANY, RTE_MEMZONE_IOVA_CONTIG, ENIC_ALIGN);\n \tif (!rz) {\n \t\tpr_err(\"%s : Failed to allocate memory requested for %s\\n\",\n \t\t\t__func__, name);\n@@ -888,9 +888,8 @@ int enic_alloc_wq(struct enic *enic, uint16_t queue_idx,\n \t\tinstance++);\n \n \twq->cqmsg_rz = rte_memzone_reserve_aligned((const char *)name,\n-\t\t\t\t\t\t   sizeof(uint32_t),\n-\t\t\t\t\t\t   SOCKET_ID_ANY, 0,\n-\t\t\t\t\t\t   ENIC_ALIGN);\n+\t\t\tsizeof(uint32_t), SOCKET_ID_ANY,\n+\t\t\tRTE_MEMZONE_IOVA_CONTIG, ENIC_ALIGN);\n \tif (!wq->cqmsg_rz)\n \t\treturn -ENOMEM;\n \n",
    "prefixes": [
        "dpdk-dev",
        "v6",
        "19/70"
    ]
}