get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 125757,
    "url": "http://patches.dpdk.org/api/patches/125757/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230404124840.1898-6-david.marchand@redhat.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": "<20230404124840.1898-6-david.marchand@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230404124840.1898-6-david.marchand@redhat.com",
    "date": "2023-04-04T12:48:29",
    "name": "[v3,05/16] graph: annotate graph lock",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "90c674ddaa7bdd1cd65b721818bf830daa75cb2c",
    "submitter": {
        "id": 1173,
        "url": "http://patches.dpdk.org/api/people/1173/?format=api",
        "name": "David Marchand",
        "email": "david.marchand@redhat.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230404124840.1898-6-david.marchand@redhat.com/mbox/",
    "series": [
        {
            "id": 27617,
            "url": "http://patches.dpdk.org/api/series/27617/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=27617",
            "date": "2023-04-04T12:48:24",
            "name": "Enable lock annotations on most libraries and drivers",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/27617/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/125757/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/125757/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 70EA0428CD;\n\tTue,  4 Apr 2023 14:49:27 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B041F42D29;\n\tTue,  4 Apr 2023 14:49:13 +0200 (CEST)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by mails.dpdk.org (Postfix) with ESMTP id 6C09242C54\n for <dev@dpdk.org>; Tue,  4 Apr 2023 14:49:12 +0200 (CEST)",
            "from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com\n [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n us-mta-29-gZU-JEs4M5awdzzQm_u7tQ-1; Tue, 04 Apr 2023 08:49:08 -0400",
            "from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com\n [10.11.54.4])\n (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n (No client certificate requested)\n by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 63C7C858F09;\n Tue,  4 Apr 2023 12:49:08 +0000 (UTC)",
            "from dmarchan.redhat.com (unknown [10.45.225.38])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 4DD372027061;\n Tue,  4 Apr 2023 12:49:07 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1680612551;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=X1M/43rTTW/W5AHsm4ogjA9bjbH/hJuhWVzpR+6qmLM=;\n b=EKtZwIxNLPIqaFp22neEI0rGu72FVAXmx0beChCTXbGA2eAxriaIim17aNifwn5Dgi6kxT\n k/erPqr9hHoV78B8hdxW1SFZk0MQR044D3TN+u2J1WTdLx2JUM+9ovdtAmcSMjMz3ba9DL\n rolO7KuEcbMT64KmG9Fqa/umUzREhIY=",
        "X-MC-Unique": "gZU-JEs4M5awdzzQm_u7tQ-1",
        "From": "David Marchand <david.marchand@redhat.com>",
        "To": "dev@dpdk.org",
        "Cc": "thomas@monjalon.net, Jerin Jacob <jerinj@marvell.com>,\n Kiran Kumar K <kirankumark@marvell.com>,\n Nithin Dabilpuram <ndabilpuram@marvell.com>",
        "Subject": "[PATCH v3 05/16] graph: annotate graph lock",
        "Date": "Tue,  4 Apr 2023 14:48:29 +0200",
        "Message-Id": "<20230404124840.1898-6-david.marchand@redhat.com>",
        "In-Reply-To": "<20230404124840.1898-1-david.marchand@redhat.com>",
        "References": "<20230224081642.2566619-1-david.marchand@redhat.com>\n <20230404124840.1898-1-david.marchand@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.1 on 10.11.54.4",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain; charset=\"US-ASCII\"; x-default=true",
        "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"
    },
    "content": "Export internal lock and annotate associated helper.\n\nSigned-off-by: David Marchand <david.marchand@redhat.com>\n---\n lib/graph/graph.c         | 10 ++++++++--\n lib/graph/graph_private.h | 10 ++++++++--\n 2 files changed, 16 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/lib/graph/graph.c b/lib/graph/graph.c\nindex a839a2803b..5582631b53 100644\n--- a/lib/graph/graph.c\n+++ b/lib/graph/graph.c\n@@ -30,16 +30,22 @@ graph_list_head_get(void)\n \treturn &graph_list;\n }\n \n+rte_spinlock_t *\n+graph_spinlock_get(void)\n+{\n+\treturn &graph_lock;\n+}\n+\n void\n graph_spinlock_lock(void)\n {\n-\trte_spinlock_lock(&graph_lock);\n+\trte_spinlock_lock(graph_spinlock_get());\n }\n \n void\n graph_spinlock_unlock(void)\n {\n-\trte_spinlock_unlock(&graph_lock);\n+\trte_spinlock_unlock(graph_spinlock_get());\n }\n \n static int\ndiff --git a/lib/graph/graph_private.h b/lib/graph/graph_private.h\nindex 7d1b30b8ac..eacdef45f0 100644\n--- a/lib/graph/graph_private.h\n+++ b/lib/graph/graph_private.h\n@@ -10,6 +10,7 @@\n \n #include <rte_common.h>\n #include <rte_eal.h>\n+#include <rte_spinlock.h>\n \n #include \"rte_graph.h\"\n #include \"rte_graph_worker.h\"\n@@ -148,20 +149,25 @@ STAILQ_HEAD(graph_head, graph);\n  */\n struct graph_head *graph_list_head_get(void);\n \n+rte_spinlock_t *\n+graph_spinlock_get(void);\n+\n /* Lock functions */\n /**\n  * @internal\n  *\n  * Take a lock on the graph internal spin lock.\n  */\n-void graph_spinlock_lock(void);\n+void graph_spinlock_lock(void)\n+\t__rte_exclusive_lock_function(graph_spinlock_get());\n \n /**\n  * @internal\n  *\n  * Release a lock on the graph internal spin lock.\n  */\n-void graph_spinlock_unlock(void);\n+void graph_spinlock_unlock(void)\n+\t__rte_unlock_function(graph_spinlock_get());\n \n /* Graph operations */\n /**\n",
    "prefixes": [
        "v3",
        "05/16"
    ]
}