get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 130353,
    "url": "http://patchwork.dpdk.org/api/patches/130353/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230815145023.1386003-2-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": "<20230815145023.1386003-2-okaya@kernel.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230815145023.1386003-2-okaya@kernel.org",
    "date": "2023-08-15T14:50:16",
    "name": "[v4,1/8] eal: cleanup plugins data",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "abcae018ec8862cc64e7be30d60b524cf33e1b8d",
    "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/20230815145023.1386003-2-okaya@kernel.org/mbox/",
    "series": [
        {
            "id": 29234,
            "url": "http://patchwork.dpdk.org/api/series/29234/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29234",
            "date": "2023-08-15T14:50:15",
            "name": "support reinit flow",
            "version": 4,
            "mbox": "http://patchwork.dpdk.org/series/29234/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/130353/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/130353/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 3730443073;\n\tTue, 15 Aug 2023 16:50:38 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C8AC643251;\n\tTue, 15 Aug 2023 16:50:34 +0200 (CEST)",
            "from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217])\n by mails.dpdk.org (Postfix) with ESMTP id BBED641611\n for <dev@dpdk.org>; Tue, 15 Aug 2023 16:50:32 +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 3B69561CC0;\n Tue, 15 Aug 2023 14:50:32 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id E1FE5C433C8;\n Tue, 15 Aug 2023 14:50:30 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n s=k20201202; t=1692111031;\n bh=n8tuOsyAXkyfrtIi2nseJZqsKbt9XPCd1HswxhX/EvY=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=knMiFk1XXNu/fPY+FAqgz8x1duG95Csyv3vqMO8kfRgSbvzRMM+kXfX4qhG00l9iY\n iChO8Ql5F61WXsiq8O5/HFIjdhb2xnKKOlpcdCa70FVYkz0G6hfxPgNh12he2rEzbm\n 6FLQoUTd7+STrzd8+VLWLIH3TeZe/9mvziS+F+7kPj8zXmXrl/pA5BhWFz+MNUGQ8C\n bZpF9LPvsF0Mgdx+eE/WQqxR61Xrpsn1dUYTUGaJZ44SYBPErQhdotaIfM9X4oeCXl\n M5Un6p/9CYn/Iv5V53Jf+IEM30lCdhZGxkNGZO4G4Tz4Pqx3K2rn0ujt8QgtEgnaJ2\n egjF6cnzL1kDg==",
        "From": "okaya@kernel.org",
        "To": "",
        "Cc": "dev@dpdk.org, Stephen Hemminger <stephen@networkplumber.org>,\n Sinan Kaya <okaya@kernel.org>",
        "Subject": "[PATCH v4 1/8] eal: cleanup plugins data",
        "Date": "Tue, 15 Aug 2023 10:50:16 -0400",
        "Message-Id": "<20230815145023.1386003-2-okaya@kernel.org>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230815145023.1386003-1-okaya@kernel.org>",
        "References": "<20230815145023.1386003-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: Stephen Hemminger <stephen@networkplumber.org>\n\nWhen rte_eal_cleanup is called walk through the list of shared\nobjects loaded, and close them and free the data structure.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\nSigned-off-by: Sinan Kaya <okaya@kernel.org>\n---\n lib/eal/common/eal_common_options.c | 12 ++++++++++++\n lib/eal/common/eal_options.h        |  1 +\n lib/eal/linux/eal.c                 |  2 ++\n 3 files changed, 15 insertions(+)",
    "diff": "diff --git a/lib/eal/common/eal_common_options.c b/lib/eal/common/eal_common_options.c\nindex 062f1d8d9c..209b6edd76 100644\n--- a/lib/eal/common/eal_common_options.c\n+++ b/lib/eal/common/eal_common_options.c\n@@ -244,6 +244,18 @@ eal_save_args(int argc, char **argv)\n }\n #endif\n \n+void\n+eal_plugins_cleanup(void)\n+{\n+\tstruct shared_driver *solib, *tmp;\n+\n+\tRTE_TAILQ_FOREACH_SAFE(solib, &solib_list, next, tmp) {\n+\t\tif (solib->lib_handle)\n+\t\t\tdlclose(solib->lib_handle);\n+\t\tfree(solib);\n+\t}\n+}\n+\n static int\n eal_option_device_add(enum rte_devtype type, const char *optarg)\n {\ndiff --git a/lib/eal/common/eal_options.h b/lib/eal/common/eal_options.h\nindex 3cc9cb6412..ddbaafc4f1 100644\n--- a/lib/eal/common/eal_options.h\n+++ b/lib/eal/common/eal_options.h\n@@ -105,6 +105,7 @@ int eal_check_common_options(struct internal_config *internal_cfg);\n void eal_common_usage(void);\n enum rte_proc_type_t eal_proc_type_detect(void);\n int eal_plugins_init(void);\n+void eal_plugins_cleanup(void);\n int eal_save_args(int argc, char **argv);\n int handle_eal_info_request(const char *cmd, const char *params __rte_unused,\n \t\tstruct rte_tel_data *d);\ndiff --git a/lib/eal/linux/eal.c b/lib/eal/linux/eal.c\nindex c6efd92014..dee649bab3 100644\n--- a/lib/eal/linux/eal.c\n+++ b/lib/eal/linux/eal.c\n@@ -1398,6 +1398,8 @@ rte_eal_cleanup(void)\n \teal_trace_fini();\n \teal_mp_dev_hotplug_cleanup();\n \trte_eal_alarm_cleanup();\n+\teal_plugins_cleanup();\n+\n \t/* after this point, any DPDK pointers will become dangling */\n \trte_eal_memory_detach();\n \trte_eal_malloc_heap_cleanup();\n",
    "prefixes": [
        "v4",
        "1/8"
    ]
}