get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 77440,
    "url": "http://patches.dpdk.org/api/patches/77440/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200911152938.8019-5-steven.lariau@arm.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<20200911152938.8019-5-steven.lariau@arm.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200911152938.8019-5-steven.lariau@arm.com",
    "date": "2020-09-11T15:29:37",
    "name": "[4/5] lib/stack: reload head when pop fails",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "bd81aac8f9056c1a8834377e09adb2cda5076d94",
    "submitter": {
        "id": 1862,
        "url": "http://patches.dpdk.org/api/people/1862/?format=api",
        "name": "Steven Lariau",
        "email": "steven.lariau@arm.com"
    },
    "delegate": {
        "id": 24651,
        "url": "http://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200911152938.8019-5-steven.lariau@arm.com/mbox/",
    "series": [
        {
            "id": 12150,
            "url": "http://patches.dpdk.org/api/series/12150/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12150",
            "date": "2020-09-11T15:29:33",
            "name": "lib/stack: improve lockfree C11 implementation",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/12150/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/77440/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/77440/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 8320BA04BB;\n\tFri, 11 Sep 2020 17:31:48 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id EFF1B1C112;\n\tFri, 11 Sep 2020 17:31:31 +0200 (CEST)",
            "from foss.arm.com (foss.arm.com [217.140.110.172])\n by dpdk.org (Postfix) with ESMTP id 6DA801C113\n for <dev@dpdk.org>; Fri, 11 Sep 2020 17:31:30 +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 EC34B147A;\n Fri, 11 Sep 2020 08:31:29 -0700 (PDT)",
            "from localhost.localdomain (unknown [10.57.10.210])\n by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6E1333F73C;\n Fri, 11 Sep 2020 08:31:28 -0700 (PDT)"
        ],
        "From": "Steven Lariau <steven.lariau@arm.com>",
        "To": "Gage Eads <gage.eads@intel.com>,\n\tOlivier Matz <olivier.matz@6wind.com>",
        "Cc": "dev@dpdk.org, nd@arm.com, dharmik.thakkar@arm.com,\n Steven Lariau <steven.lariau@arm.com>",
        "Date": "Fri, 11 Sep 2020 16:29:37 +0100",
        "Message-Id": "<20200911152938.8019-5-steven.lariau@arm.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200911152938.8019-1-steven.lariau@arm.com>",
        "References": "<20200911152938.8019-1-steven.lariau@arm.com>",
        "Subject": "[dpdk-dev] [PATCH 4/5] lib/stack: reload head when pop fails",
        "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": "List head must be loaded right before continue (when failed to\nfind the new head).\nWithout this, one thread might keep trying and failing to pop items\nwithout ever loading the new correct head.\n\nSigned-off-by: Steven Lariau <steven.lariau@arm.com>\nReviewed-by: Dharmik Thakkar <dharmik.thakkar@arm.com>\nReviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>\n---\n lib/librte_stack/rte_stack_lf_c11.h | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/lib/librte_stack/rte_stack_lf_c11.h b/lib/librte_stack/rte_stack_lf_c11.h\nindex 2bc639419..adb9f590d 100644\n--- a/lib/librte_stack/rte_stack_lf_c11.h\n+++ b/lib/librte_stack/rte_stack_lf_c11.h\n@@ -133,8 +133,10 @@ __rte_stack_lf_pop_elems(struct rte_stack_lf_list *list,\n \t\t/* If NULL was encountered, the list was modified while\n \t\t * traversing it. Retry.\n \t\t */\n-\t\tif (i != num)\n+\t\tif (i != num) {\n+\t\t\told_head = list->head;\n \t\t\tcontinue;\n+\t\t}\n \n \t\tnew_head.top = tmp;\n \t\tnew_head.cnt = old_head.cnt + 1;\n",
    "prefixes": [
        "4/5"
    ]
}