get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 64208,
    "url": "http://patches.dpdk.org/api/patches/64208/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200104013341.19809-12-stephen@networkplumber.org/",
    "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": "<20200104013341.19809-12-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200104013341.19809-12-stephen@networkplumber.org",
    "date": "2020-01-04T01:33:38",
    "name": "[11/14] eal: cleanup plugins data",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a47bd2c5dcf11038a7eccfcb2a9a7d20a7630d67",
    "submitter": {
        "id": 27,
        "url": "http://patches.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": {
        "id": 24651,
        "url": "http://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200104013341.19809-12-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 7981,
            "url": "http://patches.dpdk.org/api/series/7981/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=7981",
            "date": "2020-01-04T01:33:27",
            "name": "cleanup resources on shutdown",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/7981/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/64208/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/64208/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id C6839A04DD;\n\tSat,  4 Jan 2020 02:35:31 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 42DA21D55D;\n\tSat,  4 Jan 2020 02:34:13 +0100 (CET)",
            "from mail-pg1-f196.google.com (mail-pg1-f196.google.com\n [209.85.215.196]) by dpdk.org (Postfix) with ESMTP id 07E8A1D548\n for <dev@dpdk.org>; Sat,  4 Jan 2020 02:34:05 +0100 (CET)",
            "by mail-pg1-f196.google.com with SMTP id 6so24152328pgk.0\n for <dev@dpdk.org>; Fri, 03 Jan 2020 17:34:04 -0800 (PST)",
            "from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127])\n by smtp.gmail.com with ESMTPSA id j6sm16212934pjv.10.2020.01.03.17.34.02\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 03 Jan 2020 17:34:03 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20150623.gappssmtp.com; s=20150623;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=UzpwGaFD1a8sIn4IGdBsPyohrZzhEIRlfOR5b6UrJzc=;\n b=kLiqD0Q2kPVP1k2rK4hUARfyFt441Evfdcf98xoiljhIAaGR8YdCcKOuIa9KqsYalx\n JbkojIzJjoatJseZqdnjpbtfWpeWMSj69/yabHMdlf5JIjhAuQjUJm5T0dLNSakDo4D3\n 1Ro7qTdnoJrOh9sVO0SKvL3eMhFU3oEhTrn/NIy2Pq3vNefWa6Hb/W3a/u6O+k0p24mq\n nazGvPb59T/sfjBYO0pMZu/9ZWKbGX1jx5tON69iYRJyV5Xe8f0LtXiJQjnHhWETAskl\n cpUHBSh2rk+pqbDu0nb1T5c/dW8C8+FRaJ/+gUs9qJNN8ZgX3F41/4+c3+XxyVZBUefG\n EDaA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20161025;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references:mime-version:content-transfer-encoding;\n bh=UzpwGaFD1a8sIn4IGdBsPyohrZzhEIRlfOR5b6UrJzc=;\n b=j+nTudaSzy1yqKtPfyufcwxXwyS7Q8h1lPuMksYiQY/hb+T0jyp7EvmfiYDcIv4Wb7\n Yb5Jwd68wQua1j87bf8YgN6jAkiq82LlBh2NnR2qeYi0JtgYNshwYoZyBF86yYViMsh7\n eurOF6PeHX2w0TWIrs3/aIuoQ6zDDKrxpoGXkI4onnlz5w7QfQsXXgvMabE4mX4nB9FJ\n 7RBYicS0b4bN0LtAQXkb9H+hjiBdJ+G3a4CuBJvrNCcES10qdrKp/9XzaotCYc2FP5wS\n 78fjd7U1+/9yKyeHnhB/AJloXI6qUw41h7/rXISZslIu78hfzco1+jIzm/igrE59XGht\n NYMA==",
        "X-Gm-Message-State": "APjAAAVqpaJPN8d0BBzfwgh9IJ+jIskGjDZRnnyaomAB+gY5W7kQx4s+\n X6N7dvDAYCcVfz8oc0/SyO5bI/rivrk=",
        "X-Google-Smtp-Source": "\n APXvYqyGad+0+RNeegqBrkD5NZULBKYd2To2faBJo2CE2ejxUJTxUfW82+B/u/Y1S0AwdolDOfFpeA==",
        "X-Received": "by 2002:a63:6b07:: with SMTP id g7mr82309858pgc.243.1578101643852;\n Fri, 03 Jan 2020 17:34:03 -0800 (PST)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>",
        "Date": "Fri,  3 Jan 2020 17:33:38 -0800",
        "Message-Id": "<20200104013341.19809-12-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20200104013341.19809-1-stephen@networkplumber.org>",
        "References": "<20200104013341.19809-1-stephen@networkplumber.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH 11/14] eal: cleanup plugins data",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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": "When 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>\n---\n lib/librte_eal/common/eal_common_options.c | 12 ++++++++++++\n lib/librte_eal/common/eal_options.h        |  1 +\n lib/librte_eal/linux/eal/eal.c             |  1 +\n 3 files changed, 14 insertions(+)",
    "diff": "diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c\nindex a7f9c5f9bdfa..58c364d896f8 100644\n--- a/lib/librte_eal/common/eal_common_options.c\n+++ b/lib/librte_eal/common/eal_common_options.c\n@@ -308,6 +308,18 @@ eal_plugins_init(void)\n \treturn 0;\n }\n \n+void\n+eal_plugins_cleanup(void)\n+{\n+\tstruct shared_driver *solib, *tmp;\n+\n+\tTAILQ_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 /*\n  * Parse the coremask given as argument (hexadecimal string) and fill\n  * the global configuration (core role and core count) with the parsed\ndiff --git a/lib/librte_eal/common/eal_options.h b/lib/librte_eal/common/eal_options.h\nindex 9855429e5813..67d3ba0d4491 100644\n--- a/lib/librte_eal/common/eal_options.h\n+++ b/lib/librte_eal/common/eal_options.h\n@@ -84,5 +84,6 @@ 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 \n #endif /* EAL_OPTIONS_H */\ndiff --git a/lib/librte_eal/linux/eal/eal.c b/lib/librte_eal/linux/eal/eal.c\nindex e5c2a24322e9..9a00a3ed43ab 100644\n--- a/lib/librte_eal/linux/eal/eal.c\n+++ b/lib/librte_eal/linux/eal/eal.c\n@@ -1344,6 +1344,7 @@ rte_eal_cleanup(void)\n \trte_eal_intr_cleanup();\n \trte_eal_alarm_cleanup();\n \trte_mp_channel_cleanup();\n+\teal_plugins_cleanup();\n \teal_cleanup_config(&internal_config);\n \trte_eal_log_cleanup();\n \n",
    "prefixes": [
        "11/14"
    ]
}