get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 64210,
    "url": "http://patches.dpdk.org/api/patches/64210/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200104013341.19809-14-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-14-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200104013341.19809-14-stephen@networkplumber.org",
    "date": "2020-01-04T01:33:40",
    "name": "[13/14] eal: hotplug: cleanup multiprocess resources",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "cb4b3677cfc0b1861bf974756868cc403e92c6d9",
    "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-14-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/64210/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/64210/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 E205BA04DD;\n\tSat,  4 Jan 2020 02:35:49 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 670C21D579;\n\tSat,  4 Jan 2020 02:34:16 +0100 (CET)",
            "from mail-pg1-f194.google.com (mail-pg1-f194.google.com\n [209.85.215.194]) by dpdk.org (Postfix) with ESMTP id 2150C1D556\n for <dev@dpdk.org>; Sat,  4 Jan 2020 02:34:08 +0100 (CET)",
            "by mail-pg1-f194.google.com with SMTP id b9so24133243pgk.12\n for <dev@dpdk.org>; Fri, 03 Jan 2020 17:34:08 -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.05\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 03 Jan 2020 17:34:06 -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=QQG5FyzbJ/i5NIOOidQ6T4VEeXPduNZODErhbfaJRh4=;\n b=0WGk7K5l77plyTfzAJRrXmsodUOY5g6EkDnYKK/Lvpud8QVG84nOvB6+CuobRml2K5\n bzfFmPdAsCoVyIFJFdj4YNyai8d3v9gPQzDVQ3UfMTx2hJ+rJp1Q0HWuIFDniS14H9RG\n o4ggYdybT2lfnnUZLoOGBgQpwZsjNUY03lx/2Reg90GyGq0Q2GyA5La9v6Nn0DjLoCB5\n ilEdK6Be8quT7DBcc4jEkbdNRimc5ddJO0RA/TdOmOgX9fzSi3uuF8DV1u7bpdxyyjST\n tEs/h1RB5ptb07P80drF9PguNjA+T2Oze3lOfOTqY1PaVbF/iKOOVP8r6FCEXXCIETjI\n Xzug==",
        "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=QQG5FyzbJ/i5NIOOidQ6T4VEeXPduNZODErhbfaJRh4=;\n b=tEILolCVUesFdKa3uBt3/k2K63Jd44S4Kok2hu0tYdotT99JkbsT+5yay7B6EDwakp\n G0iRXo2HemTn1hvp42kEMR7vhos9Z1TGxOaZF/oJVBbLTF30ih33CGT9zLZdAhT8UHsX\n kh4OZA7ABg3QweIXfN5eHsRpDwqdqtSiF243LuNGfh8g7enC5Yut+/LC4vTM1Wga9Zp3\n a1pFGdragkSNjMIABxO5+8iDAxF14Bl/yLZ1jZ4hBF3dJ+ACKq7NH4c3CZKjeB90ea3s\n WhfgOY4RN5DhAHrZDcyViw8oasJAC0eEMW7yFvQ/Re+0h2XBHUnJY4F+Kv33BsCq+mWy\n gvVQ==",
        "X-Gm-Message-State": "APjAAAWKM9WzOC3q4aTcOS0G/fdQ4vxRDaAwhKTyaTL3SPG5lfyllne3\n Q+yvXbQgLU8AQLEaQBuijoBN/7Mk9sA=",
        "X-Google-Smtp-Source": "\n APXvYqz8OEvGkSkDXCYv0OrIBSsNnTn0RhYqcdV2fIiuu/MoLltRuE1T47K3mbkabFkC/9VmdXihmg==",
        "X-Received": "by 2002:a63:753:: with SMTP id 80mr91742223pgh.95.1578101646893;\n Fri, 03 Jan 2020 17:34:06 -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:40 -0800",
        "Message-Id": "<20200104013341.19809-14-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 13/14] eal: hotplug: cleanup multiprocess\n\tresources",
        "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, hotplug should unregister the\nresources associated with the multi-process server.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n lib/librte_eal/common/hotplug_mp.c | 5 +++++\n lib/librte_eal/common/hotplug_mp.h | 6 ++++++\n lib/librte_eal/linux/eal/eal.c     | 1 +\n 3 files changed, 12 insertions(+)",
    "diff": "diff --git a/lib/librte_eal/common/hotplug_mp.c b/lib/librte_eal/common/hotplug_mp.c\nindex ee791903b3b7..a390c01fd41c 100644\n--- a/lib/librte_eal/common/hotplug_mp.c\n+++ b/lib/librte_eal/common/hotplug_mp.c\n@@ -463,3 +463,8 @@ int eal_mp_dev_hotplug_init(void)\n \n \treturn 0;\n }\n+\n+void eal_mp_dev_hotplug_cleanup(void)\n+{\n+\trte_mp_action_unregister(EAL_DEV_MP_ACTION_REQUEST);\n+}\ndiff --git a/lib/librte_eal/common/hotplug_mp.h b/lib/librte_eal/common/hotplug_mp.h\nindex 8fcf9b52e24c..4848446c852d 100644\n--- a/lib/librte_eal/common/hotplug_mp.h\n+++ b/lib/librte_eal/common/hotplug_mp.h\n@@ -37,6 +37,12 @@ struct eal_dev_mp_req {\n int\n eal_mp_dev_hotplug_init(void);\n \n+/**\n+ * Unregister all mp action callbacks for hotplug.\n+ */\n+void\n+eal_mp_dev_hotplug_cleanup(void);\n+\n /**\n  * This is a synchronous wrapper for secondary process send\n  * request to primary process, this is invoked when an attach\ndiff --git a/lib/librte_eal/linux/eal/eal.c b/lib/librte_eal/linux/eal/eal.c\nindex 9a00a3ed43ab..ef04defbeaa4 100644\n--- a/lib/librte_eal/linux/eal/eal.c\n+++ b/lib/librte_eal/linux/eal/eal.c\n@@ -1343,6 +1343,7 @@ rte_eal_cleanup(void)\n #endif\n \trte_eal_intr_cleanup();\n \trte_eal_alarm_cleanup();\n+\teal_mp_dev_hotplug_cleanup();\n \trte_mp_channel_cleanup();\n \teal_plugins_cleanup();\n \teal_cleanup_config(&internal_config);\n",
    "prefixes": [
        "13/14"
    ]
}