get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 59954,
    "url": "http://patches.dpdk.org/api/patches/59954/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1569562904-43950-8-git-send-email-gavin.hu@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": "<1569562904-43950-8-git-send-email-gavin.hu@arm.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1569562904-43950-8-git-send-email-gavin.hu@arm.com",
    "date": "2019-09-27T05:41:44",
    "name": "[v7,7/7] event/opdl: use new API to save cycles on aarch64",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "6fb5ed4d40dc1fbbad7aeba3be96583fe027c71d",
    "submitter": {
        "id": 1018,
        "url": "http://patches.dpdk.org/api/people/1018/?format=api",
        "name": "Gavin Hu",
        "email": "gavin.hu@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/1569562904-43950-8-git-send-email-gavin.hu@arm.com/mbox/",
    "series": [
        {
            "id": 6559,
            "url": "http://patches.dpdk.org/api/series/6559/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=6559",
            "date": "2019-09-27T05:41:37",
            "name": "use WFE for aarch64",
            "version": 7,
            "mbox": "http://patches.dpdk.org/series/6559/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/59954/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/59954/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 F31B63977;\n\tFri, 27 Sep 2019 07:42:45 +0200 (CEST)",
            "from foss.arm.com (foss.arm.com [217.140.110.172])\n\tby dpdk.org (Postfix) with ESMTP id 008922C39\n\tfor <dev@dpdk.org>; Fri, 27 Sep 2019 07:42:41 +0200 (CEST)",
            "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14])\n\tby usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8650E142F;\n\tThu, 26 Sep 2019 22:42:41 -0700 (PDT)",
            "from net-arm-thunderx2-01.test.ast.arm.com\n\t(net-arm-thunderx2-01.shanghai.arm.com [10.169.40.40])\n\tby usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id\n\tD90EC3F67D; Thu, 26 Sep 2019 22:45:14 -0700 (PDT)"
        ],
        "From": "Gavin Hu <gavin.hu@arm.com>",
        "To": "dev@dpdk.org",
        "Cc": "nd@arm.com, thomas@monjalon.net, stephen@networkplumber.org,\n\themant.agrawal@nxp.com, jerinj@marvell.com, pbhagavatula@marvell.com, \n\tHonnappa.Nagarahalli@arm.com, ruifeng.wang@arm.com, phil.yang@arm.com,\n\tsteve.capper@arm.com",
        "Date": "Fri, 27 Sep 2019 13:41:44 +0800",
        "Message-Id": "<1569562904-43950-8-git-send-email-gavin.hu@arm.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": [
            "<1569562904-43950-1-git-send-email-gavin.hu@arm.com>",
            "<1561911676-37718-1-git-send-email-gavin.hu@arm.com>"
        ],
        "References": [
            "<1569562904-43950-1-git-send-email-gavin.hu@arm.com>",
            "<1561911676-37718-1-git-send-email-gavin.hu@arm.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH v7 7/7] event/opdl: use new API to save cycles on\n\taarch64",
        "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 the new API to wait in low power state instead of continuous\npolling to save CPU cycles and power.\n\nSigned-off-by: Gavin Hu <gavin.hu@arm.com>\nReviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>\nReviewed-by: Jerin Jacob <jerinj@marvell.com>\n---\n drivers/event/opdl/opdl_ring.c | 5 ++---\n 1 file changed, 2 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/event/opdl/opdl_ring.c b/drivers/event/opdl/opdl_ring.c\nindex e8b29e2..f446fa3 100644\n--- a/drivers/event/opdl/opdl_ring.c\n+++ b/drivers/event/opdl/opdl_ring.c\n@@ -17,6 +17,7 @@\n #include <rte_memory.h>\n #include <rte_memzone.h>\n #include <rte_eal_memconfig.h>\n+#include <rte_atomic.h>\n \n #include \"opdl_ring.h\"\n #include \"opdl_log.h\"\n@@ -475,9 +476,7 @@ opdl_ring_input_multithread(struct opdl_ring *t, const void *entries,\n \t/* If another thread started inputting before this one, but hasn't\n \t * finished, we need to wait for it to complete to update the tail.\n \t */\n-\twhile (unlikely(__atomic_load_n(&s->shared.tail, __ATOMIC_ACQUIRE) !=\n-\t\t\told_head))\n-\t\trte_pause();\n+\trte_wait_until_equal_acquire_32(&s->shared.tail, old_head);\n \n \t__atomic_store_n(&s->shared.tail, old_head + num_entries,\n \t\t\t__ATOMIC_RELEASE);\n",
    "prefixes": [
        "v7",
        "7/7"
    ]
}