get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 28519,
    "url": "https://patches.dpdk.org/api/patches/28519/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1504883894-43451-5-git-send-email-harry.van.haaren@intel.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": "<1504883894-43451-5-git-send-email-harry.van.haaren@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1504883894-43451-5-git-send-email-harry.van.haaren@intel.com",
    "date": "2017-09-08T15:18:14",
    "name": "[dpdk-dev,v2,4/4] eventdev: add device started attribute",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e076e0ccc4173997bc9ed102fc031e6dd3031c07",
    "submitter": {
        "id": 317,
        "url": "https://patches.dpdk.org/api/people/317/?format=api",
        "name": "Van Haaren, Harry",
        "email": "harry.van.haaren@intel.com"
    },
    "delegate": {
        "id": 310,
        "url": "https://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1504883894-43451-5-git-send-email-harry.van.haaren@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/28519/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/28519/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 6176E199DE;\n\tFri,  8 Sep 2017 17:18:15 +0200 (CEST)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id CA805199CB\n\tfor <dev@dpdk.org>; Fri,  8 Sep 2017 17:18:11 +0200 (CEST)",
            "from orsmga005.jf.intel.com ([10.7.209.41])\n\tby orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t08 Sep 2017 08:18:11 -0700",
            "from silpixa00398672.ir.intel.com ([10.237.223.128])\n\tby orsmga005.jf.intel.com with ESMTP; 08 Sep 2017 08:18:10 -0700"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.42,362,1500966000\"; d=\"scan'208\";a=\"147035392\"",
        "From": "Harry van Haaren <harry.van.haaren@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "jerin.jacob@caviumnetworks.com,\n\tHarry van Haaren <harry.van.haaren@intel.com>",
        "Date": "Fri,  8 Sep 2017 16:18:14 +0100",
        "Message-Id": "<1504883894-43451-5-git-send-email-harry.van.haaren@intel.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1504883894-43451-1-git-send-email-harry.van.haaren@intel.com>",
        "References": "<1500900500-144237-1-git-send-email-harry.van.haaren@intel.com>\n\t<1504883894-43451-1-git-send-email-harry.van.haaren@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2 4/4] eventdev: add device started attribute",
        "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 commit adds an attribute to the eventdev, allowing applications\nto retrieve if the eventdev is running or stopped. Note that no API\nor ABI changes were required in adding the statistic, and code changes\nare minimal.\n\nSigned-off-by: Harry van Haaren <harry.van.haaren@intel.com>\n---\n lib/librte_eventdev/rte_eventdev.c | 3 +++\n lib/librte_eventdev/rte_eventdev.h | 4 ++++\n 2 files changed, 7 insertions(+)",
    "diff": "diff --git a/lib/librte_eventdev/rte_eventdev.c b/lib/librte_eventdev/rte_eventdev.c\nindex 85c0960..9ec5d42 100644\n--- a/lib/librte_eventdev/rte_eventdev.c\n+++ b/lib/librte_eventdev/rte_eventdev.c\n@@ -740,6 +740,9 @@ rte_event_dev_attr_get(uint8_t dev_id, uint32_t attr_id,\n \tcase RTE_EVENT_DEV_ATTR_QUEUE_COUNT:\n \t\t*attr_value = dev->data->nb_queues;\n \t\tbreak;\n+\tcase RTE_EVENT_DEV_ATTR_STARTED:\n+\t\t*attr_value = dev->data->dev_started;\n+\t\tbreak;\n \t}\n \n \treturn 0;\ndiff --git a/lib/librte_eventdev/rte_eventdev.h b/lib/librte_eventdev/rte_eventdev.h\nindex cd3026d..f76d9f9 100644\n--- a/lib/librte_eventdev/rte_eventdev.h\n+++ b/lib/librte_eventdev/rte_eventdev.h\n@@ -695,6 +695,10 @@ rte_event_port_setup(uint8_t dev_id, uint8_t port_id,\n  * The count of queues.\n  */\n #define RTE_EVENT_DEV_ATTR_QUEUE_COUNT 1\n+/**\n+ * The state of the device, returns zero if stopped, non-zero when running.\n+ */\n+#define RTE_EVENT_DEV_ATTR_STARTED 2\n \n /**\n  * Get an attribute from a device.\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "4/4"
    ]
}