get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 6498,
    "url": "https://patches.dpdk.org/api/patches/6498/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1437303137-29430-4-git-send-email-thomas.monjalon@6wind.com/",
    "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": "<1437303137-29430-4-git-send-email-thomas.monjalon@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1437303137-29430-4-git-send-email-thomas.monjalon@6wind.com",
    "date": "2015-07-19T10:52:16",
    "name": "[dpdk-dev,3/4] ethdev: refactor port release",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "ed3623c5f854600c4ee32dba649945960d8d0a2f",
    "submitter": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/people/1/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas.monjalon@6wind.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1437303137-29430-4-git-send-email-thomas.monjalon@6wind.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/6498/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/6498/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 D0878C344;\n\tSun, 19 Jul 2015 12:53:38 +0200 (CEST)",
            "from mail-wg0-f52.google.com (mail-wg0-f52.google.com\n\t[74.125.82.52]) by dpdk.org (Postfix) with ESMTP id F0675C332\n\tfor <dev@dpdk.org>; Sun, 19 Jul 2015 12:53:34 +0200 (CEST)",
            "by wgkl9 with SMTP id l9so110874126wgk.1\n\tfor <dev@dpdk.org>; Sun, 19 Jul 2015 03:53:34 -0700 (PDT)",
            "from XPS13.localdomain (117.114.118.80.rev.sfr.net.\n\t[80.118.114.117]) by smtp.gmail.com with ESMTPSA id\n\td5sm6481160wiz.24.2015.07.19.03.53.33\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tSun, 19 Jul 2015 03:53:34 -0700 (PDT)"
        ],
        "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=TOAFv05YacD3JkJN61tmwEZrBVQLowcCOzbmbbsTGls=;\n\tb=RiJ/4hAUoBmnjNmgXGTnZNulC4oqokGd3GzWkO/wiHSIMi20TZQLYigUq2HPlMRO39\n\tXQPfCUSUjQyHsGf0DFuOvxXHKk6r8u5tUwJK06KJR8ZfVVos26LVwn40lmfH3tsr0tnz\n\tH2Xq4bf9EGvL9Wl1rMYujsX9b7YQs75TtSYBU438qVdDiGNYhugHLQFy9BjVPWK2hzy9\n\tvRp4Q/4r1iWkB4/e+UcM8syBRlL0WCfCIPl9PxHstjUX0bcyNiXyH/hd80iiPNeCI1mX\n\tbdhxsX/hK3H5GZNxc1BFwl2fOHXihatzaF/e3pcm15fKBPsjyAWdXAyO0bim2oVfeAs2\n\tYs2g==",
        "X-Gm-Message-State": "ALoCoQlpHefBCk5CjyOeY0FS8MmatdJhI2EvSqxGEwyU3Ur+UlfoafXRIOTne0vtdlFAzIHEqIR+",
        "X-Received": "by 10.194.71.135 with SMTP id v7mr43588916wju.83.1437303214885; \n\tSun, 19 Jul 2015 03:53:34 -0700 (PDT)",
        "From": "Thomas Monjalon <thomas.monjalon@6wind.com>",
        "To": "dev@dpdk.org",
        "Date": "Sun, 19 Jul 2015 12:52:16 +0200",
        "Message-Id": "<1437303137-29430-4-git-send-email-thomas.monjalon@6wind.com>",
        "X-Mailer": "git-send-email 2.4.2",
        "In-Reply-To": "<1437303137-29430-1-git-send-email-thomas.monjalon@6wind.com>",
        "References": "<1437303137-29430-1-git-send-email-thomas.monjalon@6wind.com>",
        "Subject": "[dpdk-dev] [PATCH 3/4] ethdev: refactor port release",
        "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": "Use DEV_DETACHED constant and deduplicate code in init.\n\nSigned-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>\n---\n lib/librte_ether/rte_ethdev.c | 5 ++---\n 1 file changed, 2 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c\nindex 9596047..d00d104 100644\n--- a/lib/librte_ether/rte_ethdev.c\n+++ b/lib/librte_ether/rte_ethdev.c\n@@ -287,7 +287,7 @@ rte_eth_dev_release_port(struct rte_eth_dev *eth_dev)\n \tif (eth_dev == NULL)\n \t\treturn -EINVAL;\n \n-\teth_dev->attached = 0;\n+\teth_dev->attached = DEV_DETACHED;\n \tnb_ports--;\n \treturn 0;\n }\n@@ -342,8 +342,7 @@ rte_eth_dev_init(struct rte_pci_driver *pci_drv,\n \t\t\t(unsigned) pci_dev->id.device_id);\n \tif (rte_eal_process_type() == RTE_PROC_PRIMARY)\n \t\trte_free(eth_dev->data->dev_private);\n-\teth_dev->attached = DEV_DETACHED;\n-\tnb_ports--;\n+\trte_eth_dev_release_port(eth_dev);\n \treturn diag;\n }\n \n",
    "prefixes": [
        "dpdk-dev",
        "3/4"
    ]
}