get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 138769,
    "url": "http://patches.dpdk.org/api/patches/138769/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240325163108.816996-3-rjarry@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": "<20240325163108.816996-3-rjarry@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240325163108.816996-3-rjarry@redhat.com",
    "date": "2024-03-25T16:31:09",
    "name": "[v4] graph: expose node context as pointers",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "1811c0ac98137dce94ee6355cff9f1f86a18aabb",
    "submitter": {
        "id": 2850,
        "url": "http://patches.dpdk.org/api/people/2850/?format=api",
        "name": "Robin Jarry",
        "email": "rjarry@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/20240325163108.816996-3-rjarry@redhat.com/mbox/",
    "series": [
        {
            "id": 31614,
            "url": "http://patches.dpdk.org/api/series/31614/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31614",
            "date": "2024-03-25T16:31:09",
            "name": "[v4] graph: expose node context as pointers",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/31614/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/138769/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/138769/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 B2C2743D47;\n\tMon, 25 Mar 2024 17:32:31 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4BAED40298;\n\tMon, 25 Mar 2024 17:32:31 +0100 (CET)",
            "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 71FAC40275\n for <dev@dpdk.org>; Mon, 25 Mar 2024 17:32:29 +0100 (CET)",
            "from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73])\n by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-543-CzRKyzowOtOr8ebjozwNfw-1; Mon,\n 25 Mar 2024 12:32:23 -0400",
            "from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com\n [10.11.54.5])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 189E51C02145;\n Mon, 25 Mar 2024 16:32:23 +0000 (UTC)",
            "from localhost.localdomain (unknown [10.39.208.19])\n by smtp.corp.redhat.com (Postfix) with ESMTP id A2AD410189;\n Mon, 25 Mar 2024 16:32:21 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1711384349;\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=djxpWsrRzEyQSqRaLTSojO04nK6dGkrUUOuEfoy7u0A=;\n b=Z/cpmZbhnkQ5FUUEDhfxbA4/0oz1eNdfJr9AeDC/GXq+hkmAojSVua+FLJXVKJgUDf/atP\n RNt1JhGrTZ8WpfLFFuN7MM3KxbaIqMJl+mWJto6EzfiPPT2lkQNmJYMI69kkeiR0thAxC8\n kegI0/q2cwZv62Ek2+xRPxEHV1Oph+g=",
        "X-MC-Unique": "CzRKyzowOtOr8ebjozwNfw-1",
        "From": "Robin Jarry <rjarry@redhat.com>",
        "To": "dev@dpdk.org, Jerin Jacob <jerinj@marvell.com>,\n Kiran Kumar K <kirankumark@marvell.com>,\n Nithin Dabilpuram <ndabilpuram@marvell.com>,\n Zhirun Yan <yanzhirun_163@163.com>",
        "Cc": "Tyler Retzlaff <roretzla@linux.microsoft.com>",
        "Subject": "[PATCH v4] graph: expose node context as pointers",
        "Date": "Mon, 25 Mar 2024 17:31:09 +0100",
        "Message-ID": "<20240325163108.816996-3-rjarry@redhat.com>",
        "In-Reply-To": "<20240325100500.694748-2-rjarry@redhat.com>",
        "References": "<20240325100500.694748-2-rjarry@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.4.1 on 10.11.54.5",
        "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": "In some cases, the node context data is used to store two pointers\nbecause the data is larger than the reserved 16 bytes. Having to define\nintermediate structures just to be able to cast is tedious. Add helper\ninline functions to cast the node context to opaque pointers.\n\nSigned-off-by: Robin Jarry <rjarry@redhat.com>\n---\n\nNotes:\n    v4:\n    \n    * Replaced the unnamed union with helper inline functions.\n    \n    v3:\n    \n    * Added __extension__ to the unnamed struct inside the union.\n    * Fixed C++ header checks.\n    * Replaced alignas() with an explicit static_assert.\n\n lib/graph/rte_graph_worker_common.h | 54 +++++++++++++++++++++++++++++\n 1 file changed, 54 insertions(+)",
    "diff": "diff --git a/lib/graph/rte_graph_worker_common.h b/lib/graph/rte_graph_worker_common.h\nindex 36d864e2c14e..f54f65598193 100644\n--- a/lib/graph/rte_graph_worker_common.h\n+++ b/lib/graph/rte_graph_worker_common.h\n@@ -130,6 +130,60 @@ struct __rte_cache_aligned rte_node {\n \talignas(RTE_CACHE_LINE_MIN_SIZE) struct rte_node *nodes[]; /**< Next nodes. */\n };\n \n+/**\n+ * Cast the first 8 bytes of node context as an opaque pointer.\n+ *\n+ * @param node\n+ *   Pointer to the node object.\n+ *\n+ * @return\n+ *   The opaque pointer value.\n+ */\n+static inline void *rte_node_ctx_ptr1_get(struct rte_node *node)\n+{\n+\treturn ((void **)node->ctx)[0];\n+}\n+\n+/**\n+ * Cast the last 8 bytes of node context as an opaque pointer.\n+ *\n+ * @param node\n+ *   Pointer to the node object.\n+ *\n+ * @return\n+ *   The opaque pointer value.\n+ */\n+static inline void *rte_node_ctx_ptr2_get(struct rte_node *node)\n+{\n+\treturn ((void **)node->ctx)[1];\n+}\n+\n+/**\n+ * Set the first 8 bytes of node context to an opaque pointer value.\n+ *\n+ * @param node\n+ *   Pointer to the node object.\n+ * @param ptr\n+ *   The opaque pointer value.\n+ */\n+static inline void rte_node_ctx_ptr1_set(struct rte_node *node, void *ptr)\n+{\n+\t((void **)node->ctx)[0] = ptr;\n+}\n+\n+/**\n+ * Set the last 8 bytes of node context to an opaque pointer value.\n+ *\n+ * @param node\n+ *   Pointer to the node object.\n+ * @param ptr\n+ *   The opaque pointer value.\n+ */\n+static inline void rte_node_ctx_ptr2_set(struct rte_node *node, void *ptr)\n+{\n+\t((void **)node->ctx)[1] = ptr;\n+}\n+\n /**\n  * @internal\n  *\n",
    "prefixes": [
        "v4"
    ]
}