get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 40737,
    "url": "https://patches.dpdk.org/api/patches/40737/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20180607094322.14312-24-mk@semihalf.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": "<20180607094322.14312-24-mk@semihalf.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180607094322.14312-24-mk@semihalf.com",
    "date": "2018-06-07T09:43:19",
    "name": "[dpdk-dev,v3,24/27] net/ena: change memory type",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "e5564dacbed07c69af24d027e38e90e9c9cbabf4",
    "submitter": {
        "id": 786,
        "url": "https://patches.dpdk.org/api/people/786/?format=api",
        "name": "Michal Krawczyk",
        "email": "mk@semihalf.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20180607094322.14312-24-mk@semihalf.com/mbox/",
    "series": [
        {
            "id": 26,
            "url": "https://patches.dpdk.org/api/series/26/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=26",
            "date": "2018-06-07T09:43:00",
            "name": "net/ena: new features and fixes",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/26/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/40737/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/40737/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 A83B41066;\n\tThu,  7 Jun 2018 11:44:22 +0200 (CEST)",
            "from mail-lf0-f65.google.com (mail-lf0-f65.google.com\n\t[209.85.215.65]) by dpdk.org (Postfix) with ESMTP id 3B35D23A\n\tfor <dev@dpdk.org>; Thu,  7 Jun 2018 11:44:21 +0200 (CEST)",
            "by mail-lf0-f65.google.com with SMTP id j13-v6so13640503lfb.13\n\tfor <dev@dpdk.org>; Thu, 07 Jun 2018 02:44:21 -0700 (PDT)",
            "from mkPC.semihalf.local (31-172-191-173.noc.fibertech.net.pl.\n\t[31.172.191.173]) by smtp.gmail.com with ESMTPSA id\n\tp28-v6sm3612368lfh.24.2018.06.07.02.44.17\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 07 Jun 2018 02:44:18 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=semihalf-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=iuNYJm2f3Qqb0zkpxWGvb6JEx0BLKtjH6YhnsrScW00=;\n\tb=ihFQKSIv4Y9xj99jAz+5/HxB2aaMnqViQuAkLrki1MbZPMH/IJ51KUVtK5bN/M5WCa\n\tcDKpFqUt+LdIh5o9cQ9cYaX5POxQT4Out5V2SA1qzBIn5RAb8SckR+edpmNEQfK1BQY2\n\toe027MHUFdd7fGRijftIniqsNuZfe127QiZlhc8qAykp9Uzx/l45nZYwWOdsvfH8Qm1G\n\tuJi9U7pgnIaaqODCLpN6UHJbXT3DD0AeoQUrx7dC5Jgmi1PX+Nyqk2eadQKcJAmsWfDN\n\tNrR5RLcjn5UWMrnQhaNVc5AwmMoqyooQrO4A7VvGioz0rZIZHchio43zVaSFG83zIIlK\n\tZzIA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=iuNYJm2f3Qqb0zkpxWGvb6JEx0BLKtjH6YhnsrScW00=;\n\tb=X2XS3o4Mdfivt/L/U41nhszzFbkTkwIKCIA55jTi9sx91nilf/4WLuHKquGNws4S5F\n\tc94rn4CPsoCTPXlRhSgLLOZz+IaI1Eevm1ndyzMag2Rk02Pt6op4dP2nFm2jb18CRjOV\n\tV7s19u+IX0v3yQRI/lEGS1oN8h9zJXsFCgsBahk/bg7LhRcoeeEX1fYG6HN6acgFzVZO\n\tDH68vCQ6I7fWNszrsgUdXWZLt/HiCDo/CHBYhTEzb9uVLfNtjQxhrVHHW1bHPXXuqLGM\n\tiBvRPcrIBAyJfmSILlAacPlVPcAsZxhAZeCodIcZaVEynxDeEtWvqmu8pU8SmZYxUCnJ\n\tliFA==",
        "X-Gm-Message-State": "APt69E2IuzP52sEqC86wAI5Os7LsNMFt47NhiJbD8ugTjBw975nsAKW8\n\tRMOWD2sEoJ0+wLD0FdnTaf5eAw==",
        "X-Google-Smtp-Source": "ADUXVKJbJzwndzdBbv+sjVtRynVHwgeLQNBQPMzq+qksor8N8PezxyQDlWyBcLLhlUL9zwKP8yGd6Q==",
        "X-Received": "by 2002:a19:1797:: with SMTP id\n\t23-v6mr859921lfx.95.1528364660832; \n\tThu, 07 Jun 2018 02:44:20 -0700 (PDT)",
        "From": "Michal Krawczyk <mk@semihalf.com>",
        "To": "Marcin Wojtas <mw@semihalf.com>, Michal Krawczyk <mk@semihalf.com>,\n\tGuy Tzalik <gtzalik@amazon.com>, Evgeny Schemeilin <evgenys@amazon.com>",
        "Cc": "dev@dpdk.org,\n\tmatua@amazon.com,\n\tRafal Kozik <rk@semihalf.com>",
        "Date": "Thu,  7 Jun 2018 11:43:19 +0200",
        "Message-Id": "<20180607094322.14312-24-mk@semihalf.com>",
        "X-Mailer": "git-send-email 2.14.1",
        "In-Reply-To": "<20180607094322.14312-1-mk@semihalf.com>",
        "References": "<20180607094322.14312-1-mk@semihalf.com>",
        "Subject": "[dpdk-dev] [PATCH v3 24/27] net/ena: change memory type",
        "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": "From: Rafal Kozik <rk@semihalf.com>\n\nENA_MEM_ALLOC_NODE not need to use contiguous physical memory.\nAlso using memset without checking if allocation succeed can cause\nsegmentation fault.\n\nTo avoid both issue use rte_zmalloc_socket.\n\nFixes: 3d3edc265fc8 (\"net/ena: make coherent memory allocation NUMA-aware\")\n\nSigned-off-by: Rafal Kozik <rk@semihalf.com>\nAcked-by: Michal Krawczyk <mk@semihalf.com>\n---\n drivers/net/ena/base/ena_plat_dpdk.h | 9 +--------\n 1 file changed, 1 insertion(+), 8 deletions(-)",
    "diff": "diff --git a/drivers/net/ena/base/ena_plat_dpdk.h b/drivers/net/ena/base/ena_plat_dpdk.h\nindex d30153e92..22d7a9cb1 100644\n--- a/drivers/net/ena/base/ena_plat_dpdk.h\n+++ b/drivers/net/ena/base/ena_plat_dpdk.h\n@@ -248,15 +248,8 @@ extern uint32_t ena_alloc_cnt;\n \n #define ENA_MEM_ALLOC_NODE(dmadev, size, virt, node, dev_node) \\\n \tdo {\t\t\t\t\t\t\t\t\\\n-\t\tconst struct rte_memzone *mz;\t\t\t\t\\\n-\t\tchar z_name[RTE_MEMZONE_NAMESIZE];\t\t\t\\\n \t\tENA_TOUCH(dmadev); ENA_TOUCH(dev_node);\t\t\t\\\n-\t\tsnprintf(z_name, sizeof(z_name),\t\t\t\\\n-\t\t\t\t\"ena_alloc_%d\", ena_alloc_cnt++);\t\\\n-\t\tmz = rte_memzone_reserve(z_name, size, node,\t\t\\\n-\t\t\t\tRTE_MEMZONE_IOVA_CONTIG);\t\t\\\n-\t\tmemset(mz->addr, 0, size);\t\t\t\t\\\n-\t\tvirt = mz->addr;\t\t\t\t\t\\\n+\t\tvirt = rte_zmalloc_socket(NULL, size, 0, node);\t\t\\\n \t} while (0)\n \n #define ENA_MEM_ALLOC(dmadev, size) rte_zmalloc(NULL, size, 1)\n",
    "prefixes": [
        "dpdk-dev",
        "v3",
        "24/27"
    ]
}