get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 53013,
    "url": "https://patches.dpdk.org/api/patches/53013/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20190423165335.4025-4-stephen@networkplumber.org/",
    "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": "<20190423165335.4025-4-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190423165335.4025-4-stephen@networkplumber.org",
    "date": "2019-04-23T16:53:34",
    "name": "[v2,3/4] net/ring: use rte_calloc_socket",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "d33beff137e70810d228da4539671b6184db6d4b",
    "submitter": {
        "id": 27,
        "url": "https://patches.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "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/20190423165335.4025-4-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 4431,
            "url": "https://patches.dpdk.org/api/series/4431/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=4431",
            "date": "2019-04-23T16:53:31",
            "name": "net/ring: driver fixes",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/4431/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/53013/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/53013/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 C931A1B4E3;\n\tTue, 23 Apr 2019 18:53:56 +0200 (CEST)",
            "from mail-pf1-f195.google.com (mail-pf1-f195.google.com\n\t[209.85.210.195]) by dpdk.org (Postfix) with ESMTP id A548E1B0FC\n\tfor <dev@dpdk.org>; Tue, 23 Apr 2019 18:53:48 +0200 (CEST)",
            "by mail-pf1-f195.google.com with SMTP id 9so7771988pfj.13\n\tfor <dev@dpdk.org>; Tue, 23 Apr 2019 09:53:48 -0700 (PDT)",
            "from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127])\n\tby smtp.gmail.com with ESMTPSA id\n\t71sm47194750pfs.36.2019.04.23.09.53.46\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 23 Apr 2019 09:53:46 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=networkplumber-org.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=e2OAOyI51TjoT/4QB1GtTC1iGYMT4d/z1QSisRfvmcw=;\n\tb=Kd6cabj142ar0x+I/SgKoJtqcjHKYLkF/X7ka0tgb62IAZSQRidrgaTVwMqJZ3C6gA\n\tBlP3R1Aw7CO3FszRliJUfOh07xJ6b5KrXx0VbzSGjDmU7q04387THK7QYlfdFPCX7ub8\n\tOonMZpALlppl7fSXjI/MntIA2YrFYHm1H53YUd4o9/uDKERZgPqn9g5Bsuf9leEQdoyZ\n\tL9C7ZnSgx/6ntUSnSwlMx+UMUVqE8NXukyneBQwUgQBBZZxlxbUklTIj8Y3ii5mgqs2d\n\tYD7/1aVJPXAbeaiJcs5YkDHGhkB6G7hpN1eh76O0qBs04l8snmbutUir63bTvfbgZjQQ\n\t/+5A==",
        "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:mime-version:content-transfer-encoding;\n\tbh=e2OAOyI51TjoT/4QB1GtTC1iGYMT4d/z1QSisRfvmcw=;\n\tb=qLRycfGY8zNWBC4hHMiMLKvbs/cyxy1XToZ4BXty6UL0YgG4p2w4epW8xT4/vm9uUd\n\t/Yx+p7h99lB4hzNjuO3iJhdTdlO3NkHXlu3SnfneE69bMx8WDZCeCAOUJ1gg9TCNOA7P\n\tvnfq5lYH6fjniYElyBVu4NnUN9RVInlx4yg9l6hao5xpkdUj94s6EXXiAQ15tj4Y6Dph\n\twDTMdm4QsHCR2nHpp4jMxrOqbuI8yuaUkGdIJSZ7g5DGNO9YlQrfZxF9PWG1qdMIu1DJ\n\tn3xfCasFB5gpLa/qqbik8gbuQ7y1waIjMDuq/B8xtYZBn70X4LCjmrYmimIOlk2XT5oy\n\teLJw==",
        "X-Gm-Message-State": "APjAAAUgNx25CMurs0GuwI6Qv0pXjxM60omANZMA2WknvWR0/LyKrI2h\n\tho0aLEsHTNcYAoB9kXp0/ldjgcmtyWQ=",
        "X-Google-Smtp-Source": "APXvYqyrBtenf8wbps/1u13Oi3PLebBn2e2wWvoKENArhzdFXarHCXyz7Oc4eDAQ1WMTgqdziI3Avg==",
        "X-Received": "by 2002:a62:4351:: with SMTP id\n\tq78mr27334923pfa.86.1556038427902; \n\tTue, 23 Apr 2019 09:53:47 -0700 (PDT)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "bruce.richardson@intel.com",
        "Cc": "dev@dpdk.org,\n\tStephen Hemminger <stephen@networkplumber.org>",
        "Date": "Tue, 23 Apr 2019 09:53:34 -0700",
        "Message-Id": "<20190423165335.4025-4-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20190423165335.4025-1-stephen@networkplumber.org>",
        "References": "<20190423164812.3427-1-stephen@networkplumber.org>\n\t<20190423165335.4025-1-stephen@networkplumber.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v2 3/4] net/ring: use rte_calloc_socket",
        "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://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Use rte_calloc_socket instead of computing size.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n drivers/net/ring/rte_eth_ring.c | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c\nindex 2e4ca3b16a1c..0355f2b7c4d8 100644\n--- a/drivers/net/ring/rte_eth_ring.c\n+++ b/drivers/net/ring/rte_eth_ring.c\n@@ -270,15 +270,15 @@ do_eth_dev_ring_create(const char *name,\n \tPMD_LOG(INFO, \"Creating rings-backed ethdev on numa socket %u\",\n \t\t\tnuma_node);\n \n-\trx_queues_local = rte_zmalloc_socket(name,\n-\t\t\tsizeof(void *) * nb_rx_queues, 0, numa_node);\n+\trx_queues_local = rte_calloc_socket(name, nb_rx_queues,\n+\t\t\t\t\t    sizeof(void *), 0, numa_node);\n \tif (rx_queues_local == NULL) {\n \t\trte_errno = ENOMEM;\n \t\tgoto error;\n \t}\n \n-\ttx_queues_local = rte_zmalloc_socket(name,\n-\t\t\tsizeof(void *) * nb_tx_queues, 0, numa_node);\n+\ttx_queues_local = rte_calloc_socket(name, nb_tx_queues,\n+\t\t\t\t\t    sizeof(void *), 0, numa_node);\n \tif (tx_queues_local == NULL) {\n \t\trte_errno = ENOMEM;\n \t\tgoto error;\n",
    "prefixes": [
        "v2",
        "3/4"
    ]
}