Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/120868/?format=api
https://patches.dpdk.org/api/patches/120868/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20221214070440.921488-2-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": "<20221214070440.921488-2-s.v.naga.harish.k@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20221214070440.921488-2-s.v.naga.harish.k@intel.com", "date": "2022-12-14T07:04:38", "name": "[v2,2/4] eventdev/eth_tx: change eventdev reconfig logic", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "9c5f74d1f77789b3b1560c883bc3907c4dff4e7d", "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/20221214070440.921488-2-s.v.naga.harish.k@intel.com/mbox/", "series": [ { "id": 26119, "url": "https://patches.dpdk.org/api/series/26119/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=26119", "date": "2022-12-14T07:04:37", "name": "[v2,1/4] eventdev/eth_rx: change eventdev reconfig logic", "version": 2, "mbox": "https://patches.dpdk.org/series/26119/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/120868/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/120868/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 00A5CA0543;\n\tWed, 14 Dec 2022 08:04:51 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3ADFE40A89;\n\tWed, 14 Dec 2022 08:04:51 +0100 (CET)", "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n by mails.dpdk.org (Postfix) with ESMTP id 38D6340685\n for <dev@dpdk.org>; Wed, 14 Dec 2022 08:04:49 +0100 (CET)", "from orsmga005.jf.intel.com ([10.7.209.41])\n by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Dec 2022 23:04:49 -0800", "from txandevlnx322.an.intel.com ([10.123.117.44])\n by orsmga005.jf.intel.com with ESMTP; 13 Dec 2022 23:04:48 -0800" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1671001489; x=1702537489;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=WEL3/LXR0P8AtBeaozLBvCJ5zvEotNp8mRTfD83Tgks=;\n b=kSNXWponGlQsHPFaRMb7AZPyxegIxjkoHc67vkSJnVRpvrVhJ2xERwvG\n TcAN4iLojYiGtELLhhqutPgDt+p6zvQxDRKWTQxsQNGA9Xd2q0LUM/BCm\n MTLswF08v6XzblBmH4J8jWLfZxSPpEn2XTDy62CHjZjIaCNW2p9scciZH\n TqhWmF88HAW4Z+h4y20Wg87YSQ+85ClRV5cDdHwxz6TiawuYW8VECoXCy\n r56ArIrUlYE9BL/FH+8/f+D3yFZHM+dIBqZFDYmMQ2Rq4zOHyq46s8uVD\n W+nrMrp6+uZRqTVbUXa+MJ2ffaV6j6WIYYb8a1KFZwSSFHN7KbrII1Lbg g==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10560\"; a=\"301751924\"", "E=Sophos;i=\"5.96,243,1665471600\"; d=\"scan'208\";a=\"301751924\"", "E=McAfee;i=\"6500,9779,10560\"; a=\"823157564\"", "E=Sophos;i=\"5.96,243,1665471600\"; d=\"scan'208\";a=\"823157564\"" ], "X-ExtLoop1": "1", "From": "Naga Harish K S V <s.v.naga.harish.k@intel.com>", "To": "jerinj@marvell.com, erik.g.carrillo@intel.com, abhinandan.gujjar@intel.com", "Cc": "dev@dpdk.org,\n\tjay.jayatheerthan@intel.com", "Subject": "[PATCH v2 2/4] eventdev/eth_tx: change eventdev reconfig logic", "Date": "Wed, 14 Dec 2022 01:04:38 -0600", "Message-Id": "<20221214070440.921488-2-s.v.naga.harish.k@intel.com>", "X-Mailer": "git-send-email 2.23.0", "In-Reply-To": "<20221214070440.921488-1-s.v.naga.harish.k@intel.com>", "References": "<20221214055551.913821-4-s.v.naga.harish.k@intel.com>\n <20221214070440.921488-1-s.v.naga.harish.k@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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" }, "content": "When rte_event_eth_tx_adapter_create() is used for creating adapter\ninstance, eventdev is reconfigured with additional\n``rte_event_dev_config::nb_event_ports`` parameter.\n\nThis eventdev reconfig logic is enhanced to increment the\n``rte_event_dev_config::nb_single_link_event_port_queues``\nparameter if the adapter event port config is of type\n``RTE_EVENT_PORT_CFG_SINGLE_LINK``.\n\nWith this change the application is no longer need to configure the\neventdev with ``rte_event_dev_config::nb_single_link_event_port_queues``\nparameter required for eth_tx adapter when the adapter is created\nusing above mentioned api.\n\nSigned-off-by: Naga Harish K S V <s.v.naga.harish.k@intel.com>\n---\nv2:\n* fix build error in doc/prog_guide\n---\n---\n .../prog_guide/event_ethernet_tx_adapter.rst | 17 +++++++++++++++++\n lib/eventdev/rte_event_eth_tx_adapter.c | 2 ++\n 2 files changed, 19 insertions(+)", "diff": "diff --git a/doc/guides/prog_guide/event_ethernet_tx_adapter.rst b/doc/guides/prog_guide/event_ethernet_tx_adapter.rst\nindex 905cb445e0..8e6cc87b04 100644\n--- a/doc/guides/prog_guide/event_ethernet_tx_adapter.rst\n+++ b/doc/guides/prog_guide/event_ethernet_tx_adapter.rst\n@@ -56,6 +56,23 @@ and needs to create an event port for it. The callback is expected to fill the\n \n err = rte_event_eth_tx_adapter_create(id, dev_id, &tx_p_conf);\n \n+Event device configuration for service based adapter\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+When rte_event_eth_tx_adapter_create() is used for creating\n+adapter instance, eventdev is reconfigured with additional\n+``rte_event_dev_config::nb_event_ports`` parameter.\n+This eventdev reconfig logic also increment the\n+``rte_event_dev_config::nb_single_link_event_port_queues``\n+parameter if the adapter event port config is of type\n+``RTE_EVENT_PORT_CFG_SINGLE_LINK``.\n+\n+So the application is no longer need to configure the\n+event device with ``rte_event_dev_config::nb_event_ports`` and\n+``rte_event_dev_config::nb_single_link_event_port_queues``\n+parameters required for eth_tx adapter when the adapter is created\n+using above mentioned api.\n+\n Adding Tx Queues to the Adapter Instance\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n \ndiff --git a/lib/eventdev/rte_event_eth_tx_adapter.c b/lib/eventdev/rte_event_eth_tx_adapter.c\nindex 88309d2aaa..c780ee1264 100644\n--- a/lib/eventdev/rte_event_eth_tx_adapter.c\n+++ b/lib/eventdev/rte_event_eth_tx_adapter.c\n@@ -316,6 +316,8 @@ txa_service_conf_cb(uint8_t __rte_unused id, uint8_t dev_id,\n \n \tport_id = dev_conf.nb_event_ports;\n \tdev_conf.nb_event_ports += 1;\n+\tif (pc->event_port_cfg & RTE_EVENT_PORT_CFG_SINGLE_LINK)\n+\t\tdev_conf.nb_single_link_event_port_queues += 1;\n \n \tret = rte_event_dev_configure(dev_id, &dev_conf);\n \tif (ret) {\n", "prefixes": [ "v2", "2/4" ] }{ "id": 120868, "url": "