get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 66104,
    "url": "http://patches.dpdk.org/api/patches/66104/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1582820317-7333-8-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-8-git-send-email-lbartosik@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1582820317-7333-8-git-send-email-lbartosik@marvell.com",
    "date": "2020-02-27T16:18:29",
    "name": "[v5,07/15] examples/ipsec-secgw: add routines to launch workers",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "ae3957f58fcbc49870016905b10f9e415daf517b",
    "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-8-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/66104/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/66104/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 0FFF5A055F;\n\tThu, 27 Feb 2020 17:20:11 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 3F8621BFCF;\n\tThu, 27 Feb 2020 17:19:13 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id DFEFE1C002\n for <dev@dpdk.org>; Thu, 27 Feb 2020 17:19:06 +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 01RFshE4002507; Thu, 27 Feb 2020 08:19:06 -0800",
            "from sc-exch01.marvell.com ([199.233.58.181])\n by mx0b-0016f401.pphosted.com with ESMTP id 2ydchth8fu-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Thu, 27 Feb 2020 08:19:06 -0800",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH01.marvell.com\n (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Thu, 27 Feb 2020 08:19:04 -0800",
            "from SC-EXCH01.marvell.com (10.93.176.81) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Thu, 27 Feb 2020 08:19:03 -0800",
            "from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com\n (10.93.176.81) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Thu, 27 Feb 2020 08:19:03 -0800",
            "from luke.marvell.com (unknown [10.95.130.81])\n by maili.marvell.com (Postfix) with ESMTP id 7E6D53F7041;\n Thu, 27 Feb 2020 08:19:00 -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=z6tdI1MTpn4hmGH3EyjMGpL0d+Vr3X8oTITcicAxais=;\n b=BrvXzis8la08u1TG97UZipFi01uFQKekJf53MqC9G0WGQie7NdMm55JtwGLSINwyXupP\n rp1QZR/cdrFlBtepuc2mqdEWvVSNVnqr1/hDbQTC1CEKpH3Ww50Woz/Fsjc3hOkLTCwp\n L9adeMzATz2Y6acAo3J9rYKbBPENQH+1F7p6oztYUisOyxoH4Z/LUXr+etsUgYaA4DIF\n xDIBTrYp0sVBzszVIMOekK0r5b02p2blfp7jRD85lcH+F5UdqdMIqyQHV8KsaWOWiZhn\n ow6kXXOXuZegFCuX2GRGOYICagVOzZw4BMtX8822NePMBPJLO7ppAsD/Rq2IfHCFcjG6 Ug==",
        "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": "Jerin Jacob <jerinj@marvell.com>, Narayana Prasad <pathreya@marvell.com>,\n Ankur Dwivedi <adwivedi@marvell.com>, Anoob Joseph <anoobj@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:29 +0100",
        "Message-ID": "<1582820317-7333-8-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 07/15] examples/ipsec-secgw: add routines to\n\tlaunch workers",
        "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": "In eventmode workers can be drafted differently according to the\ncapabilities of the underlying event device. The added functions will\nreceive an array of such workers and probe the eventmode properties to\nchoose the worker.\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 | 336 ++++++++++++++++++++++++++++++++++++\n examples/ipsec-secgw/event_helper.h |  48 ++++++\n 2 files changed, 384 insertions(+)",
    "diff": "diff --git a/examples/ipsec-secgw/event_helper.c b/examples/ipsec-secgw/event_helper.c\nindex d09bf7d..e3dfaf5 100644\n--- a/examples/ipsec-secgw/event_helper.c\n+++ b/examples/ipsec-secgw/event_helper.c\n@@ -11,6 +11,8 @@\n \n #include \"event_helper.h\"\n \n+static volatile bool eth_core_running;\n+\n static int\n eh_get_enabled_cores(struct rte_bitmap *eth_core_mask)\n {\n@@ -93,6 +95,16 @@ eh_get_eventdev_params(struct eventmode_conf *em_conf, uint8_t eventdev_id)\n \n \treturn &(em_conf->eventdev_config[i]);\n }\n+static inline bool\n+eh_dev_has_burst_mode(uint8_t dev_id)\n+{\n+\tstruct rte_event_dev_info dev_info;\n+\n+\trte_event_dev_info_get(dev_id, &dev_info);\n+\treturn (dev_info.event_dev_cap & RTE_EVENT_DEV_CAP_BURST_MODE) ?\n+\t\t\ttrue : false;\n+}\n+\n static int\n eh_set_default_conf_eventdev(struct eventmode_conf *em_conf)\n {\n@@ -689,6 +701,257 @@ eh_initialize_rx_adapter(struct eventmode_conf *em_conf)\n \treturn 0;\n }\n \n+static int32_t\n+eh_start_worker_eth_core(struct eventmode_conf *conf, uint32_t lcore_id)\n+{\n+\tuint32_t service_id[EVENT_MODE_MAX_ADAPTERS_PER_RX_CORE];\n+\tstruct rx_adapter_conf *rx_adapter;\n+\tstruct tx_adapter_conf *tx_adapter;\n+\tint service_count = 0;\n+\tint adapter_id;\n+\tint32_t ret;\n+\tint i;\n+\n+\tEH_LOG_INFO(\"Entering eth_core processing on lcore %u\", lcore_id);\n+\n+\t/*\n+\t * Parse adapter config to check which of all Rx adapters need\n+\t * to be handled by this core.\n+\t */\n+\tfor (i = 0; i < conf->nb_rx_adapter; i++) {\n+\t\t/* Check if we have exceeded the max allowed */\n+\t\tif (service_count > EVENT_MODE_MAX_ADAPTERS_PER_RX_CORE) {\n+\t\t\tEH_LOG_ERR(\n+\t\t\t      \"Exceeded the max allowed adapters per rx core\");\n+\t\t\tbreak;\n+\t\t}\n+\n+\t\trx_adapter = &(conf->rx_adapter[i]);\n+\t\tif (rx_adapter->rx_core_id != lcore_id)\n+\t\t\tcontinue;\n+\n+\t\t/* Adapter is handled by this core */\n+\t\tadapter_id = rx_adapter->adapter_id;\n+\n+\t\t/* Get the service ID for the adapters */\n+\t\tret = rte_event_eth_rx_adapter_service_id_get(adapter_id,\n+\t\t\t\t&(service_id[service_count]));\n+\n+\t\tif (ret != -ESRCH && ret < 0) {\n+\t\t\tEH_LOG_ERR(\n+\t\t\t\t\"Failed to get service id used by rx adapter\");\n+\t\t\treturn ret;\n+\t\t}\n+\n+\t\t/* Update service count */\n+\t\tservice_count++;\n+\t}\n+\n+\t/*\n+\t * Parse adapter config to see which of all Tx adapters need\n+\t * to be handled by this core.\n+\t */\n+\tfor (i = 0; i < conf->nb_tx_adapter; i++) {\n+\t\t/* Check if we have exceeded the max allowed */\n+\t\tif (service_count > EVENT_MODE_MAX_ADAPTERS_PER_TX_CORE) {\n+\t\t\tEH_LOG_ERR(\n+\t\t\t\t\"Exceeded the max allowed adapters per tx core\");\n+\t\t\tbreak;\n+\t\t}\n+\n+\t\ttx_adapter = &conf->tx_adapter[i];\n+\t\tif (tx_adapter->tx_core_id != lcore_id)\n+\t\t\tcontinue;\n+\n+\t\t/* Adapter is handled by this core */\n+\t\tadapter_id = tx_adapter->adapter_id;\n+\n+\t\t/* Get the service ID for the adapters */\n+\t\tret = rte_event_eth_tx_adapter_service_id_get(adapter_id,\n+\t\t\t\t&(service_id[service_count]));\n+\n+\t\tif (ret != -ESRCH && ret < 0) {\n+\t\t\tEH_LOG_ERR(\n+\t\t\t\t\"Failed to get service id used by tx adapter\");\n+\t\t\treturn ret;\n+\t\t}\n+\n+\t\t/* Update service count */\n+\t\tservice_count++;\n+\t}\n+\n+\teth_core_running = true;\n+\n+\twhile (eth_core_running) {\n+\t\tfor (i = 0; i < service_count; i++) {\n+\t\t\t/* Initiate adapter service */\n+\t\t\trte_service_run_iter_on_app_lcore(service_id[i], 0);\n+\t\t}\n+\t}\n+\n+\treturn 0;\n+}\n+\n+static int32_t\n+eh_stop_worker_eth_core(void)\n+{\n+\tif (eth_core_running) {\n+\t\tEH_LOG_INFO(\"Stopping eth cores\");\n+\t\teth_core_running = false;\n+\t}\n+\treturn 0;\n+}\n+\n+static struct eh_app_worker_params *\n+eh_find_worker(uint32_t lcore_id, struct eh_conf *conf,\n+\t\tstruct eh_app_worker_params *app_wrkrs, uint8_t nb_wrkr_param)\n+{\n+\tstruct eh_app_worker_params curr_conf = { {{0} }, NULL};\n+\tstruct eh_event_link_info *link = NULL;\n+\tstruct eh_app_worker_params *tmp_wrkr;\n+\tstruct eventmode_conf *em_conf;\n+\tuint8_t eventdev_id;\n+\tint i;\n+\n+\t/* Get eventmode config */\n+\tem_conf = conf->mode_params;\n+\n+\t/*\n+\t * Use event device from the first lcore-event link.\n+\t *\n+\t * Assumption: All lcore-event links tied to a core are using the\n+\t * same event device. In other words, one core would be polling on\n+\t * queues of a single event device only.\n+\t */\n+\n+\t/* Get a link for this lcore */\n+\tfor (i = 0; i < em_conf->nb_link; i++) {\n+\t\tlink = &(em_conf->link[i]);\n+\t\tif (link->lcore_id == lcore_id)\n+\t\t\tbreak;\n+\t}\n+\n+\tif (link == NULL) {\n+\t\tEH_LOG_ERR(\"No valid link found for lcore %d\", lcore_id);\n+\t\treturn NULL;\n+\t}\n+\n+\t/* Get event dev ID */\n+\teventdev_id = link->eventdev_id;\n+\n+\t/* Populate the curr_conf with the capabilities */\n+\n+\t/* Check for burst mode */\n+\tif (eh_dev_has_burst_mode(eventdev_id))\n+\t\tcurr_conf.cap.burst = EH_RX_TYPE_BURST;\n+\telse\n+\t\tcurr_conf.cap.burst = EH_RX_TYPE_NON_BURST;\n+\n+\t/* Parse the passed list and see if we have matching capabilities */\n+\n+\t/* Initialize the pointer used to traverse the list */\n+\ttmp_wrkr = app_wrkrs;\n+\n+\tfor (i = 0; i < nb_wrkr_param; i++, tmp_wrkr++) {\n+\n+\t\t/* Skip this if capabilities are not matching */\n+\t\tif (tmp_wrkr->cap.u64 != curr_conf.cap.u64)\n+\t\t\tcontinue;\n+\n+\t\t/* If the checks pass, we have a match */\n+\t\treturn tmp_wrkr;\n+\t}\n+\n+\treturn NULL;\n+}\n+\n+static int\n+eh_verify_match_worker(struct eh_app_worker_params *match_wrkr)\n+{\n+\t/* Verify registered worker */\n+\tif (match_wrkr->worker_thread == NULL) {\n+\t\tEH_LOG_ERR(\"No worker registered\");\n+\t\treturn 0;\n+\t}\n+\n+\t/* Success */\n+\treturn 1;\n+}\n+\n+static uint8_t\n+eh_get_event_lcore_links(uint32_t lcore_id, struct eh_conf *conf,\n+\t\tstruct eh_event_link_info **links)\n+{\n+\tstruct eh_event_link_info *link_cache;\n+\tstruct eventmode_conf *em_conf = NULL;\n+\tstruct eh_event_link_info *link;\n+\tuint8_t lcore_nb_link = 0;\n+\tsize_t single_link_size;\n+\tsize_t cache_size;\n+\tint index = 0;\n+\tint i;\n+\n+\tif (conf == NULL || links == NULL) {\n+\t\tEH_LOG_ERR(\"Invalid args\");\n+\t\treturn -EINVAL;\n+\t}\n+\n+\t/* Get eventmode conf */\n+\tem_conf = conf->mode_params;\n+\n+\tif (em_conf == NULL) {\n+\t\tEH_LOG_ERR(\"Invalid event mode parameters\");\n+\t\treturn -EINVAL;\n+\t}\n+\n+\t/* Get the number of links registered */\n+\tfor (i = 0; i < em_conf->nb_link; i++) {\n+\n+\t\t/* Get link */\n+\t\tlink = &(em_conf->link[i]);\n+\n+\t\t/* Check if we have link intended for this lcore */\n+\t\tif (link->lcore_id == lcore_id) {\n+\n+\t\t\t/* Update the number of links for this core */\n+\t\t\tlcore_nb_link++;\n+\n+\t\t}\n+\t}\n+\n+\t/* Compute size of one entry to be copied */\n+\tsingle_link_size = sizeof(struct eh_event_link_info);\n+\n+\t/* Compute size of the buffer required */\n+\tcache_size = lcore_nb_link * sizeof(struct eh_event_link_info);\n+\n+\t/* Compute size of the buffer required */\n+\tlink_cache = calloc(1, cache_size);\n+\n+\t/* Get the number of links registered */\n+\tfor (i = 0; i < em_conf->nb_link; i++) {\n+\n+\t\t/* Get link */\n+\t\tlink = &(em_conf->link[i]);\n+\n+\t\t/* Check if we have link intended for this lcore */\n+\t\tif (link->lcore_id == lcore_id) {\n+\n+\t\t\t/* Cache the link */\n+\t\t\tmemcpy(&link_cache[index], link, single_link_size);\n+\n+\t\t\t/* Update index */\n+\t\t\tindex++;\n+\t\t}\n+\t}\n+\n+\t/* Update the links for application to use the cached links */\n+\t*links = link_cache;\n+\n+\t/* Return the number of cached links */\n+\treturn lcore_nb_link;\n+}\n+\n static int\n eh_tx_adapter_configure(struct eventmode_conf *em_conf,\n \t\tstruct tx_adapter_conf *adapter)\n@@ -1202,6 +1465,79 @@ eh_devs_uninit(struct eh_conf *conf)\n \treturn 0;\n }\n \n+void\n+eh_launch_worker(struct eh_conf *conf, struct eh_app_worker_params *app_wrkr,\n+\t\tuint8_t nb_wrkr_param)\n+{\n+\tstruct eh_app_worker_params *match_wrkr;\n+\tstruct eh_event_link_info *links = NULL;\n+\tstruct eventmode_conf *em_conf;\n+\tuint32_t lcore_id;\n+\tuint8_t nb_links;\n+\n+\tif (conf == NULL) {\n+\t\tEH_LOG_ERR(\"Invalid event helper configuration\");\n+\t\treturn;\n+\t}\n+\n+\tif (conf->mode_params == NULL) {\n+\t\tEH_LOG_ERR(\"Invalid event mode parameters\");\n+\t\treturn;\n+\t}\n+\n+\t/* Get eventmode conf */\n+\tem_conf = conf->mode_params;\n+\n+\t/* Get core ID */\n+\tlcore_id = rte_lcore_id();\n+\n+\t/* Check if this is eth core */\n+\tif (rte_bitmap_get(em_conf->eth_core_mask, lcore_id)) {\n+\t\teh_start_worker_eth_core(em_conf, lcore_id);\n+\t\treturn;\n+\t}\n+\n+\tif (app_wrkr == NULL || nb_wrkr_param == 0) {\n+\t\tEH_LOG_ERR(\"Invalid args\");\n+\t\treturn;\n+\t}\n+\n+\t/*\n+\t * This is a regular worker thread. The application registers\n+\t * multiple workers with various capabilities. Run worker\n+\t * based on the selected capabilities of the event\n+\t * device configured.\n+\t */\n+\n+\t/* Get the first matching worker for the event device */\n+\tmatch_wrkr = eh_find_worker(lcore_id, conf, app_wrkr, nb_wrkr_param);\n+\tif (match_wrkr == NULL) {\n+\t\tEH_LOG_ERR(\"Failed to match worker registered for lcore %d\",\n+\t\t\t   lcore_id);\n+\t\tgoto clean_and_exit;\n+\t}\n+\n+\t/* Verify sanity of the matched worker */\n+\tif (eh_verify_match_worker(match_wrkr) != 1) {\n+\t\tEH_LOG_ERR(\"Failed to validate the matched worker\");\n+\t\tgoto clean_and_exit;\n+\t}\n+\n+\t/* Get worker links */\n+\tnb_links = eh_get_event_lcore_links(lcore_id, conf, &links);\n+\n+\t/* Launch the worker thread */\n+\tmatch_wrkr->worker_thread(links, nb_links);\n+\n+\t/* Free links info memory */\n+\tfree(links);\n+\n+clean_and_exit:\n+\n+\t/* Flag eth_cores to stop, if started */\n+\teh_stop_worker_eth_core();\n+}\n+\n uint8_t\n eh_get_tx_queue(struct eh_conf *conf, uint8_t eventdev_id)\n {\ndiff --git a/examples/ipsec-secgw/event_helper.h b/examples/ipsec-secgw/event_helper.h\nindex 8eb5e25..9a4dfab 100644\n--- a/examples/ipsec-secgw/event_helper.h\n+++ b/examples/ipsec-secgw/event_helper.h\n@@ -40,6 +40,9 @@\n #define EVENT_MODE_MAX_LCORE_LINKS \\\n \t(EVENT_MODE_MAX_EVENT_DEVS * EVENT_MODE_MAX_EVENT_QUEUES_PER_DEV)\n \n+/* Max adapters that one Rx core can handle */\n+#define EVENT_MODE_MAX_ADAPTERS_PER_RX_CORE EVENT_MODE_MAX_RX_ADAPTERS\n+\n /* Max adapters that one Tx core can handle */\n #define EVENT_MODE_MAX_ADAPTERS_PER_TX_CORE EVENT_MODE_MAX_TX_ADAPTERS\n \n@@ -51,6 +54,14 @@ enum eh_pkt_transfer_mode {\n \tEH_PKT_TRANSFER_MODE_EVENT,\n };\n \n+/**\n+ * Event mode packet rx types\n+ */\n+enum eh_rx_types {\n+\tEH_RX_TYPE_NON_BURST = 0,\n+\tEH_RX_TYPE_BURST\n+};\n+\n /* Event dev params */\n struct eventdev_params {\n \tuint8_t eventdev_id;\n@@ -161,6 +172,22 @@ struct eh_conf {\n \t\t/**< Mode specific parameters */\n };\n \n+/* Workers registered by the application */\n+struct eh_app_worker_params {\n+\tunion {\n+\t\tRTE_STD_C11\n+\t\tstruct {\n+\t\t\tuint64_t burst : 1;\n+\t\t\t/**< Specify status of rx type burst */\n+\t\t};\n+\t\tuint64_t u64;\n+\t} cap;\n+\t\t\t/**< Capabilities of this worker */\n+\tvoid (*worker_thread)(struct eh_event_link_info *links,\n+\t\t\tuint8_t nb_links);\n+\t\t\t/**< Worker thread */\n+};\n+\n /**\n  * Initialize event mode devices\n  *\n@@ -228,4 +255,25 @@ eh_get_tx_queue(struct eh_conf *conf, uint8_t eventdev_id);\n void\n eh_display_conf(struct eh_conf *conf);\n \n+\n+/**\n+ * Launch eventmode worker\n+ *\n+ * The application can request the eventmode helper subsystem to launch the\n+ * worker based on the capabilities of event device and the options selected\n+ * while initializing the eventmode.\n+ *\n+ * @param conf\n+ *   Event helper configuration\n+ * @param app_wrkr\n+ *   List of all the workers registered by application, along with its\n+ *   capabilities\n+ * @param nb_wrkr_param\n+ *   Number of workers passed by the application\n+ *\n+ */\n+void\n+eh_launch_worker(struct eh_conf *conf, struct eh_app_worker_params *app_wrkr,\n+\t\tuint8_t nb_wrkr_param);\n+\n #endif /* _EVENT_HELPER_H_ */\n",
    "prefixes": [
        "v5",
        "07/15"
    ]
}