get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 22931,
    "url": "http://patches.dpdk.org/api/patches/22931/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1490902250-32164-4-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-4-git-send-email-harry.van.haaren@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1490902250-32164-4-git-send-email-harry.van.haaren@intel.com",
    "date": "2017-03-30T19:30:31",
    "name": "[dpdk-dev,v7,03/22] event/sw: add new software-only eventdev driver",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "0d76aff53c3625ef86e7c84f0dc710b699b1bcb5",
    "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-4-git-send-email-harry.van.haaren@intel.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/22931/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/22931/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 828933798;\n\tThu, 30 Mar 2017 21:31:22 +0200 (CEST)",
            "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n\tby dpdk.org (Postfix) with ESMTP id 036599E3\n\tfor <dev@dpdk.org>; Thu, 30 Mar 2017 21:31:06 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby orsmga105.jf.intel.com with ESMTP; 30 Mar 2017 12:31:06 -0700",
            "from silpixa00398672.ir.intel.com ([10.237.223.128])\n\tby fmsmga002.fm.intel.com with ESMTP; 30 Mar 2017 12:31:05 -0700"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos; i=\"5.36,248,1486454400\"; d=\"scan'208\";\n\ta=\"1148967614\"",
        "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:31 +0100",
        "Message-Id": "<1490902250-32164-4-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 03/22] event/sw: add new software-only\n\teventdev driver",
        "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\nThis adds the minimal changes to allow a SW eventdev implementation to\nbe compiled, linked and created at run time. The eventdev does nothing,\nbut can be created via vdev on commandline, e.g.\n\n  sudo ./x86_64-native-linuxapp-gcc/app/test --vdev=event_sw0\n  ...\n  PMD: Creating eventdev sw device event_sw0, numa_node=0, sched_quanta=128\n  RTE>>\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---\n\nv6:\n- Fix value handling for sched quanta, credits and NUMA node (Jerin)\n---\n config/common_base                            |   6 +\n drivers/event/Makefile                        |   1 +\n drivers/event/sw/Makefile                     |  66 ++++++++++\n drivers/event/sw/rte_pmd_evdev_sw_version.map |   3 +\n drivers/event/sw/sw_evdev.c                   | 177 ++++++++++++++++++++++++++\n drivers/event/sw/sw_evdev.h                   | 148 +++++++++++++++++++++\n mk/rte.app.mk                                 |   1 +\n 7 files changed, 402 insertions(+)\n create mode 100644 drivers/event/sw/Makefile\n create mode 100644 drivers/event/sw/rte_pmd_evdev_sw_version.map\n create mode 100644 drivers/event/sw/sw_evdev.c\n create mode 100644 drivers/event/sw/sw_evdev.h",
    "diff": "diff --git a/config/common_base b/config/common_base\nindex 901ac3f..e0b02bb 100644\n--- a/config/common_base\n+++ b/config/common_base\n@@ -463,6 +463,12 @@ CONFIG_RTE_LIBRTE_PMD_SKELETON_EVENTDEV=y\n CONFIG_RTE_LIBRTE_PMD_SKELETON_EVENTDEV_DEBUG=n\n \n #\n+# Compile PMD for software event device\n+#\n+CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV=y\n+CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV_DEBUG=n\n+\n+#\n # Compile librte_ring\n #\n CONFIG_RTE_LIBRTE_RING=y\ndiff --git a/drivers/event/Makefile b/drivers/event/Makefile\nindex 678279f..353441c 100644\n--- a/drivers/event/Makefile\n+++ b/drivers/event/Makefile\n@@ -32,5 +32,6 @@\n 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 \n include $(RTE_SDK)/mk/rte.subdir.mk\ndiff --git a/drivers/event/sw/Makefile b/drivers/event/sw/Makefile\nnew file mode 100644\nindex 0000000..d6836e3\n--- /dev/null\n+++ b/drivers/event/sw/Makefile\n@@ -0,0 +1,66 @@\n+#   BSD LICENSE\n+#\n+#   Copyright(c) 2016-2017 Intel Corporation. All rights reserved.\n+#\n+#   Redistribution and use in source and binary forms, with or without\n+#   modification, are permitted provided that the following conditions\n+#   are met:\n+#\n+#     * Redistributions of source code must retain the above copyright\n+#       notice, this list of conditions and the following disclaimer.\n+#     * Redistributions in binary form must reproduce the above copyright\n+#       notice, this list of conditions and the following disclaimer in\n+#       the documentation and/or other materials provided with the\n+#       distribution.\n+#     * Neither the name of Intel Corporation nor the names of its\n+#       contributors may be used to endorse or promote products derived\n+#       from this software without specific prior written permission.\n+#\n+#   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+#   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+#   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+#   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+#   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+#   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+#   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+#   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+#   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+#   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+#   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+\n+include $(RTE_SDK)/mk/rte.vars.mk\n+\n+\n+# library name\n+LIB = librte_pmd_sw_event.a\n+\n+# build flags\n+CFLAGS += -O3\n+CFLAGS += $(WERROR_FLAGS)\n+# for older GCC versions, allow us to initialize an event using\n+# designated initializers.\n+ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)\n+ifeq ($(shell test $(GCC_VERSION) -le 50 && echo 1), 1)\n+CFLAGS += -Wno-missing-field-initializers\n+endif\n+endif\n+\n+# library version\n+LIBABIVER := 1\n+\n+# versioning export map\n+EXPORT_MAP := rte_pmd_evdev_sw_version.map\n+\n+# library source files\n+SRCS-$(CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV) += sw_evdev.c\n+\n+# export include files\n+SYMLINK-y-include +=\n+\n+# library dependencies\n+DEPDIRS-$(CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV) += lib/librte_eal\n+DEPDIRS-$(CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV) += lib/librte_eventdev\n+DEPDIRS-$(CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV) += lib/librte_kvargs\n+DEPDIRS-$(CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV) += lib/librte_ring\n+\n+include $(RTE_SDK)/mk/rte.lib.mk\ndiff --git a/drivers/event/sw/rte_pmd_evdev_sw_version.map b/drivers/event/sw/rte_pmd_evdev_sw_version.map\nnew file mode 100644\nindex 0000000..5352e7e\n--- /dev/null\n+++ b/drivers/event/sw/rte_pmd_evdev_sw_version.map\n@@ -0,0 +1,3 @@\n+DPDK_17.05 {\n+\tlocal: *;\n+};\ndiff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c\nnew file mode 100644\nindex 0000000..46401f8\n--- /dev/null\n+++ b/drivers/event/sw/sw_evdev.c\n@@ -0,0 +1,177 @@\n+/*-\n+ *   BSD LICENSE\n+ *\n+ *   Copyright(c) 2016-2017 Intel Corporation. All rights reserved.\n+ *\n+ *   Redistribution and use in source and binary forms, with or without\n+ *   modification, are permitted provided that the following conditions\n+ *   are met:\n+ *\n+ *     * Redistributions of source code must retain the above copyright\n+ *       notice, this list of conditions and the following disclaimer.\n+ *     * Redistributions in binary form must reproduce the above copyright\n+ *       notice, this list of conditions and the following disclaimer in\n+ *       the documentation and/or other materials provided with the\n+ *       distribution.\n+ *     * Neither the name of Intel Corporation nor the names of its\n+ *       contributors may be used to endorse or promote products derived\n+ *       from this software without specific prior written permission.\n+ *\n+ *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+ *   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+ *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+ *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+ *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+ *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+ *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+ *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+ *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+ *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+ *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+ */\n+\n+#include <string.h>\n+\n+#include <rte_vdev.h>\n+#include <rte_memzone.h>\n+#include <rte_kvargs.h>\n+#include <rte_ring.h>\n+\n+#include \"sw_evdev.h\"\n+\n+#define EVENTDEV_NAME_SW_PMD event_sw\n+#define NUMA_NODE_ARG \"numa_node\"\n+#define SCHED_QUANTA_ARG \"sched_quanta\"\n+#define CREDIT_QUANTA_ARG \"credit_quanta\"\n+\n+static int\n+assign_numa_node(const char *key __rte_unused, const char *value, void *opaque)\n+{\n+\tint *socket_id = opaque;\n+\t*socket_id = atoi(value);\n+\tif (*socket_id >= RTE_MAX_NUMA_NODES)\n+\t\treturn -1;\n+\treturn 0;\n+}\n+\n+static int\n+set_sched_quanta(const char *key __rte_unused, const char *value, void *opaque)\n+{\n+\tint *quanta = opaque;\n+\t*quanta = atoi(value);\n+\tif (*quanta < 0 || *quanta >= 4096)\n+\t\treturn -1;\n+\treturn 0;\n+}\n+\n+static int\n+set_credit_quanta(const char *key __rte_unused, const char *value, void *opaque)\n+{\n+\tint *credit = opaque;\n+\t*credit = atoi(value);\n+\tif (*credit < 0 || *credit >= 128)\n+\t\treturn -1;\n+\treturn 0;\n+}\n+\n+static int\n+sw_probe(const char *name, const char *params)\n+{\n+\tstatic const struct rte_eventdev_ops evdev_sw_ops = {\n+\t};\n+\n+\tstatic const char *const args[] = {\n+\t\tNUMA_NODE_ARG,\n+\t\tSCHED_QUANTA_ARG,\n+\t\tCREDIT_QUANTA_ARG,\n+\t\tNULL\n+\t};\n+\tstruct rte_eventdev *dev;\n+\tstruct sw_evdev *sw;\n+\tint socket_id = rte_socket_id();\n+\tint sched_quanta  = SW_DEFAULT_SCHED_QUANTA;\n+\tint credit_quanta = SW_DEFAULT_CREDIT_QUANTA;\n+\n+\tif (params != NULL && params[0] != '\\0') {\n+\t\tstruct rte_kvargs *kvlist = rte_kvargs_parse(params, args);\n+\n+\t\tif (!kvlist) {\n+\t\t\tSW_LOG_INFO(\n+\t\t\t\t\"Ignoring unsupported parameters when creating device '%s'\\n\",\n+\t\t\t\tname);\n+\t\t} else {\n+\t\t\tint ret = rte_kvargs_process(kvlist, NUMA_NODE_ARG,\n+\t\t\t\t\tassign_numa_node, &socket_id);\n+\t\t\tif (ret != 0) {\n+\t\t\t\tSW_LOG_ERR(\n+\t\t\t\t\t\"%s: Error parsing numa node parameter\",\n+\t\t\t\t\tname);\n+\t\t\t\trte_kvargs_free(kvlist);\n+\t\t\t\treturn ret;\n+\t\t\t}\n+\n+\t\t\tret = rte_kvargs_process(kvlist, SCHED_QUANTA_ARG,\n+\t\t\t\t\tset_sched_quanta, &sched_quanta);\n+\t\t\tif (ret != 0) {\n+\t\t\t\tSW_LOG_ERR(\n+\t\t\t\t\t\"%s: Error parsing sched quanta parameter\",\n+\t\t\t\t\tname);\n+\t\t\t\trte_kvargs_free(kvlist);\n+\t\t\t\treturn ret;\n+\t\t\t}\n+\n+\t\t\tret = rte_kvargs_process(kvlist, CREDIT_QUANTA_ARG,\n+\t\t\t\t\tset_credit_quanta, &credit_quanta);\n+\t\t\tif (ret != 0) {\n+\t\t\t\tSW_LOG_ERR(\n+\t\t\t\t\t\"%s: Error parsing credit quanta parameter\",\n+\t\t\t\t\tname);\n+\t\t\t\trte_kvargs_free(kvlist);\n+\t\t\t\treturn ret;\n+\t\t\t}\n+\n+\t\t\trte_kvargs_free(kvlist);\n+\t\t}\n+\t}\n+\n+\tSW_LOG_INFO(\n+\t\t\t\"Creating eventdev sw device %s, numa_node=%d, sched_quanta=%d, credit_quanta=%d\\n\",\n+\t\t\tname, socket_id, sched_quanta, credit_quanta);\n+\n+\tdev = rte_event_pmd_vdev_init(name,\n+\t\t\tsizeof(struct sw_evdev), socket_id);\n+\tif (dev == NULL) {\n+\t\tSW_LOG_ERR(\"eventdev vdev init() failed\");\n+\t\treturn -EFAULT;\n+\t}\n+\tdev->dev_ops = &evdev_sw_ops;\n+\n+\tsw = dev->data->dev_private;\n+\tsw->data = dev->data;\n+\n+\t/* copy values passed from vdev command line to instance */\n+\tsw->credit_update_quanta = credit_quanta;\n+\tsw->sched_quanta = sched_quanta;\n+\n+\treturn 0;\n+}\n+\n+static int\n+sw_remove(const char *name)\n+{\n+\tif (name == NULL)\n+\t\treturn -EINVAL;\n+\n+\tSW_LOG_INFO(\"Closing eventdev sw device %s\\n\", name);\n+\n+\treturn rte_event_pmd_vdev_uninit(name);\n+}\n+\n+static struct rte_vdev_driver evdev_sw_pmd_drv = {\n+\t.probe = sw_probe,\n+\t.remove = sw_remove\n+};\n+\n+RTE_PMD_REGISTER_VDEV(EVENTDEV_NAME_SW_PMD, evdev_sw_pmd_drv);\n+RTE_PMD_REGISTER_PARAM_STRING(event_sw, NUMA_NODE_ARG \"=<int> \"\n+\t\tSCHED_QUANTA_ARG \"=<int>\" CREDIT_QUANTA_ARG \"=<int>\");\ndiff --git a/drivers/event/sw/sw_evdev.h b/drivers/event/sw/sw_evdev.h\nnew file mode 100644\nindex 0000000..ab315d4\n--- /dev/null\n+++ b/drivers/event/sw/sw_evdev.h\n@@ -0,0 +1,148 @@\n+/*-\n+ *   BSD LICENSE\n+ *\n+ *   Copyright(c) 2016-2017 Intel Corporation. All rights reserved.\n+ *\n+ *   Redistribution and use in source and binary forms, with or without\n+ *   modification, are permitted provided that the following conditions\n+ *   are met:\n+ *\n+ *     * Redistributions of source code must retain the above copyright\n+ *       notice, this list of conditions and the following disclaimer.\n+ *     * Redistributions in binary form must reproduce the above copyright\n+ *       notice, this list of conditions and the following disclaimer in\n+ *       the documentation and/or other materials provided with the\n+ *       distribution.\n+ *     * Neither the name of Intel Corporation nor the names of its\n+ *       contributors may be used to endorse or promote products derived\n+ *       from this software without specific prior written permission.\n+ *\n+ *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+ *   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+ *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+ *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+ *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+ *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+ *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+ *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+ *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+ *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+ *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+ */\n+\n+#ifndef _SW_EVDEV_H_\n+#define _SW_EVDEV_H_\n+\n+#include <rte_eventdev.h>\n+#include <rte_eventdev_pmd.h>\n+\n+#define SW_DEFAULT_CREDIT_QUANTA 32\n+#define SW_DEFAULT_SCHED_QUANTA 128\n+#define SW_QID_NUM_FIDS 16384\n+#define SW_IQS_MAX 4\n+#define SW_Q_PRIORITY_MAX 255\n+#define SW_PORTS_MAX 64\n+#define MAX_SW_CONS_Q_DEPTH 128\n+#define SW_INFLIGHT_EVENTS_TOTAL 4096\n+/* allow for lots of over-provisioning */\n+#define MAX_SW_PROD_Q_DEPTH 4096\n+#define SW_FRAGMENTS_MAX 16\n+\n+#define EVENTDEV_NAME_SW_PMD event_sw\n+#define SW_PMD_NAME RTE_STR(event_sw)\n+\n+#ifdef RTE_LIBRTE_PMD_EVDEV_SW_DEBUG\n+#define SW_LOG_INFO(fmt, args...) \\\n+\tRTE_LOG(INFO, EVENTDEV, \"[%s] %s() line %u: \" fmt \"\\n\", \\\n+\t\t\tSW_PMD_NAME, \\\n+\t\t\t__func__, __LINE__, ## args)\n+\n+#define SW_LOG_DBG(fmt, args...) \\\n+\tRTE_LOG(DEBUG, EVENTDEV, \"[%s] %s() line %u: \" fmt \"\\n\", \\\n+\t\t\tSW_PMD_NAME, \\\n+\t\t\t__func__, __LINE__, ## args)\n+#else\n+#define SW_LOG_INFO(fmt, args...)\n+#define SW_LOG_DBG(fmt, args...)\n+#endif\n+\n+#define SW_LOG_ERR(fmt, args...) \\\n+\tRTE_LOG(ERR, EVENTDEV, \"[%s] %s() line %u: \" fmt \"\\n\", \\\n+\t\t\tSW_PMD_NAME, \\\n+\t\t\t__func__, __LINE__, ## args)\n+\n+/* Records basic event stats at a given point. Used in port and qid structs */\n+struct sw_point_stats {\n+\tuint64_t rx_pkts;\n+\tuint64_t rx_dropped;\n+\tuint64_t tx_pkts;\n+};\n+\n+/* structure used to track what port a flow (FID) is pinned to */\n+struct sw_fid_t {\n+\t/* which CQ this FID is currently pinned to */\n+\tint32_t cq;\n+\t/* number of packets gone to the CQ with this FID */\n+\tuint32_t pcount;\n+};\n+\n+struct reorder_buffer_entry {\n+\tuint16_t num_fragments;\t\t/**< Number of packet fragments */\n+\tuint16_t fragment_index;\t/**< Points to the oldest valid frag */\n+\tuint8_t ready;\t\t\t/**< Entry is ready to be reordered */\n+\tstruct rte_event fragments[SW_FRAGMENTS_MAX];\n+};\n+\n+struct sw_qid {\n+\t/* set when the QID has been initialized */\n+\tuint8_t initialized;\n+\t/* The type of this QID */\n+\tint8_t type;\n+\t/* Integer ID representing the queue. This is used in history lists,\n+\t * to identify the stage of processing.\n+\t */\n+\tuint32_t id;\n+\tstruct sw_point_stats stats;\n+\n+\t/* Internal priority rings for packets */\n+\tstruct iq_ring *iq[SW_IQS_MAX];\n+\tuint32_t iq_pkt_mask; /* A mask to indicate packets in an IQ */\n+\tuint64_t iq_pkt_count[SW_IQS_MAX];\n+\n+\t/* Information on what CQs are polling this IQ */\n+\tuint32_t cq_num_mapped_cqs;\n+\tuint32_t cq_next_tx; /* cq to write next (non-atomic) packet */\n+\tuint32_t cq_map[SW_PORTS_MAX];\n+\n+\t/* Track flow ids for atomic load balancing */\n+\tstruct sw_fid_t fids[SW_QID_NUM_FIDS];\n+\n+\t/* Track packet order for reordering when needed */\n+\tstruct reorder_buffer_entry *reorder_buffer; /*< pkts await reorder */\n+\tstruct rte_ring *reorder_buffer_freelist; /* available reorder slots */\n+\tuint32_t reorder_buffer_index; /* oldest valid reorder buffer entry */\n+\tuint32_t window_size;          /* Used to wrap reorder_buffer_index */\n+\n+\tuint8_t priority;\n+};\n+\n+struct sw_evdev {\n+\tstruct rte_eventdev_data *data;\n+\n+\tint32_t sched_quanta;\n+\tuint32_t credit_update_quanta;\n+};\n+\n+static inline struct sw_evdev *\n+sw_pmd_priv(const struct rte_eventdev *eventdev)\n+{\n+\treturn eventdev->data->dev_private;\n+}\n+\n+static inline const struct sw_evdev *\n+sw_pmd_priv_const(const struct rte_eventdev *eventdev)\n+{\n+\treturn eventdev->data->dev_private;\n+}\n+\n+#endif /* _SW_EVDEV_H_ */\ndiff --git a/mk/rte.app.mk b/mk/rte.app.mk\nindex 498369e..8b9db01 100644\n--- a/mk/rte.app.mk\n+++ b/mk/rte.app.mk\n@@ -153,6 +153,7 @@ endif # CONFIG_RTE_LIBRTE_CRYPTODEV\n \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 endif # CONFIG_RTE_LIBRTE_EVENTDEV\n \n endif # !CONFIG_RTE_BUILD_SHARED_LIBS\n",
    "prefixes": [
        "dpdk-dev",
        "v7",
        "03/22"
    ]
}