Show a patch.

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

{
    "id": 44556,
    "url": "http://patches.dpdk.org/api/patches/44556/",
    "web_url": "http://patches.dpdk.org/patch/44556/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<20180911080216.3017-2-mattias.ronnblom@ericsson.com>",
    "date": "2018-09-11T08:02:07",
    "name": "[v3,01/10] event/dsw: add DSW device registration and build system",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "4e08443db6d530a0d99748423f70bad9d94fc7a0",
    "submitter": {
        "id": 1077,
        "url": "http://patches.dpdk.org/api/people/1077/",
        "name": "Mattias Rönnblom",
        "email": "mattias.ronnblom@ericsson.com"
    },
    "delegate": {
        "id": 310,
        "url": "http://patches.dpdk.org/api/users/310/",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerin.jacob@caviumnetworks.com"
    },
    "mbox": "http://patches.dpdk.org/patch/44556/mbox/",
    "series": [
        {
            "id": 1264,
            "url": "http://patches.dpdk.org/api/series/1264/",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1264",
            "date": "2018-09-11T08:02:07",
            "name": "A Distributed Software Event Device",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/1264/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/44556/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/44556/checks/",
    "tags": {},
    "headers": {
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "In-Reply-To": "<20180911080216.3017-1-mattias.ronnblom@ericsson.com>",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-Mailer": "git-send-email 2.17.1",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 62C054C91;\n\tTue, 11 Sep 2018 10:03:14 +0200 (CEST)",
            "from mail.lysator.liu.se (mail.lysator.liu.se [130.236.254.3])\n\tby dpdk.org (Postfix) with ESMTP id 859054C91\n\tfor <dev@dpdk.org>; Tue, 11 Sep 2018 10:03:12 +0200 (CEST)",
            "from mail.lysator.liu.se (localhost [127.0.0.1])\n\tby mail.lysator.liu.se (Postfix) with ESMTP id E644640080\n\tfor <dev@dpdk.org>; Tue, 11 Sep 2018 10:03:11 +0200 (CEST)",
            "by mail.lysator.liu.se (Postfix, from userid 1004)\n\tid D29F14007F; Tue, 11 Sep 2018 10:03:11 +0200 (CEST)",
            "from isengard.friendlyfire.se\n\t(host-90-232-156-190.mobileonline.telia.com [90.232.156.190])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby mail.lysator.liu.se (Postfix) with ESMTPSA id 1BD2740022;\n\tTue, 11 Sep 2018 10:03:10 +0200 (CEST)"
        ],
        "References": "<20180911080216.3017-1-mattias.ronnblom@ericsson.com>",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "MIME-Version": "1.0",
        "Message-Id": "<20180911080216.3017-2-mattias.ronnblom@ericsson.com>",
        "X-Virus-Scanned": "ClamAV using ClamSMTP",
        "Delivered-To": "patchwork@dpdk.org",
        "Content-Transfer-Encoding": "8bit",
        "From": "=?utf-8?q?Mattias_R=C3=B6nnblom?= <mattias.ronnblom@ericsson.com>",
        "X-Original-To": "patchwork@dpdk.org",
        "Content-Type": "text/plain; charset=UTF-8",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@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>",
        "To": "jerin.jacob@caviumnetworks.com",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "X-Spam-Status": "No, score=-0.9 required=5.0 tests=ALL_TRUSTED,AWL\n\tautolearn=disabled version=3.4.1",
        "X-Spam-Level": "",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "X-Spam-Checker-Version": "SpamAssassin 3.4.1 (2015-04-28) on\n\tbernadotte.lysator.liu.se",
        "X-BeenThere": "dev@dpdk.org",
        "Date": "Tue, 11 Sep 2018 10:02:07 +0200",
        "Cc": "bruce.richardson@intel.com, dev@dpdk.org, =?utf-8?q?Mattias_R=C3=B6nnb?=\n\t=?utf-8?q?lom?= <mattias.ronnblom@ericsson.com>",
        "X-Spam-Score": "-0.9",
        "Subject": "[dpdk-dev] [PATCH v3 01/10] event/dsw: add DSW device registration\n\tand build system"
    },
    "content": "This patch contains the Meson and GNU Make build system extensions\nrequired for the Distributed Event Device, and also the initialization\ncode for the driver itself.\n\nSigned-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>\n---\n config/common_base                            |  5 ++\n drivers/event/Makefile                        |  1 +\n drivers/event/dsw/Makefile                    | 26 ++++++++++\n drivers/event/dsw/dsw_evdev.c                 | 52 +++++++++++++++++++\n drivers/event/dsw/dsw_evdev.h                 | 16 ++++++\n drivers/event/dsw/meson.build                 |  6 +++\n .../event/dsw/rte_pmd_dsw_event_version.map   |  3 ++\n drivers/event/meson.build                     |  2 +-\n mk/rte.app.mk                                 |  1 +\n 9 files changed, 111 insertions(+), 1 deletion(-)\n create mode 100644 drivers/event/dsw/Makefile\n create mode 100644 drivers/event/dsw/dsw_evdev.c\n create mode 100644 drivers/event/dsw/dsw_evdev.h\n create mode 100644 drivers/event/dsw/meson.build\n create mode 100644 drivers/event/dsw/rte_pmd_dsw_event_version.map",
    "diff": "diff --git a/config/common_base b/config/common_base\nindex 4bcbaf923..c43f5139d 100644\n--- a/config/common_base\n+++ b/config/common_base\n@@ -614,6 +614,11 @@ CONFIG_RTE_LIBRTE_PMD_SKELETON_EVENTDEV_DEBUG=n\n #\n CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV=y\n \n+#\n+# Compile PMD for distributed software event device\n+#\n+CONFIG_RTE_LIBRTE_PMD_DSW_EVENTDEV=y\n+\n #\n # Compile PMD for octeontx sso event device\n #\ndiff --git a/drivers/event/Makefile b/drivers/event/Makefile\nindex f301d8dc2..03ad1b6cb 100644\n--- a/drivers/event/Makefile\n+++ b/drivers/event/Makefile\n@@ -6,6 +6,7 @@ include $(RTE_SDK)/mk/rte.vars.mk\n \n DIRS-$(CONFIG_RTE_LIBRTE_PMD_SKELETON_EVENTDEV) += skeleton\n DIRS-$(CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV) += sw\n+DIRS-$(CONFIG_RTE_LIBRTE_PMD_DSW_EVENTDEV) += dsw\n DIRS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += octeontx\n ifeq ($(CONFIG_RTE_LIBRTE_DPAA_BUS),y)\n DIRS-$(CONFIG_RTE_LIBRTE_PMD_DPAA_EVENTDEV) += dpaa\ndiff --git a/drivers/event/dsw/Makefile b/drivers/event/dsw/Makefile\nnew file mode 100644\nindex 000000000..5cbf488ff\n--- /dev/null\n+++ b/drivers/event/dsw/Makefile\n@@ -0,0 +1,26 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2018 Ericsson AB\n+\n+include $(RTE_SDK)/mk/rte.vars.mk\n+\n+LIB = librte_pmd_dsw_event.a\n+\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n+CFLAGS += -O3\n+CFLAGS += $(WERROR_FLAGS)\n+CFLAGS += -Wno-format-nonliteral\n+\n+LDLIBS += -lrte_eal\n+LDLIBS += -lrte_mbuf\n+LDLIBS += -lrte_mempool\n+LDLIBS += -lrte_ring\n+LDLIBS += -lrte_eventdev\n+LDLIBS += -lrte_bus_vdev\n+\n+LIBABIVER := 1\n+\n+EXPORT_MAP := rte_pmd_dsw_event_version.map\n+\n+SRCS-$(CONFIG_RTE_LIBRTE_PMD_DSW_EVENTDEV) += dsw_evdev.c\n+\n+include $(RTE_SDK)/mk/rte.lib.mk\ndiff --git a/drivers/event/dsw/dsw_evdev.c b/drivers/event/dsw/dsw_evdev.c\nnew file mode 100644\nindex 000000000..6990bbc9e\n--- /dev/null\n+++ b/drivers/event/dsw/dsw_evdev.c\n@@ -0,0 +1,52 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2018 Ericsson AB\n+ */\n+\n+#include <rte_eventdev_pmd.h>\n+#include <rte_eventdev_pmd_vdev.h>\n+\n+#include \"dsw_evdev.h\"\n+\n+#define EVENTDEV_NAME_DSW_PMD event_dsw\n+\n+static int\n+dsw_probe(struct rte_vdev_device *vdev)\n+{\n+\tconst char *name;\n+\tstruct rte_eventdev *dev;\n+\tstruct dsw_evdev *dsw;\n+\n+\tname = rte_vdev_device_name(vdev);\n+\n+\tdev = rte_event_pmd_vdev_init(name, sizeof(struct dsw_evdev),\n+\t\t\t\t      rte_socket_id());\n+\tif (dev == NULL)\n+\t\treturn -EFAULT;\n+\n+\tif (rte_eal_process_type() != RTE_PROC_PRIMARY)\n+\t\treturn 0;\n+\n+\tdsw = dev->data->dev_private;\n+\tdsw->data = dev->data;\n+\n+\treturn 0;\n+}\n+\n+static int\n+dsw_remove(struct rte_vdev_device *vdev)\n+{\n+\tconst char *name;\n+\n+\tname = rte_vdev_device_name(vdev);\n+\tif (name == NULL)\n+\t\treturn -EINVAL;\n+\n+\treturn rte_event_pmd_vdev_uninit(name);\n+}\n+\n+static struct rte_vdev_driver evdev_dsw_pmd_drv = {\n+\t.probe = dsw_probe,\n+\t.remove = dsw_remove\n+};\n+\n+RTE_PMD_REGISTER_VDEV(EVENTDEV_NAME_DSW_PMD, evdev_dsw_pmd_drv);\ndiff --git a/drivers/event/dsw/dsw_evdev.h b/drivers/event/dsw/dsw_evdev.h\nnew file mode 100644\nindex 000000000..9a0f4c357\n--- /dev/null\n+++ b/drivers/event/dsw/dsw_evdev.h\n@@ -0,0 +1,16 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2018 Ericsson AB\n+ */\n+\n+#ifndef _DSW_EVDEV_H_\n+#define _DSW_EVDEV_H_\n+\n+#include <rte_eventdev.h>\n+\n+#define DSW_PMD_NAME RTE_STR(event_dsw)\n+\n+struct dsw_evdev {\n+\tstruct rte_eventdev_data *data;\n+};\n+\n+#endif\ndiff --git a/drivers/event/dsw/meson.build b/drivers/event/dsw/meson.build\nnew file mode 100644\nindex 000000000..275d051c3\n--- /dev/null\n+++ b/drivers/event/dsw/meson.build\n@@ -0,0 +1,6 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2018 Ericsson AB\n+\n+allow_experimental_apis = true\n+deps += ['bus_vdev']\n+sources = files('dsw_evdev.c')\ndiff --git a/drivers/event/dsw/rte_pmd_dsw_event_version.map b/drivers/event/dsw/rte_pmd_dsw_event_version.map\nnew file mode 100644\nindex 000000000..24bd5cdb3\n--- /dev/null\n+++ b/drivers/event/dsw/rte_pmd_dsw_event_version.map\n@@ -0,0 +1,3 @@\n+DPDK_18.11 {\n+\tlocal: *;\n+};\ndiff --git a/drivers/event/meson.build b/drivers/event/meson.build\nindex e95119935..4b9fed22b 100644\n--- a/drivers/event/meson.build\n+++ b/drivers/event/meson.build\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2017 Intel Corporation\n \n-drivers = ['dpaa', 'dpaa2', 'octeontx', 'skeleton', 'sw']\n+drivers = ['dpaa', 'dpaa2', 'octeontx', 'skeleton', 'sw', 'dsw']\n std_deps = ['eventdev', 'kvargs']\n config_flag_fmt = 'RTE_LIBRTE_@0@_EVENTDEV_PMD'\n driver_name_fmt = 'rte_pmd_@0@_event'\ndiff --git a/mk/rte.app.mk b/mk/rte.app.mk\nindex de33883be..682e224eb 100644\n--- a/mk/rte.app.mk\n+++ b/mk/rte.app.mk\n@@ -236,6 +236,7 @@ endif # CONFIG_RTE_LIBRTE_COMPRESSDEV\n ifeq ($(CONFIG_RTE_LIBRTE_EVENTDEV),y)\n _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_SKELETON_EVENTDEV) += -lrte_pmd_skeleton_event\n _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV) += -lrte_pmd_sw_event\n+_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_DSW_EVENTDEV) += -lrte_pmd_dsw_event\n _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += -lrte_pmd_octeontx_ssovf\n ifeq ($(CONFIG_RTE_LIBRTE_DPAA_BUS),y)\n _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_DPAA_EVENTDEV) += -lrte_pmd_dpaa_event\n",
    "prefixes": [
        "v3",
        "01/10"
    ]
}