Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/100554/?format=api
https://patches.dpdk.org/api/patches/100554/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20211006040256.1443140-3-s.v.naga.harish.k@intel.com/", "project": { "id": 1, "url": "https://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": "<20211006040256.1443140-3-s.v.naga.harish.k@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20211006040256.1443140-3-s.v.naga.harish.k@intel.com", "date": "2021-10-06T04:02:54", "name": "[v7,3/5] eventdev/rx_adapter: introduce per queue event buffer", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "4db4f73d83962a49638b0f02e4d0fe29784ffe7f", "submitter": { "id": 2280, "url": "https://patches.dpdk.org/api/people/2280/?format=api", "name": "Naga Harish K, S V", "email": "s.v.naga.harish.k@intel.com" }, "delegate": { "id": 310, "url": "https://patches.dpdk.org/api/users/310/?format=api", "username": "jerin", "first_name": "Jerin", "last_name": "Jacob", "email": "jerinj@marvell.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20211006040256.1443140-3-s.v.naga.harish.k@intel.com/mbox/", "series": [ { "id": 19402, "url": "https://patches.dpdk.org/api/series/19402/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=19402", "date": "2021-10-06T04:02:52", "name": "[v7,1/5] eventdev/rx_adapter: add event buffer size configurability", "version": 7, "mbox": "https://patches.dpdk.org/series/19402/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/100554/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/100554/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id D0327A0C45;\n\tWed, 6 Oct 2021 06:03:19 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5E3D2413A1;\n\tWed, 6 Oct 2021 06:03:10 +0200 (CEST)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by mails.dpdk.org (Postfix) with ESMTP id DDEE341398\n for <dev@dpdk.org>; Wed, 6 Oct 2021 06:03:08 +0200 (CEST)", "from orsmga008.jf.intel.com ([10.7.209.65])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 05 Oct 2021 21:03:08 -0700", "from txandevlnx322.an.intel.com ([10.123.117.44])\n by orsmga008.jf.intel.com with ESMTP; 05 Oct 2021 21:03:07 -0700" ], "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,10128\"; a=\"225858138\"", "E=Sophos;i=\"5.85,350,1624345200\"; d=\"scan'208\";a=\"225858138\"", "E=Sophos;i=\"5.85,350,1624345200\"; d=\"scan'208\";a=\"488331486\"" ], "X-ExtLoop1": "1", "From": "Naga Harish K S V <s.v.naga.harish.k@intel.com>", "To": "jerinj@marvell.com,\n\tjay.jayatheerthan@intel.com", "Cc": "dev@dpdk.org", "Date": "Tue, 5 Oct 2021 23:02:54 -0500", "Message-Id": "<20211006040256.1443140-3-s.v.naga.harish.k@intel.com>", "X-Mailer": "git-send-email 2.23.0", "In-Reply-To": "<20211006040256.1443140-1-s.v.naga.harish.k@intel.com>", "References": "<20211005143846.1058491-1-s.v.naga.harish.k@intel.com>\n <20211006040256.1443140-1-s.v.naga.harish.k@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v7 3/5] eventdev/rx_adapter: introduce per queue\n event buffer", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "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": "To configure per queue event buffer size, application sets\n``rte_event_eth_rx_adapter_params::use_queue_event_buf`` flag\nas true and is passed to ``rte_event_eth_rx_adapter_create_with_params``\napi.\n\nThe per queue event buffer size is populated in\n``rte_event_eth_rx_adapter_queue_conf::event_buf_size`` and passed\nto ``rte_event_eth_rx_adapter_queue_add`` api.\n\nSigned-off-by: Naga Harish K S V <s.v.naga.harish.k@intel.com>\n---\n .../prog_guide/event_ethernet_rx_adapter.rst | 19 ++++++++++++-------\n lib/eventdev/rte_event_eth_rx_adapter.h | 4 ++++\n 2 files changed, 16 insertions(+), 7 deletions(-)", "diff": "diff --git a/doc/guides/prog_guide/event_ethernet_rx_adapter.rst b/doc/guides/prog_guide/event_ethernet_rx_adapter.rst\nindex 8526aecf57..8b58130fc5 100644\n--- a/doc/guides/prog_guide/event_ethernet_rx_adapter.rst\n+++ b/doc/guides/prog_guide/event_ethernet_rx_adapter.rst\n@@ -62,12 +62,14 @@ service function and needs to create an event port for it. The callback is\n expected to fill the ``struct rte_event_eth_rx_adapter_conf structure``\n passed to it.\n \n-If the application desires to control the event buffer size, it can use the\n-``rte_event_eth_rx_adapter_create_with_params()`` api. The event buffer size is\n-specified using ``struct rte_event_eth_rx_adapter_params::event_buf_size``.\n-The function is passed the event device to be associated with the adapter\n-and port configuration for the adapter to setup an event port if the\n-adapter needs to use a service function.\n+If the application desires to control the event buffer size at adapter level,\n+it can use the ``rte_event_eth_rx_adapter_create_with_params()`` api. The event\n+buffer size is specified using ``struct rte_event_eth_rx_adapter_params::\n+event_buf_size``. To configure the event buffer size at queue level, the boolean\n+flag ``struct rte_event_eth_rx_adapter_params::use_queue_event_buf`` need to be\n+set to true. The function is passed the event device to be associated with\n+the adapter and port configuration for the adapter to setup an event port\n+if the adapter needs to use a service function.\n \n Adding Rx Queues to the Adapter Instance\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n@@ -79,7 +81,9 @@ parameter. Event information for packets from this Rx queue is encoded in the\n ``ev`` field of ``struct rte_event_eth_rx_adapter_queue_conf``. The\n servicing_weight member of the struct rte_event_eth_rx_adapter_queue_conf\n is the relative polling frequency of the Rx queue and is applicable when the\n-adapter uses a service core function.\n+adapter uses a service core function. The applications can configure queue\n+event buffer size in ``struct rte_event_eth_rx_adapter_queue_conf::event_buf_size``\n+parameter.\n \n .. code-block:: c\n \n@@ -90,6 +94,7 @@ adapter uses a service core function.\n queue_config.rx_queue_flags = 0;\n queue_config.ev = ev;\n queue_config.servicing_weight = 1;\n+ queue_config.event_buf_size = 1024;\n \n err = rte_event_eth_rx_adapter_queue_add(id,\n eth_dev_id,\ndiff --git a/lib/eventdev/rte_event_eth_rx_adapter.h b/lib/eventdev/rte_event_eth_rx_adapter.h\nindex 846ca569e9..70ca427d66 100644\n--- a/lib/eventdev/rte_event_eth_rx_adapter.h\n+++ b/lib/eventdev/rte_event_eth_rx_adapter.h\n@@ -200,6 +200,8 @@ struct rte_event_eth_rx_adapter_queue_conf {\n \t * Valid when RTE_EVENT_ETH_RX_ADAPTER_QUEUE_EVENT_VECTOR flag is set in\n \t * @see rte_event_eth_rx_adapter_queue_conf::rx_queue_flags.\n \t */\n+\tuint16_t event_buf_size;\n+\t/**< event buffer size for this queue */\n };\n \n /**\n@@ -267,6 +269,8 @@ struct rte_event_eth_rx_adapter_params {\n \t * This value is rounded up for better buffer utilization\n \t * and performance.\n \t */\n+\tbool use_queue_event_buf;\n+\t/**< flag to indicate that event buffer is separate for each queue */\n };\n \n /**\n", "prefixes": [ "v7", "3/5" ] }{ "id": 100554, "url": "