get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 103018,
    "url": "http://patches.dpdk.org/api/patches/103018/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20211027081018.653746-3-feifei.wang2@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": "<20211027081018.653746-3-feifei.wang2@arm.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211027081018.653746-3-feifei.wang2@arm.com",
    "date": "2021-10-27T08:10:16",
    "name": "[v6,2/4] eal: use wait event for read pflock",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a151f79dc8328b76e9efec63e3ffd1e1454f8831",
    "submitter": {
        "id": 1771,
        "url": "http://patches.dpdk.org/api/people/1771/?format=api",
        "name": "Feifei Wang",
        "email": "feifei.wang2@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/20211027081018.653746-3-feifei.wang2@arm.com/mbox/",
    "series": [
        {
            "id": 20036,
            "url": "http://patches.dpdk.org/api/series/20036/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=20036",
            "date": "2021-10-27T08:10:14",
            "name": "add new definitions for wait scheme",
            "version": 6,
            "mbox": "http://patches.dpdk.org/series/20036/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/103018/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/103018/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 20D0FA0C45;\n\tWed, 27 Oct 2021 10:10:41 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1492A4068C;\n\tWed, 27 Oct 2021 10:10:36 +0200 (CEST)",
            "from foss.arm.com (foss.arm.com [217.140.110.172])\n by mails.dpdk.org (Postfix) with ESMTP id B911B410DD\n for <dev@dpdk.org>; Wed, 27 Oct 2021 10:10:33 +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 36B18106F;\n Wed, 27 Oct 2021 01:10:33 -0700 (PDT)",
            "from net-x86-dell-8268.shanghai.arm.com\n (net-x86-dell-8268.shanghai.arm.com [10.169.210.103])\n by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 97A443F70D;\n Wed, 27 Oct 2021 01:10:31 -0700 (PDT)"
        ],
        "From": "Feifei Wang <feifei.wang2@arm.com>",
        "To": "",
        "Cc": "dev@dpdk.org, nd@arm.com, Feifei Wang <feifei.wang2@arm.com>,\n Ruifeng Wang <ruifeng.wang@arm.com>",
        "Date": "Wed, 27 Oct 2021 16:10:16 +0800",
        "Message-Id": "<20211027081018.653746-3-feifei.wang2@arm.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20211027081018.653746-1-feifei.wang2@arm.com>",
        "References": "<20210902053253.3017858-1-feifei.wang2@arm.com>\n <20211027081018.653746-1-feifei.wang2@arm.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v6 2/4] eal: use wait event for read pflock",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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": "Instead of polling for read pflock update, use wait event scheme for\nthis case.\n\nSigned-off-by: Feifei Wang <feifei.wang2@arm.com>\nReviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>\n---\n lib/eal/include/generic/rte_pflock.h | 4 +---\n 1 file changed, 1 insertion(+), 3 deletions(-)",
    "diff": "diff --git a/lib/eal/include/generic/rte_pflock.h b/lib/eal/include/generic/rte_pflock.h\nindex e57c179ef2..7573b036bf 100644\n--- a/lib/eal/include/generic/rte_pflock.h\n+++ b/lib/eal/include/generic/rte_pflock.h\n@@ -121,9 +121,7 @@ rte_pflock_read_lock(rte_pflock_t *pf)\n \t\treturn;\n \n \t/* Wait for current write phase to complete. */\n-\twhile ((__atomic_load_n(&pf->rd.in, __ATOMIC_ACQUIRE)\n-\t\t& RTE_PFLOCK_WBITS) == w)\n-\t\trte_pause();\n+\trte_wait_event(&pf->rd.in, RTE_PFLOCK_WBITS, ==, w, __ATOMIC_ACQUIRE);\n }\n \n /**\n",
    "prefixes": [
        "v6",
        "2/4"
    ]
}