get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 130322,
    "url": "http://patchwork.dpdk.org/api/patches/130322/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230815035239.1365591-3-okaya@kernel.org/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20230815035239.1365591-3-okaya@kernel.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230815035239.1365591-3-okaya@kernel.org",
    "date": "2023-08-15T03:52:34",
    "name": "[v3,2/7] tailq: skip init if already initialized",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "5faea4de837c18c14d559544eb631dc7c8d4fea3",
    "submitter": {
        "id": 2903,
        "url": "http://patchwork.dpdk.org/api/people/2903/?format=api",
        "name": "Sinan Kaya",
        "email": "okaya@kernel.org"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230815035239.1365591-3-okaya@kernel.org/mbox/",
    "series": [
        {
            "id": 29225,
            "url": "http://patchwork.dpdk.org/api/series/29225/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29225",
            "date": "2023-08-15T03:52:32",
            "name": "support reinit flow",
            "version": 3,
            "mbox": "http://patchwork.dpdk.org/series/29225/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/130322/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/130322/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 A1BA743069;\n\tTue, 15 Aug 2023 05:53:00 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E32094325D;\n\tTue, 15 Aug 2023 05:52:51 +0200 (CEST)",
            "from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217])\n by mails.dpdk.org (Postfix) with ESMTP id CFE7A427E9\n for <dev@dpdk.org>; Tue, 15 Aug 2023 05:52:49 +0200 (CEST)",
            "from smtp.kernel.org (relay.kernel.org [52.25.139.140])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits))\n (No client certificate requested)\n by dfw.source.kernel.org (Postfix) with ESMTPS id 536BF62638\n for <dev@dpdk.org>; Tue, 15 Aug 2023 03:52:49 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 22E68C433C7;\n Tue, 15 Aug 2023 03:52:48 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n s=k20201202; t=1692071568;\n bh=P2glLqiw0cUHcsK6See6IMrndxeGT2hiA71Vv1o5lZs=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=By4TaDXxG9b02xeobtCwJPCza8TCKm988ehcuOtdlR/LLL4M8ltP+UPsYx8HZCrT1\n TqruaO31dMOpa8KR67nlIRxsYnOwCSr39xEZXF3Q12psD0bT/PdQs6k6CR+pOzHJ0o\n H/LVFX4egYscfeVbYOdVo0ceNHWqfshyPTSA/EhU7WXbLZ/MAFFd2ayPn3vVYSNoqQ\n Q7kL9pgyI890zSNorBTf1WNYLLpEQWglXXo+FIZVjahDTXubB9cXIOnxq0H9FbW5DE\n DrwvcopQJbPfDYQKg09tQf+x/CkpGAn9srLG0yv0p67ThxQReH1ZvdkXL+R/wbb+NV\n A57YwV9pokbmQ==",
        "From": "okaya@kernel.org",
        "To": "",
        "Cc": "dev@dpdk.org,\n\tSinan Kaya <okaya@kernel.org>",
        "Subject": "[PATCH v3 2/7] tailq: skip init if already initialized",
        "Date": "Mon, 14 Aug 2023 23:52:34 -0400",
        "Message-Id": "<20230815035239.1365591-3-okaya@kernel.org>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230815035239.1365591-1-okaya@kernel.org>",
        "References": "<20230815035239.1365591-1-okaya@kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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": "From: Sinan Kaya <okaya@kernel.org>\n\nAllows tailq to be reinitialied multiple times\nby looking up previously registered tailqs\n\nSigned-off-by: Sinan Kaya <okaya@kernel.org>\n---\n lib/eal/common/eal_common_tailqs.c | 20 +++++++++++++-------\n 1 file changed, 13 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/lib/eal/common/eal_common_tailqs.c b/lib/eal/common/eal_common_tailqs.c\nindex 580fbf24bc..75c0235438 100644\n--- a/lib/eal/common/eal_common_tailqs.c\n+++ b/lib/eal/common/eal_common_tailqs.c\n@@ -73,9 +73,10 @@ rte_eal_tailq_create(const char *name)\n \t\tstrlcpy(head->name, name, sizeof(head->name) - 1);\n \t\tTAILQ_INIT(&head->tailq_head);\n \t\trte_tailqs_count++;\n+\t\treturn head;\n \t}\n \n-\treturn head;\n+\treturn rte_eal_tailq_lookup(name);\n }\n \n /* local register, used to store \"early\" tailqs before rte_eal_init() and to\n@@ -99,7 +100,9 @@ rte_eal_tailq_update(struct rte_tailq_elem *t)\n {\n \tif (rte_eal_process_type() == RTE_PROC_PRIMARY) {\n \t\t/* primary process is the only one that creates */\n-\t\tt->head = rte_eal_tailq_create(t->name);\n+\t\tt->head = rte_eal_tailq_lookup(t->name);\n+\t\tif (t->head == NULL)\n+\t\t\tt->head = rte_eal_tailq_create(t->name);\n \t} else {\n \t\tt->head = rte_eal_tailq_lookup(t->name);\n \t}\n@@ -108,15 +111,13 @@ rte_eal_tailq_update(struct rte_tailq_elem *t)\n int\n rte_eal_tailq_register(struct rte_tailq_elem *t)\n {\n-\tif (rte_eal_tailq_local_register(t) < 0) {\n-\t\tRTE_LOG(ERR, EAL,\n-\t\t\t\"%s tailq is already registered\\n\", t->name);\n-\t\tgoto error;\n-\t}\n+\trte_eal_tailq_local_register(t);\n \n \t/* if a register happens after rte_eal_tailqs_init(), then we can update\n \t * tailq head */\n \tif (rte_tailqs_count >= 0) {\n+\t\tRTE_LOG(INFO, EAL,\n+\t\t\t\"%s tailq is registered\\n\", t->name);\n \t\trte_eal_tailq_update(t);\n \t\tif (t->head == NULL) {\n \t\t\tRTE_LOG(ERR, EAL,\n@@ -138,6 +139,11 @@ rte_eal_tailqs_init(void)\n {\n \tstruct rte_tailq_elem *t;\n \n+\tif (rte_tailqs_count > 0) {\n+\t\tRTE_LOG(INFO, EAL, \"tailq already initialized\\n\");\n+\t\treturn 0;\n+\t}\n+\n \trte_tailqs_count = 0;\n \n \tTAILQ_FOREACH(t, &rte_tailq_elem_head, next) {\n",
    "prefixes": [
        "v3",
        "2/7"
    ]
}