get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 122320,
    "url": "https://patches.dpdk.org/api/patches/122320/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1674071646-6854-5-git-send-email-roretzla@linux.microsoft.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<1674071646-6854-5-git-send-email-roretzla@linux.microsoft.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1674071646-6854-5-git-send-email-roretzla@linux.microsoft.com",
    "date": "2023-01-18T19:54:05",
    "name": "[v6,4/5] drivers: mlx5 use rte thread set name",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "51322399014a289ed8ab4194953ce36f78adc220",
    "submitter": {
        "id": 2077,
        "url": "https://patches.dpdk.org/api/people/2077/?format=api",
        "name": "Tyler Retzlaff",
        "email": "roretzla@linux.microsoft.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1674071646-6854-5-git-send-email-roretzla@linux.microsoft.com/mbox/",
    "series": [
        {
            "id": 26599,
            "url": "https://patches.dpdk.org/api/series/26599/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=26599",
            "date": "2023-01-18T19:54:01",
            "name": "add rte_thread_set_name API for rte_thread_t",
            "version": 6,
            "mbox": "https://patches.dpdk.org/series/26599/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/122320/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/122320/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 ADB4E42411;\n\tWed, 18 Jan 2023 20:54:24 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 8252B42D67;\n\tWed, 18 Jan 2023 20:54:14 +0100 (CET)",
            "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id 23A2F41101\n for <dev@dpdk.org>; Wed, 18 Jan 2023 20:54:11 +0100 (CET)",
            "by linux.microsoft.com (Postfix, from userid 1086)\n id 782CE20E0A0B; Wed, 18 Jan 2023 11:54:10 -0800 (PST)"
        ],
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 782CE20E0A0B",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1674071650;\n bh=dF/mOuxm6tz0LpnCL6O5V08ZPz70QGofpoe35szXW9k=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=dxBybAfGlf2A3daaEl0ZdUsbc11T7VALUTFjpZztB5vXMT6TXb/I3o4o4WZ+kj74L\n RgJ8YbtMI1LjpzRiWVeArTVJxCNNMGyU/ORTLzR94hOG7ssuN06EL2Fy9AP19Sp0nF\n yRpb17181KPArSKsBx5w/Kza978hECwwIb6B/PKo=",
        "From": "Tyler Retzlaff <roretzla@linux.microsoft.com>",
        "To": "dev@dpdk.org",
        "Cc": "thomas@monjalon.net, david.marchand@redhat.com, jerinjacobk@gmail.com,\n mb@smartsharesystems.com, Tyler Retzlaff <roretzla@linux.microsoft.com>",
        "Subject": "[PATCH v6 4/5] drivers: mlx5 use rte thread set name",
        "Date": "Wed, 18 Jan 2023 11:54:05 -0800",
        "Message-Id": "<1674071646-6854-5-git-send-email-roretzla@linux.microsoft.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1674071646-6854-1-git-send-email-roretzla@linux.microsoft.com>",
        "References": "<1670439617-9054-1-git-send-email-roretzla@linux.microsoft.com>\n <1674071646-6854-1-git-send-email-roretzla@linux.microsoft.com>",
        "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": "Use the new internal rte_thread_set_name API instead of the now\ndeprecated rte_thread_setname API.\n\nSigned-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>\n---\n drivers/net/mlx5/mlx5_hws_cnt.c     | 3 ++-\n drivers/vdpa/mlx5/mlx5_vdpa_event.c | 3 +--\n 2 files changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/net/mlx5/mlx5_hws_cnt.c b/drivers/net/mlx5/mlx5_hws_cnt.c\nindex 51704ef..05cc954 100644\n--- a/drivers/net/mlx5/mlx5_hws_cnt.c\n+++ b/drivers/net/mlx5/mlx5_hws_cnt.c\n@@ -465,7 +465,8 @@ struct mlx5_hws_cnt_pool *\n \t}\n \tsnprintf(name, CNT_THREAD_NAME_MAX - 1, \"%s/svc@%d\",\n \t\t sh->ibdev_name, service_core);\n-\trte_thread_setname(sh->cnt_svc->service_thread, name);\n+\trte_thread_set_name((rte_thread_t){(uintptr_t)sh->cnt_svc->service_thread},\n+\t\tname);\n \tCPU_SET(service_core, &cpuset);\n \tpthread_setaffinity_np(sh->cnt_svc->service_thread, sizeof(cpuset),\n \t\t\t\t&cpuset);\ndiff --git a/drivers/vdpa/mlx5/mlx5_vdpa_event.c b/drivers/vdpa/mlx5/mlx5_vdpa_event.c\nindex 4d81976..f3d392c 100644\n--- a/drivers/vdpa/mlx5/mlx5_vdpa_event.c\n+++ b/drivers/vdpa/mlx5/mlx5_vdpa_event.c\n@@ -547,8 +547,7 @@\n \t\tgoto out;\n \t}\n \tsnprintf(name, sizeof(name), \"vDPA-mlx5-%d\", priv->vid);\n-\tif (rte_thread_setname(priv->timer_tid, name) != 0)\n-\t\tDRV_LOG(DEBUG, \"Cannot set timer thread name.\");\n+\trte_thread_set_name((rte_thread_t){(uintptr_t)priv->timer_tid}, name);\n out:\n \tif (attrp != NULL)\n \t\tpthread_attr_destroy(attrp);\n",
    "prefixes": [
        "v6",
        "4/5"
    ]
}