get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 44829,
    "url": "http://patches.dpdk.org/api/patches/44829/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180918124514.10615-3-mattias.ronnblom@ericsson.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": "<20180918124514.10615-3-mattias.ronnblom@ericsson.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180918124514.10615-3-mattias.ronnblom@ericsson.com",
    "date": "2018-09-18T12:45:06",
    "name": "[v4,02/10] event/dsw: add DSW device and queue configuration",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "7df4bada3cb15e07933a0b9ff3311d01fdc29d43",
    "submitter": {
        "id": 1077,
        "url": "http://patches.dpdk.org/api/people/1077/?format=api",
        "name": "Mattias Rönnblom",
        "email": "mattias.ronnblom@ericsson.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/20180918124514.10615-3-mattias.ronnblom@ericsson.com/mbox/",
    "series": [
        {
            "id": 1368,
            "url": "http://patches.dpdk.org/api/series/1368/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1368",
            "date": "2018-09-18T12:45:04",
            "name": "A Distributed Software Event Device",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/1368/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/44829/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/44829/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 D57084CA7;\n\tTue, 18 Sep 2018 14:45:29 +0200 (CEST)",
            "from sesbmg22.ericsson.net (sesbmg22.ericsson.net [193.180.251.48])\n\tby dpdk.org (Postfix) with ESMTP id ED6D61559\n\tfor <dev@dpdk.org>; Tue, 18 Sep 2018 14:45:27 +0200 (CEST)",
            "from ESESSMB503.ericsson.se (Unknown_Domain [153.88.183.121])\n\tby sesbmg22.ericsson.net (Symantec Mail Security) with SMTP id\n\tB0.49.21978.763F0AB5; Tue, 18 Sep 2018 14:45:27 +0200 (CEST)",
            "from ESESBMR501.ericsson.se (153.88.183.129) by\n\tESESSMB503.ericsson.se (153.88.183.191) with Microsoft SMTP Server\n\t(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id\n\t15.1.1466.3; Tue, 18 Sep 2018 14:45:26 +0200",
            "from ESESBMB504.ericsson.se (153.88.183.171) by\n\tESESBMR501.ericsson.se (153.88.183.129) with Microsoft SMTP Server\n\t(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id\n\t15.1.1466.3; Tue, 18 Sep 2018 14:45:26 +0200",
            "from selio1a020.lmera.ericsson.se (153.88.183.153) by\n\tsmtp.internal.ericsson.com (153.88.183.187) with Microsoft SMTP\n\tServer id\n\t15.1.1466.3 via Frontend Transport; Tue, 18 Sep 2018 14:45:26 +0200",
            "from breslau.lmera.ericsson.se (breslau.lmera.ericsson.se\n\t[150.132.109.241])\n\tby selio1a020.lmera.ericsson.se (8.15.1+Sun/8.15.1) with ESMTP id\n\tw8ICjQ1V011575; Tue, 18 Sep 2018 14:45:27 +0200 (CEST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801;\n\tc=relaxed/simple; q=dns/txt; i=@ericsson.com; t=1537274727;\n\th=From:Sender:Reply-To:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Type:\n\tContent-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id:\n\tList-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;\n\tbh=sDjOTcjeojkD8K7Ap/OaqmNcKTelKLhp615LZB8A7zg=;\n\tb=ba3c4yj6ug37SCv8qU9eyC+0dzcIcpWYf63+ZZXWYstw+bywo6vHO5l8a2dsUoxc\n\tf6WwfT77RfoETO7zQpIG6h9/omo+ts0p6BSLSgfKr2i1jJP2Y2h13aqyEYXiRw4q\n\tBkLCcStXyXLRC3hTNtOyM5Pte9LPmP1x2G1gOy5Bvzk=;",
        "X-AuditID": "c1b4fb30-ff9ff700000055da-d7-5ba0f367bf6d",
        "From": "=?utf-8?q?Mattias_R=C3=B6nnblom?= <mattias.ronnblom@ericsson.com>",
        "To": "Jerin Jacob <jerin.jacob@caviumnetworks.com>",
        "CC": "Bruce Richardson <bruce.richardson@intel.com>, <dev@dpdk.org>,\n\t=?utf-8?q?Mattias_R=C3=B6nnblom?= <mattias.ronnblom@ericsson.com>",
        "Date": "Tue, 18 Sep 2018 14:45:06 +0200",
        "Message-ID": "<20180918124514.10615-3-mattias.ronnblom@ericsson.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20180918124514.10615-1-mattias.ronnblom@ericsson.com>",
        "References": "<20180918124514.10615-1-mattias.ronnblom@ericsson.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"UTF-8\"",
        "Content-Transfer-Encoding": "8bit",
        "X-Brightmail-Tracker": "H4sIAAAAAAAAA+NgFnrILMWRmVeSWpSXmKPExsUyM2J7pW765wXRBnNPSVjcWGVv8e7TdiaL\n\tiZNMHJg9NpzoZ/X4tWApq8fiPS+ZApijuGxSUnMyy1KL9O0SuDLubn3NVtCqXDHx61m2BsbV\n\tsl2MHBwSAiYSnT0WXYycHEICRxkluv+zdjFyAdnfGCXmn1/NDOc87X4MlbnIKNG76j9U5jKj\n\txKwfcxhB+tkEPCUmv+tmAbFFBAwkFp25D1bELNDBKNE89Q9YQljAW6Lp1AQ2kN0sAqoSf+47\n\tgYR5BZwk/ncdZAWxJQTkJVZvOMAMYnMKOEt8nrqOCaRcCKjm4gZliHJBiZMzn4BNZBbQlGjd\n\t/psdwpaXaN46mxniHS2J+0u+ME9gFJ6FpGUWkpZZSFoWMDKvYhQtTi1Oyk03MtJLLcpMLi7O\n\tz9PLSy3ZxAgM+INbfhvsYHz53PEQowAHoxIPb/SrBdFCrIllxZW5hxglOJiVRHg5c4BCvCmJ\n\tlVWpRfnxRaU5qcWHGKU5WJTEeS38NkcJCaQnlqRmp6YWpBbBZJk4OKUaGP3YrbscPxkEq67c\n\t9ZLvSsyfkwZljFsc38+VSer8sOpQp4D86W3TUt8a3vJfuP6qa3KXon5dUS0z3/f3m2zT3Pra\n\tZboEkj/NmCDzmsWCRcTXo/ac2Mf+tVuyHUrnfPss75J3d3WVTtzJTI9gu3V+Z14JZvZfm+C1\n\tyI3hUk7pDLHPfmu5D4iIKrEUZyQaajEXFScCANPxjYl0AgAA",
        "Subject": "[dpdk-dev] [PATCH v4 02/10] event/dsw: add DSW device and queue\n\tconfiguration",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Allow queue- and device-level configuration for and retrieval of\ncontextual information from a DSW event device.\n\nSigned-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>\n---\n drivers/event/dsw/dsw_evdev.c | 87 +++++++++++++++++++++++++++++++++++\n drivers/event/dsw/dsw_evdev.h | 28 +++++++++++\n 2 files changed, 115 insertions(+)",
    "diff": "diff --git a/drivers/event/dsw/dsw_evdev.c b/drivers/event/dsw/dsw_evdev.c\nindex 6990bbc9e..1500d2426 100644\n--- a/drivers/event/dsw/dsw_evdev.c\n+++ b/drivers/event/dsw/dsw_evdev.c\n@@ -9,6 +9,91 @@\n \n #define EVENTDEV_NAME_DSW_PMD event_dsw\n \n+static int\n+dsw_queue_setup(struct rte_eventdev *dev, uint8_t queue_id,\n+\t\tconst struct rte_event_queue_conf *conf)\n+{\n+\tstruct dsw_evdev *dsw = dsw_pmd_priv(dev);\n+\tstruct dsw_queue *queue = &dsw->queues[queue_id];\n+\n+\tif (RTE_EVENT_QUEUE_CFG_ALL_TYPES & conf->event_queue_cfg)\n+\t\treturn -ENOTSUP;\n+\n+\tif (conf->schedule_type == RTE_SCHED_TYPE_ORDERED)\n+\t\treturn -ENOTSUP;\n+\n+\t/* SINGLE_LINK is better off treated as TYPE_ATOMIC, since it\n+\t * avoid the \"fake\" TYPE_PARALLEL flow_id assignment. Since\n+\t * the queue will only have a single serving port, no\n+\t * migration will ever happen, so the extra TYPE_ATOMIC\n+\t * migration overhead is avoided.\n+\t */\n+\tif (RTE_EVENT_QUEUE_CFG_SINGLE_LINK & conf->event_queue_cfg)\n+\t\tqueue->schedule_type = RTE_SCHED_TYPE_ATOMIC;\n+\telse /* atomic or parallel */\n+\t\tqueue->schedule_type = conf->schedule_type;\n+\n+\tqueue->num_serving_ports = 0;\n+\n+\treturn 0;\n+}\n+\n+static void\n+dsw_queue_def_conf(struct rte_eventdev *dev __rte_unused,\n+\t\t   uint8_t queue_id __rte_unused,\n+\t\t   struct rte_event_queue_conf *queue_conf)\n+{\n+\t*queue_conf = (struct rte_event_queue_conf) {\n+\t\t.nb_atomic_flows = 4096,\n+\t\t.schedule_type = RTE_SCHED_TYPE_ATOMIC,\n+\t\t.priority = RTE_EVENT_DEV_PRIORITY_NORMAL\n+\t};\n+}\n+\n+static void\n+dsw_queue_release(struct rte_eventdev *dev __rte_unused,\n+\t\t  uint8_t queue_id __rte_unused)\n+{\n+}\n+\n+static void\n+dsw_info_get(struct rte_eventdev *dev __rte_unused,\n+\t     struct rte_event_dev_info *info)\n+{\n+\t*info = (struct rte_event_dev_info) {\n+\t\t.driver_name = DSW_PMD_NAME,\n+\t\t.max_event_queues = DSW_MAX_QUEUES,\n+\t\t.max_event_queue_flows = DSW_MAX_FLOWS,\n+\t\t.max_event_queue_priority_levels = 1,\n+\t\t.max_event_priority_levels = 1,\n+\t\t.max_event_ports = DSW_MAX_PORTS,\n+\t\t.max_event_port_dequeue_depth = DSW_MAX_PORT_DEQUEUE_DEPTH,\n+\t\t.max_event_port_enqueue_depth = DSW_MAX_PORT_ENQUEUE_DEPTH,\n+\t\t.max_num_events = DSW_MAX_EVENTS,\n+\t\t.event_dev_cap = RTE_EVENT_DEV_CAP_BURST_MODE|\n+\t\tRTE_EVENT_DEV_CAP_DISTRIBUTED_SCHED\n+\t};\n+}\n+\n+static int\n+dsw_configure(const struct rte_eventdev *dev)\n+{\n+\tstruct dsw_evdev *dsw = dsw_pmd_priv(dev);\n+\tconst struct rte_event_dev_config *conf = &dev->data->dev_conf;\n+\n+\tdsw->num_queues = conf->nb_event_queues;\n+\n+\treturn 0;\n+}\n+\n+static struct rte_eventdev_ops dsw_evdev_ops = {\n+\t.queue_setup = dsw_queue_setup,\n+\t.queue_def_conf = dsw_queue_def_conf,\n+\t.queue_release = dsw_queue_release,\n+\t.dev_infos_get = dsw_info_get,\n+\t.dev_configure = dsw_configure,\n+};\n+\n static int\n dsw_probe(struct rte_vdev_device *vdev)\n {\n@@ -23,6 +108,8 @@ dsw_probe(struct rte_vdev_device *vdev)\n \tif (dev == NULL)\n \t\treturn -EFAULT;\n \n+\tdev->dev_ops = &dsw_evdev_ops;\n+\n \tif (rte_eal_process_type() != RTE_PROC_PRIMARY)\n \t\treturn 0;\n \ndiff --git a/drivers/event/dsw/dsw_evdev.h b/drivers/event/dsw/dsw_evdev.h\nindex 9a0f4c357..5eda8d114 100644\n--- a/drivers/event/dsw/dsw_evdev.h\n+++ b/drivers/event/dsw/dsw_evdev.h\n@@ -9,8 +9,36 @@\n \n #define DSW_PMD_NAME RTE_STR(event_dsw)\n \n+/* Code changes are required to allow more ports. */\n+#define DSW_MAX_PORTS (64)\n+#define DSW_MAX_PORT_DEQUEUE_DEPTH (128)\n+#define DSW_MAX_PORT_ENQUEUE_DEPTH (128)\n+\n+#define DSW_MAX_QUEUES (16)\n+\n+#define DSW_MAX_EVENTS (16384)\n+\n+/* Code changes are required to allow more flows than 32k. */\n+#define DSW_MAX_FLOWS_BITS (15)\n+#define DSW_MAX_FLOWS (1<<(DSW_MAX_FLOWS_BITS))\n+#define DSW_MAX_FLOWS_MASK (DSW_MAX_FLOWS-1)\n+\n+struct dsw_queue {\n+\tuint8_t schedule_type;\n+\tuint16_t num_serving_ports;\n+};\n+\n struct dsw_evdev {\n \tstruct rte_eventdev_data *data;\n+\n+\tstruct dsw_queue queues[DSW_MAX_QUEUES];\n+\tuint8_t num_queues;\n };\n \n+static inline struct dsw_evdev *\n+dsw_pmd_priv(const struct rte_eventdev *eventdev)\n+{\n+\treturn eventdev->data->dev_private;\n+}\n+\n #endif\n",
    "prefixes": [
        "v4",
        "02/10"
    ]
}