get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2368,
    "url": "https://patches.dpdk.org/api/patches/2368/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1421664027-17971-4-git-send-email-mukawa@igel.co.jp/",
    "project": {
        "id": 1,
        "url": "https://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": "<1421664027-17971-4-git-send-email-mukawa@igel.co.jp>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1421664027-17971-4-git-send-email-mukawa@igel.co.jp",
    "date": "2015-01-19T10:40:19",
    "name": "[dpdk-dev,v4,03/11] ethdev: Add rte_eth_dev_free to free specified device",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e492c11e98899de4a51fca0e4c1adcce6bcc7539",
    "submitter": {
        "id": 64,
        "url": "https://patches.dpdk.org/api/people/64/?format=api",
        "name": "Tetsuya Mukawa",
        "email": "mukawa@igel.co.jp"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1421664027-17971-4-git-send-email-mukawa@igel.co.jp/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/2368/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/2368/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id E6F5C5AB1;\n\tMon, 19 Jan 2015 11:41:23 +0100 (CET)",
            "from mail-pa0-f41.google.com (mail-pa0-f41.google.com\n\t[209.85.220.41]) by dpdk.org (Postfix) with ESMTP id 25BD65A9B\n\tfor <dev@dpdk.org>; Mon, 19 Jan 2015 11:41:14 +0100 (CET)",
            "by mail-pa0-f41.google.com with SMTP id rd3so38152116pab.0\n\tfor <dev@dpdk.org>; Mon, 19 Jan 2015 02:41:13 -0800 (PST)",
            "from localhost.localdomain (napt.igel.co.jp. [219.106.231.132])\n\tby mx.google.com with ESMTPSA id\n\ta13sm11337588pdm.44.2015.01.19.02.41.11\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tMon, 19 Jan 2015 02:41:12 -0800 (PST)"
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=f7wP47ai7Cg8OykXg0dFDNk7WjAuaDfCFkviORqIMv8=;\n\tb=HliLc7Ru5JEyw5Ubsz2F6aihrzT/+lIkG/+h40ctIweGe81VbJiyhXh19BeRk9uLGs\n\tzDUFtsnCrTF6XbDkopus+LhDxci1vpVJ6OlduwrzO+ofNNp9hUkpVYgAel78Wha7XzoN\n\tGQCIyJZpJtT9DiXYB8nSD/xmKt6lXU+5FHvtCock3EX17QOE4BKkcsvXaW+cwo8aTaQP\n\tKsYLJ9JwnCpdQmxtpDkN2WkwVDYkp+HDajRfniogJyC0lWT3tzc+CLD4i2o50GEKGIEn\n\tSgE8TIfJwAag3muz5yw7kGKWXmPqv3QW96X+ukEl3R8suLBKBbRZQekqMhJc9wt8TsJI\n\t2owQ==",
        "X-Gm-Message-State": "ALoCoQk3GgIK1iIPJmnyxPnCvq9EU7o/jn6914QVm06qS+S8oCz0E3R3mnVQkxMfs3kHJg0KIEWP",
        "X-Received": "by 10.66.65.108 with SMTP id w12mr42881526pas.115.1421664073519; \n\tMon, 19 Jan 2015 02:41:13 -0800 (PST)",
        "From": "Tetsuya Mukawa <mukawa@igel.co.jp>",
        "To": "dev@dpdk.org",
        "Date": "Mon, 19 Jan 2015 19:40:19 +0900",
        "Message-Id": "<1421664027-17971-4-git-send-email-mukawa@igel.co.jp>",
        "X-Mailer": "git-send-email 1.9.1",
        "In-Reply-To": "<1421664027-17971-1-git-send-email-mukawa@igel.co.jp>",
        "References": "<1418106629-22227-2-git-send-email-mukawa@igel.co.j>\n\t<1421664027-17971-1-git-send-email-mukawa@igel.co.jp>",
        "Subject": "[dpdk-dev] [PATCH v4 03/11] ethdev: Add rte_eth_dev_free to free\n\tspecified device",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "This patch adds rte_eth_dev_free(). The function is used for changing a\nattached status of the device that has specified name.\n\nv4:\n- Add paramerter checking.\n\nSigned-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>\n---\n lib/librte_ether/rte_ethdev.c | 20 ++++++++++++++++++++\n lib/librte_ether/rte_ethdev.h | 11 +++++++++++\n 2 files changed, 31 insertions(+)",
    "diff": "diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c\nindex 46cabaf..16f22c0 100644\n--- a/lib/librte_ether/rte_ethdev.c\n+++ b/lib/librte_ether/rte_ethdev.c\n@@ -260,6 +260,26 @@ rte_eth_dev_allocate(const char *name)\n \treturn eth_dev;\n }\n \n+struct rte_eth_dev *\n+rte_eth_dev_free(const char *name)\n+{\n+\tstruct rte_eth_dev *eth_dev;\n+\n+\tif (name == NULL)\n+\t\treturn NULL;\n+\n+\teth_dev = rte_eth_dev_allocated(name);\n+\tif (eth_dev == NULL) {\n+\t\tPMD_DEBUG_TRACE(\"Ethernet Device with name %s doesn't exist!\\n\",\n+\t\t\t\tname);\n+\t\treturn NULL;\n+\t}\n+\n+\teth_dev->attached = 0;\n+\tnb_ports--;\n+\treturn eth_dev;\n+}\n+\n static int\n rte_eth_dev_init(struct rte_pci_driver *pci_drv,\n \t\t struct rte_pci_device *pci_dev)\ndiff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h\nindex 616a44a..fe64c78 100644\n--- a/lib/librte_ether/rte_ethdev.h\n+++ b/lib/librte_ether/rte_ethdev.h\n@@ -1653,6 +1653,17 @@ extern uint8_t rte_eth_dev_count(void);\n  */\n struct rte_eth_dev *rte_eth_dev_allocate(const char *name);\n \n+/**\n+ * Function for internal use by dummy drivers primarily, e.g. ring-based\n+ * driver.\n+ * Free the specified ethdev and returns the pointer to that slot.\n+ *\n+ * @param\tname\tUnique identifier name for each Ethernet device\n+ * @return\n+ *   - Slot in the rte_dev_devices array for the freed device;\n+ */\n+struct rte_eth_dev *rte_eth_dev_free(const char *name);\n+\n struct eth_driver;\n /**\n  * @internal\n",
    "prefixes": [
        "dpdk-dev",
        "v4",
        "03/11"
    ]
}