get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 24527,
    "url": "http://patches.dpdk.org/api/patches/24527/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/ce33d7b7489be150c95bf59e254bcb8151631b1f.1495634974.git.gaetan.rivet@6wind.com/",
    "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": "<ce33d7b7489be150c95bf59e254bcb8151631b1f.1495634974.git.gaetan.rivet@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/ce33d7b7489be150c95bf59e254bcb8151631b1f.1495634974.git.gaetan.rivet@6wind.com",
    "date": "2017-05-24T15:20:00",
    "name": "[dpdk-dev,v3,02/11] ethdev: add deferred intermediate device state",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "2b6ccf3ed1911e8d4bebc52a2912bf37a44ac94b",
    "submitter": {
        "id": 269,
        "url": "http://patches.dpdk.org/api/people/269/?format=api",
        "name": "Gaëtan Rivet",
        "email": "gaetan.rivet@6wind.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/ce33d7b7489be150c95bf59e254bcb8151631b1f.1495634974.git.gaetan.rivet@6wind.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/24527/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/24527/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 4D68D90F3;\n\tWed, 24 May 2017 17:20:33 +0200 (CEST)",
            "from mail-wm0-f45.google.com (mail-wm0-f45.google.com\n\t[74.125.82.45]) by dpdk.org (Postfix) with ESMTP id DBD467D47\n\tfor <dev@dpdk.org>; Wed, 24 May 2017 17:20:24 +0200 (CEST)",
            "by mail-wm0-f45.google.com with SMTP id 7so67461994wmo.1\n\tfor <dev@dpdk.org>; Wed, 24 May 2017 08:20:24 -0700 (PDT)",
            "from bidouze.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com.\n\t[62.23.145.78]) by smtp.gmail.com with ESMTPSA id\n\tt85sm5444271wmt.23.2017.05.24.08.20.22\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tWed, 24 May 2017 08:20:22 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:in-reply-to:references;\n\tbh=gFBXBCDqMW8+oXoPt5k8jvZrPH37wnsD1NiFZeGN4zI=;\n\tb=YjJCWHAUpCUt2eHIPtkYuqSi9p1A0RATcix8TtrrYNIqwMODIPWrruIgSxHhee/fgz\n\tXAWQjy2EUL1r8OjJs9RQ+VrpKJqheaa0RK381abBFbKHlkByz3mnDs174BakRgXFm74A\n\t/GzlTS5tD4nwhK8XAL4NkNneu8TCF3cHTfusUH32jqCcGY78ZZStdLFYU+heKDr8pd8A\n\tSN6q3oRFC3a1w8sbknPaKUyaDTh0fW5AqpfmSnuvFPBZpSuZZKBx3EAd/paXJ1i1OeO2\n\teJg3OcsYrOxUzMfmBKorZE3RUlM82RjvQLNFIAeTAglPyd/hAZtgUme928HhuQIJGH3S\n\t0LFw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:in-reply-to:references;\n\tbh=gFBXBCDqMW8+oXoPt5k8jvZrPH37wnsD1NiFZeGN4zI=;\n\tb=JD3kys2Du20GUazo1i9mrmcZA5rq0PidqqDNVvSvcqbvFU0BRtdLwhGus5Dywkjn0r\n\tfRwhaFIXUuZKaDgr5bYehDKZNkR9A+e5OOLO9CE6eXwlrMgQnGYlXk1rPc4zQ7bnUVMk\n\ttO6YHorbR1noU1zoILPPtZyiy+Utgmdae7Nsxjik+rs/uIKYkerUalZEknx131Rtj/sl\n\tdan+8Z6/XZMNYci9X7j7UOENGRd0gpGGCyt8f8dQKKcyasyjdkeNOrVTXF6GPnWyV/KL\n\t31zuvZ78jzezOnVVCT4rETledBOuHr6anroctQ8Qfq1ywW21WQn3XehmbFlKkV0gIPIx\n\tiU5Q==",
        "X-Gm-Message-State": "AODbwcAvZCTi6j5Qnz9kHp0y7E8Ok5LWV9yTQQw5cVvVR2CCX3wSQDjJ\n\tNiJC1z/qHktM44ZnQTc=",
        "X-Received": "by 10.28.154.198 with SMTP id c189mr6138988wme.117.1495639223161;\n\tWed, 24 May 2017 08:20:23 -0700 (PDT)",
        "From": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "To": "dev@dpdk.org",
        "Cc": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "Date": "Wed, 24 May 2017 17:20:00 +0200",
        "Message-Id": "<ce33d7b7489be150c95bf59e254bcb8151631b1f.1495634974.git.gaetan.rivet@6wind.com>",
        "X-Mailer": "git-send-email 2.1.4",
        "In-Reply-To": [
            "<cover.1495634974.git.gaetan.rivet@6wind.com>",
            "<cover.1495634974.git.gaetan.rivet@6wind.com>"
        ],
        "References": [
            "<cover.1495634974.git.gaetan.rivet@6wind.com>",
            "<cover.1495634974.git.gaetan.rivet@6wind.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH v3 02/11] ethdev: add deferred intermediate\n\tdevice state",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <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 device state means that the device is managed externally, by\nwhichever party has set this state (PMD or application).\n\nNote: this new device state is only an information. The related device\nstructure and operators are still valid and can be used normally.\n\nIt is however made private by device management helpers within ethdev,\nmaking the device invisible to applications.\n\nSigned-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>\n---\n lib/librte_ether/rte_ethdev.c | 3 ++-\n lib/librte_ether/rte_ethdev.h | 1 +\n 2 files changed, 3 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c\nindex c8c5e73..f592643 100644\n--- a/lib/librte_ether/rte_ethdev.c\n+++ b/lib/librte_ether/rte_ethdev.c\n@@ -288,7 +288,8 @@ int\n rte_eth_dev_is_valid_port(uint8_t port_id)\n {\n \tif (port_id >= RTE_MAX_ETHPORTS ||\n-\t    rte_eth_devices[port_id].state != RTE_ETH_DEV_ATTACHED)\n+\t    (rte_eth_devices[port_id].state != RTE_ETH_DEV_ATTACHED &&\n+\t     rte_eth_devices[port_id].state != RTE_ETH_DEV_DEFERRED))\n \t\treturn 0;\n \telse\n \t\treturn 1;\ndiff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h\nindex 33cc48c..161b0ff 100644\n--- a/lib/librte_ether/rte_ethdev.h\n+++ b/lib/librte_ether/rte_ethdev.h\n@@ -1652,6 +1652,7 @@ struct rte_eth_rxtx_callback {\n enum rte_eth_dev_state {\n \tRTE_ETH_DEV_UNUSED = 0,\n \tRTE_ETH_DEV_ATTACHED,\n+\tRTE_ETH_DEV_DEFERRED,\n };\n \n /**\n",
    "prefixes": [
        "dpdk-dev",
        "v3",
        "02/11"
    ]
}