get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 64926,
    "url": "http://patches.dpdk.org/api/patches/64926/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1579527918-360-8-git-send-email-anoobj@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": "<1579527918-360-8-git-send-email-anoobj@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1579527918-360-8-git-send-email-anoobj@marvell.com",
    "date": "2020-01-20T13:45:13",
    "name": "[v2,07/12] examples/ipsec-secgw: add routines to launch workers",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "50b7da3fd21865767009c1ae9967280c66da9dfd",
    "submitter": {
        "id": 1205,
        "url": "http://patches.dpdk.org/api/people/1205/?format=api",
        "name": "Anoob Joseph",
        "email": "anoobj@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/1579527918-360-8-git-send-email-anoobj@marvell.com/mbox/",
    "series": [
        {
            "id": 8219,
            "url": "http://patches.dpdk.org/api/series/8219/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8219",
            "date": "2020-01-20T13:45:06",
            "name": "add eventmode to ipsec-secgw",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/8219/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/64926/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/64926/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 5C819A0528;\n\tMon, 20 Jan 2020 14:46:58 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id BC6BA3576;\n\tMon, 20 Jan 2020 14:46:23 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 3D3444C87\n for <dev@dpdk.org>; Mon, 20 Jan 2020 14:46:22 +0100 (CET)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id\n 00KDjiiB018825; Mon, 20 Jan 2020 05:46:21 -0800",
            "from sc-exch01.marvell.com ([199.233.58.181])\n by mx0a-0016f401.pphosted.com with ESMTP id 2xm08v6jjv-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Mon, 20 Jan 2020 05:46:21 -0800",
            "from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH01.marvell.com\n (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 20 Jan\n 2020 05:46:19 -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; Mon, 20 Jan 2020 05:46:19 -0800",
            "from ajoseph83.caveonetworks.com (unknown [10.29.45.60])\n by maili.marvell.com (Postfix) with ESMTP id EF6703F704A;\n Mon, 20 Jan 2020 05:46:15 -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-transfer-encoding : content-type; s=pfpt0818;\n bh=G+LIszgcfpsL8/8qJhogcYBFpnm9hn5Xv/ApDYAWeo0=;\n b=DLgVe99e7B+PWpkQrArRlehnsQ6ah3Xf7+ktLdGVi1X+GGt+C0kFit1naYLFFLG5GUZe\n terIwYZ/Wb6HpKBCvzK0DlTYrtZX8j29jpLKcZyVVJQhfjWbK/ibr9xzhmiQXi8PFwyd\n UlgyqOoHP7zX4MBGAUF383BbfIZxh0tkft5kL2aFxGItAU9ITEQ8iJq7Hjiq95fAJkVK\n OECscqjKvWVSjKt9DG1OY8UkUjjw49BlDDNURn2iczTW1pYeSMeZ5VEh4v/VLJHx8w/F\n Z7/EhUtRxRjYM8UDZjSnUtGEYoZwvmeBYAtcyxyDQJ8Xfgxb3fT7AARU6+Yx+YK4o8p0 lA==",
        "From": "Anoob Joseph <anoobj@marvell.com>",
        "To": "Akhil Goyal <akhil.goyal@nxp.com>, Radu Nicolau <radu.nicolau@intel.com>,\n Thomas Monjalon <thomas@monjalon.net>",
        "CC": "Lukasz Bartosik <lbartosik@marvell.com>, Jerin Jacob <jerinj@marvell.com>,\n Narayana Prasad <pathreya@marvell.com>,\n Ankur Dwivedi <adwivedi@marvell.com>, Anoob Joseph <anoobj@marvell.com>,\n Archana Muniganti <marchana@marvell.com>,\n Tejasree Kondoj <ktejasree@marvell.com>, Vamsi Attunuru\n <vattunuru@marvell.com>,\n Konstantin Ananyev <konstantin.ananyev@intel.com>, <dev@dpdk.org>",
        "Date": "Mon, 20 Jan 2020 19:15:13 +0530",
        "Message-ID": "<1579527918-360-8-git-send-email-anoobj@marvell.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1579527918-360-1-git-send-email-anoobj@marvell.com>",
        "References": "<1575808249-31135-1-git-send-email-anoobj@marvell.com>\n <1579527918-360-1-git-send-email-anoobj@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572\n definitions=2020-01-20_02:2020-01-20,\n 2020-01-20 signatures=0",
        "Subject": "[dpdk-dev] [PATCH v2 07/12] 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": "From: Lukasz Bartosik <lbartosik@marvell.com>\n\nIn 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 883cb19..95dc4e6 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@@ -695,6 +707,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@@ -1208,6 +1471,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 = (struct eventmode_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 d7191a6..31a158e 100644\n--- a/examples/ipsec-secgw/event_helper.h\n+++ b/examples/ipsec-secgw/event_helper.h\n@@ -44,6 +44,9 @@ extern \"C\" {\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@@ -55,6 +58,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@@ -165,6 +176,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@@ -232,6 +259,27 @@ 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 #ifdef __cplusplus\n }\n #endif\n",
    "prefixes": [
        "v2",
        "07/12"
    ]
}