get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 86072,
    "url": "http://patches.dpdk.org/api/patches/86072/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210106194543.14024-2-talshn@nvidia.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": "<20210106194543.14024-2-talshn@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210106194543.14024-2-talshn@nvidia.com",
    "date": "2021-01-06T19:45:42",
    "name": "[v8,1/2] eal: move thread affinity functions to new file",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "f44bc24b3f566feb3844c203e802b81fe3cc594d",
    "submitter": {
        "id": 1893,
        "url": "http://patches.dpdk.org/api/people/1893/?format=api",
        "name": "Tal Shnaiderman",
        "email": "talshn@nvidia.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/20210106194543.14024-2-talshn@nvidia.com/mbox/",
    "series": [
        {
            "id": 14561,
            "url": "http://patches.dpdk.org/api/series/14561/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=14561",
            "date": "2021-01-06T19:45:43",
            "name": "support generic threading functions",
            "version": 8,
            "mbox": "http://patches.dpdk.org/series/14561/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/86072/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/86072/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 (xvm-189-124.dc0.ghst.net [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 03FBAA09FF;\n\tWed,  6 Jan 2021 20:46:12 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 79F16140E32;\n\tWed,  6 Jan 2021 20:46:06 +0100 (CET)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by mails.dpdk.org (Postfix) with ESMTP id 14B66140E1C\n for <dev@dpdk.org>; Wed,  6 Jan 2021 20:46:03 +0100 (CET)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n talshn@nvidia.com) with SMTP; 6 Jan 2021 21:45:59 +0200",
            "from nvidia.com (l-wincomp04-vm.mtl.labs.mlnx [10.237.1.5])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 106Jjxt0002786;\n Wed, 6 Jan 2021 21:45:59 +0200"
        ],
        "From": "Tal Shnaiderman <talshn@nvidia.com>",
        "To": "dev@dpdk.org",
        "Cc": "thomas@monjalon.net, pallavi.kadam@intel.com, dmitry.kozliuk@gmail.com,\n navasile@linux.microsoft.com, dmitrym@microsoft.com,\n david.marchand@redhat.com",
        "Date": "Wed,  6 Jan 2021 21:45:42 +0200",
        "Message-Id": "<20210106194543.14024-2-talshn@nvidia.com>",
        "X-Mailer": "git-send-email 2.16.1.windows.4",
        "In-Reply-To": "<20210106194543.14024-1-talshn@nvidia.com>",
        "References": "<20210105170635.6212-2-talshn@nvidia.com>\n <20210106194543.14024-1-talshn@nvidia.com>",
        "Subject": "[dpdk-dev] [PATCH v8 1/2] eal: move thread affinity functions to\n new file",
        "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": "Move the definition of the functions\nrte_thread_set_affinity and rte_thread_get_affinity\nto new file, rte_thread.h\n\nThe file will implement generic threading functionality\nand will only host threading functions which do not reference\npthread API.\n\nSigned-off-by: Tal Shnaiderman <talshn@nvidia.com>\n---\n lib/librte_eal/include/meson.build  |  1 +\n lib/librte_eal/include/rte_lcore.h  | 22 +----------------\n lib/librte_eal/include/rte_thread.h | 47 +++++++++++++++++++++++++++++++++++++\n 3 files changed, 49 insertions(+), 21 deletions(-)\n create mode 100644 lib/librte_eal/include/rte_thread.h",
    "diff": "diff --git a/lib/librte_eal/include/meson.build b/lib/librte_eal/include/meson.build\nindex dc007084ff..0dea342e1d 100644\n--- a/lib/librte_eal/include/meson.build\n+++ b/lib/librte_eal/include/meson.build\n@@ -40,6 +40,7 @@ headers += files(\n \t'rte_service_component.h',\n \t'rte_string_fns.h',\n \t'rte_tailq.h',\n+\t'rte_thread.h',\n \t'rte_time.h',\n \t'rte_trace.h',\n \t'rte_trace_point.h',\ndiff --git a/lib/librte_eal/include/rte_lcore.h b/lib/librte_eal/include/rte_lcore.h\nindex 48b87e253a..0fe0bd839c 100644\n--- a/lib/librte_eal/include/rte_lcore.h\n+++ b/lib/librte_eal/include/rte_lcore.h\n@@ -15,6 +15,7 @@\n #include <rte_per_lcore.h>\n #include <rte_eal.h>\n #include <rte_launch.h>\n+#include <rte_thread.h>\n \n #ifdef __cplusplus\n extern \"C\" {\n@@ -357,27 +358,6 @@ __rte_experimental\n void\n rte_lcore_dump(FILE *f);\n \n-/**\n- * Set core affinity of the current thread.\n- * Support both EAL and non-EAL thread and update TLS.\n- *\n- * @param cpusetp\n- *   Point to cpu_set_t for setting current thread affinity.\n- * @return\n- *   On success, return 0; otherwise return -1;\n- */\n-int rte_thread_set_affinity(rte_cpuset_t *cpusetp);\n-\n-/**\n- * Get core affinity of the current thread.\n- *\n- * @param cpusetp\n- *   Point to cpu_set_t for getting current thread cpu affinity.\n- *   It presumes input is not NULL, otherwise it causes panic.\n- *\n- */\n-void rte_thread_get_affinity(rte_cpuset_t *cpusetp);\n-\n /**\n  * Set thread names.\n  *\ndiff --git a/lib/librte_eal/include/rte_thread.h b/lib/librte_eal/include/rte_thread.h\nnew file mode 100644\nindex 0000000000..43bf568d59\n--- /dev/null\n+++ b/lib/librte_eal/include/rte_thread.h\n@@ -0,0 +1,47 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2021 Mellanox Technologies, Ltd\n+ */\n+\n+#include <rte_os.h>\n+\n+#ifndef _RTE_THREAD_H_\n+#define _RTE_THREAD_H_\n+\n+/**\n+ * @file\n+ *\n+ * Threading functions\n+ *\n+ * Simple threads functionality supplied by EAL.\n+ */\n+\n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n+/**\n+ * Set core affinity of the current thread.\n+ * Support both EAL and non-EAL thread and update TLS.\n+ *\n+ * @param cpusetp\n+ *   Point to cpu_set_t for setting current thread affinity.\n+ * @return\n+ *   On success, return 0; otherwise return -1;\n+ */\n+int rte_thread_set_affinity(rte_cpuset_t *cpusetp);\n+\n+/**\n+ * Get core affinity of the current thread.\n+ *\n+ * @param cpusetp\n+ *   Point to cpu_set_t for getting current thread cpu affinity.\n+ *   It presumes input is not NULL, otherwise it causes panic.\n+ *\n+ */\n+void rte_thread_get_affinity(rte_cpuset_t *cpusetp);\n+\n+#ifdef __cplusplus\n+}\n+#endif\n+\n+#endif /* _RTE_THREAD_H_ */\n",
    "prefixes": [
        "v8",
        "1/2"
    ]
}