get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 22932,
    "url": "http://patches.dpdk.org/api/patches/22932/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1490902250-32164-5-git-send-email-harry.van.haaren@intel.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": "<1490902250-32164-5-git-send-email-harry.van.haaren@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1490902250-32164-5-git-send-email-harry.van.haaren@intel.com",
    "date": "2017-03-30T19:30:32",
    "name": "[dpdk-dev,v7,04/22] event/sw: add device capabilities function",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "cd8502ce32ab4c1181745abf7831f1e2526d4fe3",
    "submitter": {
        "id": 317,
        "url": "http://patches.dpdk.org/api/people/317/?format=api",
        "name": "Van Haaren, Harry",
        "email": "harry.van.haaren@intel.com"
    },
    "delegate": {
        "id": 310,
        "url": "http://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1490902250-32164-5-git-send-email-harry.van.haaren@intel.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/22932/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/22932/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 D6DE437B2;\n\tThu, 30 Mar 2017 21:31:24 +0200 (CEST)",
            "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n\tby dpdk.org (Postfix) with ESMTP id 2A40A29D6\n\tfor <dev@dpdk.org>; Thu, 30 Mar 2017 21:31:08 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby orsmga105.jf.intel.com with ESMTP; 30 Mar 2017 12:31:07 -0700",
            "from silpixa00398672.ir.intel.com ([10.237.223.128])\n\tby fmsmga002.fm.intel.com with ESMTP; 30 Mar 2017 12:31:06 -0700"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos; i=\"5.36,248,1486454400\"; d=\"scan'208\";\n\ta=\"1148967620\"",
        "From": "Harry van Haaren <harry.van.haaren@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "jerin.jacob@caviumnetworks.com,\n\tBruce Richardson <bruce.richardson@intel.com>,\n\tHarry van Haaren <harry.van.haaren@intel.com>",
        "Date": "Thu, 30 Mar 2017 20:30:32 +0100",
        "Message-Id": "<1490902250-32164-5-git-send-email-harry.van.haaren@intel.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1490902250-32164-1-git-send-email-harry.van.haaren@intel.com>",
        "References": "<1490829963-106807-1-git-send-email-harry.van.haaren@intel.com>\n\t<1490902250-32164-1-git-send-email-harry.van.haaren@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v7 04/22] event/sw: add device capabilities\n\tfunction",
        "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": "From: Bruce Richardson <bruce.richardson@intel.com>\n\nAdd in the info_get function to return details on the queues, flow,\nprioritization capabilities, etc. that this device has.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\nSigned-off-by: Harry van Haaren <harry.van.haaren@intel.com>\n\nAcked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>\n---\n drivers/event/sw/sw_evdev.c | 23 +++++++++++++++++++++++\n 1 file changed, 23 insertions(+)",
    "diff": "diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c\nindex 46401f8..907125e 100644\n--- a/drivers/event/sw/sw_evdev.c\n+++ b/drivers/event/sw/sw_evdev.c\n@@ -44,6 +44,28 @@\n #define SCHED_QUANTA_ARG \"sched_quanta\"\n #define CREDIT_QUANTA_ARG \"credit_quanta\"\n \n+static void\n+sw_info_get(struct rte_eventdev *dev, struct rte_event_dev_info *info)\n+{\n+\tRTE_SET_USED(dev);\n+\n+\tstatic const struct rte_event_dev_info evdev_sw_info = {\n+\t\t\t.driver_name = SW_PMD_NAME,\n+\t\t\t.max_event_queues = RTE_EVENT_MAX_QUEUES_PER_DEV,\n+\t\t\t.max_event_queue_flows = SW_QID_NUM_FIDS,\n+\t\t\t.max_event_queue_priority_levels = SW_Q_PRIORITY_MAX,\n+\t\t\t.max_event_priority_levels = SW_IQS_MAX,\n+\t\t\t.max_event_ports = SW_PORTS_MAX,\n+\t\t\t.max_event_port_dequeue_depth = MAX_SW_CONS_Q_DEPTH,\n+\t\t\t.max_event_port_enqueue_depth = MAX_SW_PROD_Q_DEPTH,\n+\t\t\t.max_num_events = SW_INFLIGHT_EVENTS_TOTAL,\n+\t\t\t.event_dev_cap = (RTE_EVENT_DEV_CAP_QUEUE_QOS |\n+\t\t\t\t\tRTE_EVENT_DEV_CAP_EVENT_QOS),\n+\t};\n+\n+\t*info = evdev_sw_info;\n+}\n+\n static int\n assign_numa_node(const char *key __rte_unused, const char *value, void *opaque)\n {\n@@ -78,6 +100,7 @@ static int\n sw_probe(const char *name, const char *params)\n {\n \tstatic const struct rte_eventdev_ops evdev_sw_ops = {\n+\t\t\t.dev_infos_get = sw_info_get,\n \t};\n \n \tstatic const char *const args[] = {\n",
    "prefixes": [
        "dpdk-dev",
        "v7",
        "04/22"
    ]
}