get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 81859,
    "url": "http://patchwork.dpdk.org/api/patches/81859/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20201023044343.13462-4-honnappa.nagarahalli@arm.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20201023044343.13462-4-honnappa.nagarahalli@arm.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20201023044343.13462-4-honnappa.nagarahalli@arm.com",
    "date": "2020-10-23T04:43:41",
    "name": "[v3,3/5] test/ring: move common function to header file",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "136878b544dbded1459af9fef546047a85244b65",
    "submitter": {
        "id": 1045,
        "url": "http://patchwork.dpdk.org/api/people/1045/?format=api",
        "name": "Honnappa Nagarahalli",
        "email": "honnappa.nagarahalli@arm.com"
    },
    "delegate": {
        "id": 24651,
        "url": "http://patchwork.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20201023044343.13462-4-honnappa.nagarahalli@arm.com/mbox/",
    "series": [
        {
            "id": 13245,
            "url": "http://patchwork.dpdk.org/api/series/13245/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=13245",
            "date": "2020-10-23T04:43:38",
            "name": "lib/ring: add zero copy APIs",
            "version": 3,
            "mbox": "http://patchwork.dpdk.org/series/13245/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/81859/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/81859/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id C1E7EA04DE;\n\tFri, 23 Oct 2020 06:45:04 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id A4D1B72D8;\n\tFri, 23 Oct 2020 06:44:25 +0200 (CEST)",
            "from foss.arm.com (foss.arm.com [217.140.110.172])\n by dpdk.org (Postfix) with ESMTP id 86DFF6CAC\n for <dev@dpdk.org>; Fri, 23 Oct 2020 06:44:22 +0200 (CEST)",
            "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14])\n by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0BBA9113E;\n Thu, 22 Oct 2020 21:44:21 -0700 (PDT)",
            "from qc2400f-1.austin.arm.com (qc2400f-1.austin.arm.com\n [10.118.12.27])\n by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EF73F3F66B;\n Thu, 22 Oct 2020 21:44:20 -0700 (PDT)"
        ],
        "From": "Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>",
        "To": "dev@dpdk.org, honnappa.nagarahalli@arm.com, konstantin.ananyev@intel.com",
        "Cc": "olivier.matz@6wind.com, david.marchand@redhat.com,\n dharmik.thakkar@arm.com,\n ruifeng.wang@arm.com, nd@arm.com",
        "Date": "Thu, 22 Oct 2020 23:43:41 -0500",
        "Message-Id": "<20201023044343.13462-4-honnappa.nagarahalli@arm.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20201023044343.13462-1-honnappa.nagarahalli@arm.com>",
        "References": "<20200224203931.21256-1-honnappa.nagarahalli@arm.com>\n <20201023044343.13462-1-honnappa.nagarahalli@arm.com>",
        "Subject": "[dpdk-dev] [PATCH v3 3/5] test/ring: move common function to header\n\tfile",
        "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 <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": "Move test_ring_inc_ptr to header file so that it can be used by\nfunctions in other files.\n\nSigned-off-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>\nReviewed-by: Dharmik Thakkar <dharmik.thakkar@arm.com>\n---\n app/test/test_ring.c | 11 -----------\n app/test/test_ring.h | 11 +++++++++++\n 2 files changed, 11 insertions(+), 11 deletions(-)",
    "diff": "diff --git a/app/test/test_ring.c b/app/test/test_ring.c\nindex a62cb263b..329d538a9 100644\n--- a/app/test/test_ring.c\n+++ b/app/test/test_ring.c\n@@ -243,17 +243,6 @@ test_ring_deq_impl(struct rte_ring *r, void **obj, int esize, unsigned int n,\n \t\t\tNULL);\n }\n \n-static void**\n-test_ring_inc_ptr(void **obj, int esize, unsigned int n)\n-{\n-\t/* Legacy queue APIs? */\n-\tif ((esize) == -1)\n-\t\treturn ((void **)obj) + n;\n-\telse\n-\t\treturn (void **)(((uint32_t *)obj) +\n-\t\t\t\t\t(n * esize / sizeof(uint32_t)));\n-}\n-\n static void\n test_ring_mem_init(void *obj, unsigned int count, int esize)\n {\ndiff --git a/app/test/test_ring.h b/app/test/test_ring.h\nindex d4b15af7c..16697ee02 100644\n--- a/app/test/test_ring.h\n+++ b/app/test/test_ring.h\n@@ -42,6 +42,17 @@ test_ring_create(const char *name, int esize, unsigned int count,\n \t\t\t\t\t\t(socket_id), (flags));\n }\n \n+static inline void**\n+test_ring_inc_ptr(void **obj, int esize, unsigned int n)\n+{\n+\t/* Legacy queue APIs? */\n+\tif ((esize) == -1)\n+\t\treturn ((void **)obj) + n;\n+\telse\n+\t\treturn (void **)(((uint32_t *)obj) +\n+\t\t\t\t\t(n * esize / sizeof(uint32_t)));\n+}\n+\n static __rte_always_inline unsigned int\n test_ring_enqueue(struct rte_ring *r, void **obj, int esize, unsigned int n,\n \t\t\tunsigned int api_type)\n",
    "prefixes": [
        "v3",
        "3/5"
    ]
}