get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 130319,
    "url": "http://patchwork.dpdk.org/api/patches/130319/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230815031307.1299726-7-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": "<20230815031307.1299726-7-okaya@kernel.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230815031307.1299726-7-okaya@kernel.org",
    "date": "2023-08-15T03:13:06",
    "name": "[v2,6/7] eal_interrupts: don't reinitialize threads",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "8fd2a9470494cda634195fa77f81142a3ff6c1d5",
    "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/20230815031307.1299726-7-okaya@kernel.org/mbox/",
    "series": [
        {
            "id": 29224,
            "url": "http://patchwork.dpdk.org/api/series/29224/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29224",
            "date": "2023-08-15T03:13:00",
            "name": "support reinit flow",
            "version": 2,
            "mbox": "http://patchwork.dpdk.org/series/29224/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/130319/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/130319/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 713E643069;\n\tTue, 15 Aug 2023 05:13:45 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id DB00F43263;\n\tTue, 15 Aug 2023 05:13:20 +0200 (CEST)",
            "from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217])\n by mails.dpdk.org (Postfix) with ESMTP id 776B743261\n for <dev@dpdk.org>; Tue, 15 Aug 2023 05:13:16 +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 E3DDF61320;\n Tue, 15 Aug 2023 03:13:15 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id F1DE1C433CA;\n Tue, 15 Aug 2023 03:13:14 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n s=k20201202; t=1692069195;\n bh=GNIPh54KXGxsfa5ki8tVQulezifKMxoDrO5/n63RvGM=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=nI7KP+3RDcAzPePDYU17l1ckfY+LBnYm8qWFaxKaMS2Nd+xCFvNOXeummKd51dd5v\n A/k8MxV+WlqGkRpRcZgH+msL/MAtfC85H0ssj6d9bsbRtHz3CeD4VpecIGwfiZ3pJR\n 1Kr5V5G+SA0d7bThjdOkWKAugKrpPsiy1Mnh0LmWHVEU6ZowNHNxm253WJdlLdTXDf\n Z3es2vdBB1aoDqrAk4wIqdPT3H8m9QcUV8njo26GjT/Y4HIUlgd4sYs16QCWe+2QVE\n U3+S+u8jaR6lrwON+h/jA5fDWDzz6Ph3scthtyj4i8Us3LtHEPSlSMQdi+2n9ZJVdJ\n 0/2zoUXNBpr1Q==",
        "From": "okaya@kernel.org",
        "To": "Harman Kalra <hkalra@marvell.com>",
        "Cc": "dev@dpdk.org,\n\tSinan Kaya <okaya@kernel.org>",
        "Subject": "[PATCH v2 6/7] eal_interrupts: don't reinitialize threads",
        "Date": "Mon, 14 Aug 2023 23:13:06 -0400",
        "Message-Id": "<20230815031307.1299726-7-okaya@kernel.org>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230815031307.1299726-1-okaya@kernel.org>",
        "References": "<20230815031307.1299726-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\nInitialize interrupt thread once and keep a flag\nfor further init.\n\nSigned-off-by: Sinan Kaya <okaya@kernel.org>\n---\n lib/eal/linux/eal_interrupts.c | 7 +++++++\n 1 file changed, 7 insertions(+)",
    "diff": "diff --git a/lib/eal/linux/eal_interrupts.c b/lib/eal/linux/eal_interrupts.c\nindex d52ec8eb4c..f141711f12 100644\n--- a/lib/eal/linux/eal_interrupts.c\n+++ b/lib/eal/linux/eal_interrupts.c\n@@ -91,6 +91,9 @@ static struct rte_intr_source_list intr_sources;\n /* interrupt handling thread */\n static pthread_t intr_thread;\n \n+/* flag for initialization */\n+static bool intr_initialized;\n+\n /* VFIO interrupts */\n #ifdef VFIO_PRESENT\n \n@@ -1175,6 +1178,9 @@ rte_eal_intr_init(void)\n {\n \tint ret = 0;\n \n+\tif (intr_initialized)\n+\t\treturn 0;\n+\n \t/* init the global interrupt source head */\n \tTAILQ_INIT(&intr_sources);\n \n@@ -1196,6 +1202,7 @@ rte_eal_intr_init(void)\n \t\t\t\"Failed to create thread for interrupt handling\\n\");\n \t}\n \n+\tintr_initialized = true;\n \treturn ret;\n }\n \n",
    "prefixes": [
        "v2",
        "6/7"
    ]
}