get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 66101,
    "url": "http://patches.dpdk.org/api/patches/66101/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1582820317-7333-5-git-send-email-lbartosik@marvell.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": "<1582820317-7333-5-git-send-email-lbartosik@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1582820317-7333-5-git-send-email-lbartosik@marvell.com",
    "date": "2020-02-27T16:18:26",
    "name": "[v5,04/15] examples/ipsec-secgw: add Rx adapter support",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "c9e9c50c06f3107203db7eaa4b6fb6c44d2c109d",
    "submitter": {
        "id": 1305,
        "url": "http://patches.dpdk.org/api/people/1305/?format=api",
        "name": "Lukas Bartosik [C]",
        "email": "lbartosik@marvell.com"
    },
    "delegate": {
        "id": 6690,
        "url": "http://patches.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1582820317-7333-5-git-send-email-lbartosik@marvell.com/mbox/",
    "series": [
        {
            "id": 8713,
            "url": "http://patches.dpdk.org/api/series/8713/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8713",
            "date": "2020-02-27T16:18:22",
            "name": "add eventmode to ipsec-secgw",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/8713/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/66101/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/66101/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 9325AA055F;\n\tThu, 27 Feb 2020 17:19:29 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 0B2FB1BFF0;\n\tThu, 27 Feb 2020 17:19:01 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id C7AD71BFED\n for <dev@dpdk.org>; Thu, 27 Feb 2020 17:18:56 +0100 (CET)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id\n 01RFsqaN002551; Thu, 27 Feb 2020 08:18:56 -0800",
            "from sc-exch03.marvell.com ([199.233.58.183])\n by mx0b-0016f401.pphosted.com with ESMTP id 2ydchth8ev-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Thu, 27 Feb 2020 08:18:56 -0800",
            "from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH03.marvell.com\n (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 27 Feb\n 2020 08:18:54 -0800",
            "from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com\n (10.93.176.83) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Thu, 27 Feb 2020 08:18:54 -0800",
            "from luke.marvell.com (unknown [10.95.130.81])\n by maili.marvell.com (Postfix) with ESMTP id 562EA3F7040;\n Thu, 27 Feb 2020 08:18:51 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-type; s=pfpt0818; bh=uNW1JEV7eOXa1nGLkkV5ZE8QWZOeJKAXZDvw40vDyAw=;\n b=p3AAzYrXotOaEZo59iHmu0V6isTSjZcJbZJQ9JZUIc9fKY1ITA5DpJxQT/erkMRdcmyv\n ylQYK0WTLpUHKgR8RyPlMcWr9a++Cpqh7IDoyx99KLymH1xBor1JxxH71gDvHNT4ht8Q\n AHOQ8AcPAqeW6XNy1S7y2CPDzVhSg5ymORBmuspbaH/PCC+6Sor4c9A2KkagNx9njOW5\n D26a4x6FzC9uZYT9L3eruPA956gwG7odCjkD4EQ6APWQwgrToRr93MaxUV8/o9i2xMgu\n 7LK/QLJzd+MfmQlwhWukDvtQGCR5619lkUATBwFyEpdclD/NuEO2IEK7We8KOnZiU6rc Sw==",
        "From": "Lukasz Bartosik <lbartosik@marvell.com>",
        "To": "Akhil Goyal <akhil.goyal@nxp.com>, Radu Nicolau <radu.nicolau@intel.com>,\n Thomas Monjalon <thomas@monjalon.net>",
        "CC": "Anoob Joseph <anoobj@marvell.com>, Jerin Jacob <jerinj@marvell.com>,\n Narayana Prasad <pathreya@marvell.com>,\n Ankur Dwivedi <adwivedi@marvell.com>,\n Archana Muniganti <marchana@marvell.com>, Tejasree Kondoj\n <ktejasree@marvell.com>, Vamsi Attunuru <vattunuru@marvell.com>,\n \"Konstantin Ananyev\" <konstantin.ananyev@intel.com>, <dev@dpdk.org>",
        "Date": "Thu, 27 Feb 2020 17:18:26 +0100",
        "Message-ID": "<1582820317-7333-5-git-send-email-lbartosik@marvell.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1582820317-7333-1-git-send-email-lbartosik@marvell.com>",
        "References": "<1582185727-6749-1-git-send-email-lbartosik@marvell.com>\n <1582820317-7333-1-git-send-email-lbartosik@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572\n definitions=2020-02-27_05:2020-02-26,\n 2020-02-27 signatures=0",
        "Subject": "[dpdk-dev] [PATCH v5 04/15] examples/ipsec-secgw: add Rx adapter\n\tsupport",
        "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 <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 <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Anoob Joseph <anoobj@marvell.com>\n\nAdd Rx adapter support. The event helper init routine will initialize\nthe Rx adapter according to the configuration. If Rx adapter config\nis not present it will generate a default config. If there are enough\nevent queues available it will map eth ports and event queues 1:1\n(one eth port will be connected to one event queue). Otherwise it\nwill map all eth ports to one event queue.\n\nSigned-off-by: Anoob Joseph <anoobj@marvell.com>\nSigned-off-by: Lukasz Bartosik <lbartosik@marvell.com>\n---\n examples/ipsec-secgw/event_helper.c | 273 +++++++++++++++++++++++++++++++++++-\n examples/ipsec-secgw/event_helper.h |  29 ++++\n 2 files changed, 301 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/examples/ipsec-secgw/event_helper.c b/examples/ipsec-secgw/event_helper.c\nindex c90249f..2653e86 100644\n--- a/examples/ipsec-secgw/event_helper.c\n+++ b/examples/ipsec-secgw/event_helper.c\n@@ -4,10 +4,58 @@\n #include <rte_bitmap.h>\n #include <rte_ethdev.h>\n #include <rte_eventdev.h>\n+#include <rte_event_eth_rx_adapter.h>\n #include <rte_malloc.h>\n+#include <stdbool.h>\n \n #include \"event_helper.h\"\n \n+static int\n+eh_get_enabled_cores(struct rte_bitmap *eth_core_mask)\n+{\n+\tint i, count = 0;\n+\n+\tRTE_LCORE_FOREACH(i) {\n+\t\t/* Check if this core is enabled in core mask*/\n+\t\tif (rte_bitmap_get(eth_core_mask, i)) {\n+\t\t\t/* Found enabled core */\n+\t\t\tcount++;\n+\t\t}\n+\t}\n+\treturn count;\n+}\n+\n+static inline unsigned int\n+eh_get_next_eth_core(struct eventmode_conf *em_conf)\n+{\n+\tstatic unsigned int prev_core = -1;\n+\tunsigned int next_core;\n+\n+\t/*\n+\t * Make sure we have at least one eth core running, else the following\n+\t * logic would lead to an infinite loop.\n+\t */\n+\tif (eh_get_enabled_cores(em_conf->eth_core_mask) == 0) {\n+\t\tEH_LOG_ERR(\"No enabled eth core found\");\n+\t\treturn RTE_MAX_LCORE;\n+\t}\n+\n+\t/* Only some cores are marked as eth cores, skip others */\n+\tdo {\n+\t\t/* Get the next core */\n+\t\tnext_core = rte_get_next_lcore(prev_core, 0, 1);\n+\n+\t\t/* Check if we have reached max lcores */\n+\t\tif (next_core == RTE_MAX_LCORE)\n+\t\t\treturn next_core;\n+\n+\t\t/* Update prev_core */\n+\t\tprev_core = next_core;\n+\t} while (!(rte_bitmap_get(em_conf->eth_core_mask, next_core)));\n+\n+\treturn next_core;\n+}\n+\n static inline unsigned int\n eh_get_next_active_core(struct eventmode_conf *em_conf, unsigned int prev_core)\n {\n@@ -164,6 +212,82 @@ eh_set_default_conf_link(struct eventmode_conf *em_conf)\n }\n \n static int\n+eh_set_default_conf_rx_adapter(struct eventmode_conf *em_conf)\n+{\n+\tstruct rx_adapter_connection_info *conn;\n+\tstruct eventdev_params *eventdev_config;\n+\tstruct rx_adapter_conf *adapter;\n+\tbool single_ev_queue = false;\n+\tint eventdev_id;\n+\tint nb_eth_dev;\n+\tint adapter_id;\n+\tint conn_id;\n+\tint i;\n+\n+\t/* Create one adapter with eth queues mapped to event queue(s) */\n+\n+\tif (em_conf->nb_eventdev == 0) {\n+\t\tEH_LOG_ERR(\"No event devs registered\");\n+\t\treturn -EINVAL;\n+\t}\n+\n+\t/* Get the number of eth devs */\n+\tnb_eth_dev = rte_eth_dev_count_avail();\n+\n+\t/* Use the first event dev */\n+\teventdev_config = &(em_conf->eventdev_config[0]);\n+\n+\t/* Get eventdev ID */\n+\teventdev_id = eventdev_config->eventdev_id;\n+\tadapter_id = 0;\n+\n+\t/* Get adapter conf */\n+\tadapter = &(em_conf->rx_adapter[adapter_id]);\n+\n+\t/* Set adapter conf */\n+\tadapter->eventdev_id = eventdev_id;\n+\tadapter->adapter_id = adapter_id;\n+\tadapter->rx_core_id = eh_get_next_eth_core(em_conf);\n+\n+\t/*\n+\t * Map all queues of eth device (port) to an event queue. If there\n+\t * are more event queues than eth ports then create 1:1 mapping.\n+\t * Otherwise map all eth ports to a single event queue.\n+\t */\n+\tif (nb_eth_dev > eventdev_config->nb_eventqueue)\n+\t\tsingle_ev_queue = true;\n+\n+\tfor (i = 0; i < nb_eth_dev; i++) {\n+\n+\t\t/* Use only the ports enabled */\n+\t\tif ((em_conf->eth_portmask & (1 << i)) == 0)\n+\t\t\tcontinue;\n+\n+\t\t/* Get the connection id */\n+\t\tconn_id = adapter->nb_connections;\n+\n+\t\t/* Get the connection */\n+\t\tconn = &(adapter->conn[conn_id]);\n+\n+\t\t/* Set mapping between eth ports & event queues*/\n+\t\tconn->ethdev_id = i;\n+\t\tconn->eventq_id = single_ev_queue ? 0 : i;\n+\n+\t\t/* Add all eth queues eth port to event queue */\n+\t\tconn->ethdev_rx_qid = -1;\n+\n+\t\t/* Update no of connections */\n+\t\tadapter->nb_connections++;\n+\n+\t}\n+\n+\t/* We have setup one adapter */\n+\tem_conf->nb_rx_adapter = 1;\n+\n+\treturn 0;\n+}\n+\n+static int\n eh_validate_conf(struct eventmode_conf *em_conf)\n {\n \tint ret;\n@@ -188,6 +312,16 @@ eh_validate_conf(struct eventmode_conf *em_conf)\n \t\t\treturn ret;\n \t}\n \n+\t/*\n+\t * Check if rx adapters are specified. Else generate a default config\n+\t * with one rx adapter and all eth queues - event queue mapped.\n+\t */\n+\tif (em_conf->nb_rx_adapter == 0) {\n+\t\tret = eh_set_default_conf_rx_adapter(em_conf);\n+\t\tif (ret != 0)\n+\t\t\treturn ret;\n+\t}\n+\n \treturn 0;\n }\n \n@@ -341,6 +475,104 @@ eh_initialize_eventdev(struct eventmode_conf *em_conf)\n \treturn 0;\n }\n \n+static int\n+eh_rx_adapter_configure(struct eventmode_conf *em_conf,\n+\t\tstruct rx_adapter_conf *adapter)\n+{\n+\tstruct rte_event_eth_rx_adapter_queue_conf queue_conf = {0};\n+\tstruct rte_event_dev_info evdev_default_conf = {0};\n+\tstruct rte_event_port_conf port_conf = {0};\n+\tstruct rx_adapter_connection_info *conn;\n+\tuint8_t eventdev_id;\n+\tuint32_t service_id;\n+\tint ret;\n+\tint j;\n+\n+\t/* Get event dev ID */\n+\teventdev_id = adapter->eventdev_id;\n+\n+\t/* Get default configuration of event dev */\n+\tret = rte_event_dev_info_get(eventdev_id, &evdev_default_conf);\n+\tif (ret < 0) {\n+\t\tEH_LOG_ERR(\"Failed to get event dev info %d\", ret);\n+\t\treturn ret;\n+\t}\n+\n+\t/* Setup port conf */\n+\tport_conf.new_event_threshold = 1200;\n+\tport_conf.dequeue_depth =\n+\t\t\tevdev_default_conf.max_event_port_dequeue_depth;\n+\tport_conf.enqueue_depth =\n+\t\t\tevdev_default_conf.max_event_port_enqueue_depth;\n+\n+\t/* Create Rx adapter */\n+\tret = rte_event_eth_rx_adapter_create(adapter->adapter_id,\n+\t\t\tadapter->eventdev_id, &port_conf);\n+\tif (ret < 0) {\n+\t\tEH_LOG_ERR(\"Failed to create rx adapter %d\", ret);\n+\t\treturn ret;\n+\t}\n+\n+\t/* Setup various connections in the adapter */\n+\tfor (j = 0; j < adapter->nb_connections; j++) {\n+\t\t/* Get connection */\n+\t\tconn = &(adapter->conn[j]);\n+\n+\t\t/* Setup queue conf */\n+\t\tqueue_conf.ev.queue_id = conn->eventq_id;\n+\t\tqueue_conf.ev.sched_type = em_conf->ext_params.sched_type;\n+\t\tqueue_conf.ev.event_type = RTE_EVENT_TYPE_ETHDEV;\n+\n+\t\t/* Add queue to the adapter */\n+\t\tret = rte_event_eth_rx_adapter_queue_add(adapter->adapter_id,\n+\t\t\t\tconn->ethdev_id, conn->ethdev_rx_qid,\n+\t\t\t\t&queue_conf);\n+\t\tif (ret < 0) {\n+\t\t\tEH_LOG_ERR(\"Failed to add eth queue to rx adapter %d\",\n+\t\t\t\t   ret);\n+\t\t\treturn ret;\n+\t\t}\n+\t}\n+\n+\t/* Get the service ID used by rx adapter */\n+\tret = rte_event_eth_rx_adapter_service_id_get(adapter->adapter_id,\n+\t\t\t\t\t\t      &service_id);\n+\tif (ret != -ESRCH && ret < 0) {\n+\t\tEH_LOG_ERR(\"Failed to get service id used by rx adapter %d\",\n+\t\t\t   ret);\n+\t\treturn ret;\n+\t}\n+\n+\trte_service_set_runstate_mapped_check(service_id, 0);\n+\n+\t/* Start adapter */\n+\tret = rte_event_eth_rx_adapter_start(adapter->adapter_id);\n+\tif (ret < 0) {\n+\t\tEH_LOG_ERR(\"Failed to start rx adapter %d\", ret);\n+\t\treturn ret;\n+\t}\n+\n+\treturn 0;\n+}\n+\n+static int\n+eh_initialize_rx_adapter(struct eventmode_conf *em_conf)\n+{\n+\tstruct rx_adapter_conf *adapter;\n+\tint i, ret;\n+\n+\t/* Configure rx adapters */\n+\tfor (i = 0; i < em_conf->nb_rx_adapter; i++) {\n+\t\tadapter = &(em_conf->rx_adapter[i]);\n+\t\tret = eh_rx_adapter_configure(em_conf, adapter);\n+\t\tif (ret < 0) {\n+\t\t\tEH_LOG_ERR(\"Failed to configure rx adapter %d\", ret);\n+\t\t\treturn ret;\n+\t\t}\n+\t}\n+\treturn 0;\n+}\n+\n int32_t\n eh_devs_init(struct eh_conf *conf)\n {\n@@ -364,6 +596,9 @@ eh_devs_init(struct eh_conf *conf)\n \t/* Get eventmode conf */\n \tem_conf = conf->mode_params;\n \n+\t/* Eventmode conf would need eth portmask */\n+\tem_conf->eth_portmask = conf->eth_portmask;\n+\n \t/* Validate the requested config */\n \tret = eh_validate_conf(em_conf);\n \tif (ret < 0) {\n@@ -388,6 +623,13 @@ eh_devs_init(struct eh_conf *conf)\n \t\treturn ret;\n \t}\n \n+\t/* Setup Rx adapter */\n+\tret = eh_initialize_rx_adapter(em_conf);\n+\tif (ret < 0) {\n+\t\tEH_LOG_ERR(\"Failed to initialize rx adapter %d\", ret);\n+\t\treturn ret;\n+\t}\n+\n \t/* Start eth devices after setting up adapter */\n \tRTE_ETH_FOREACH_DEV(port_id) {\n \n@@ -410,8 +652,8 @@ int32_t\n eh_devs_uninit(struct eh_conf *conf)\n {\n \tstruct eventmode_conf *em_conf;\n+\tint ret, i, j;\n \tuint16_t id;\n-\tint ret, i;\n \n \tif (conf == NULL) {\n \t\tEH_LOG_ERR(\"Invalid event helper configuration\");\n@@ -429,6 +671,35 @@ eh_devs_uninit(struct eh_conf *conf)\n \t/* Get eventmode conf */\n \tem_conf = conf->mode_params;\n \n+\t/* Stop and release rx adapters */\n+\tfor (i = 0; i < em_conf->nb_rx_adapter; i++) {\n+\n+\t\tid = em_conf->rx_adapter[i].adapter_id;\n+\t\tret = rte_event_eth_rx_adapter_stop(id);\n+\t\tif (ret < 0) {\n+\t\t\tEH_LOG_ERR(\"Failed to stop rx adapter %d\", ret);\n+\t\t\treturn ret;\n+\t\t}\n+\n+\t\tfor (j = 0; j < em_conf->rx_adapter[i].nb_connections; j++) {\n+\n+\t\t\tret = rte_event_eth_rx_adapter_queue_del(id,\n+\t\t\t\tem_conf->rx_adapter[i].conn[j].ethdev_id, -1);\n+\t\t\tif (ret < 0) {\n+\t\t\t\tEH_LOG_ERR(\n+\t\t\t\t       \"Failed to remove rx adapter queues %d\",\n+\t\t\t\t       ret);\n+\t\t\t\treturn ret;\n+\t\t\t}\n+\t\t}\n+\n+\t\tret = rte_event_eth_rx_adapter_free(id);\n+\t\tif (ret < 0) {\n+\t\t\tEH_LOG_ERR(\"Failed to free rx adapter %d\", ret);\n+\t\t\treturn ret;\n+\t\t}\n+\t}\n+\n \t/* Stop and release event devices */\n \tfor (i = 0; i < em_conf->nb_eventdev; i++) {\n \ndiff --git a/examples/ipsec-secgw/event_helper.h b/examples/ipsec-secgw/event_helper.h\nindex c8afc84..00ce14e 100644\n--- a/examples/ipsec-secgw/event_helper.h\n+++ b/examples/ipsec-secgw/event_helper.h\n@@ -16,6 +16,12 @@\n /* Max event devices supported */\n #define EVENT_MODE_MAX_EVENT_DEVS RTE_EVENT_MAX_DEVS\n \n+/* Max Rx adapters supported */\n+#define EVENT_MODE_MAX_RX_ADAPTERS RTE_EVENT_MAX_DEVS\n+\n+/* Max Rx adapter connections */\n+#define EVENT_MODE_MAX_CONNECTIONS_PER_ADAPTER 16\n+\n /* Max event queues supported per event device */\n #define EVENT_MODE_MAX_EVENT_QUEUES_PER_DEV RTE_EVENT_MAX_QUEUES_PER_DEV\n \n@@ -53,12 +59,33 @@ struct eh_event_link_info {\n \t\t/**< Lcore to be polling on this port */\n };\n \n+/* Rx adapter connection info */\n+struct rx_adapter_connection_info {\n+\tuint8_t ethdev_id;\n+\tuint8_t eventq_id;\n+\tint32_t ethdev_rx_qid;\n+};\n+\n+/* Rx adapter conf */\n+struct rx_adapter_conf {\n+\tint32_t eventdev_id;\n+\tint32_t adapter_id;\n+\tuint32_t rx_core_id;\n+\tuint8_t nb_connections;\n+\tstruct rx_adapter_connection_info\n+\t\t\tconn[EVENT_MODE_MAX_CONNECTIONS_PER_ADAPTER];\n+};\n+\n /* Eventmode conf data */\n struct eventmode_conf {\n \tint nb_eventdev;\n \t\t/**< No of event devs */\n \tstruct eventdev_params eventdev_config[EVENT_MODE_MAX_EVENT_DEVS];\n \t\t/**< Per event dev conf */\n+\tuint8_t nb_rx_adapter;\n+\t\t/**< No of Rx adapters */\n+\tstruct rx_adapter_conf rx_adapter[EVENT_MODE_MAX_RX_ADAPTERS];\n+\t\t/**< Rx adapter conf */\n \tuint8_t nb_link;\n \t\t/**< No of links */\n \tstruct eh_event_link_info\n@@ -66,6 +93,8 @@ struct eventmode_conf {\n \t\t/**< Per link conf */\n \tstruct rte_bitmap *eth_core_mask;\n \t\t/**< Core mask of cores to be used for software Rx and Tx */\n+\tuint32_t eth_portmask;\n+\t\t/**< Mask of the eth ports to be used */\n \tunion {\n \t\tRTE_STD_C11\n \t\tstruct {\n",
    "prefixes": [
        "v5",
        "04/15"
    ]
}