Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/77524/?format=api
http://patches.dpdk.org/api/patches/77524/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1599855987-25976-19-git-send-email-timothy.mcdaniel@intel.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": "<1599855987-25976-19-git-send-email-timothy.mcdaniel@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1599855987-25976-19-git-send-email-timothy.mcdaniel@intel.com", "date": "2020-09-11T20:26:23", "name": "[18/22] event/dlb2: add PMD's token pop public interface", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "2369cdf9f25bdee6c0a75d5fb0f0ed0b7c18f2c0", "submitter": { "id": 826, "url": "http://patches.dpdk.org/api/people/826/?format=api", "name": "Timothy McDaniel", "email": "timothy.mcdaniel@intel.com" }, "delegate": { "id": 310, "url": "http://patches.dpdk.org/api/users/310/?format=api", "username": "jerin", "first_name": "Jerin", "last_name": "Jacob", "email": "jerinj@marvell.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1599855987-25976-19-git-send-email-timothy.mcdaniel@intel.com/mbox/", "series": [ { "id": 12164, "url": "http://patches.dpdk.org/api/series/12164/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12164", "date": "2020-09-11T20:26:05", "name": "Add DLB2 PMD", "version": 1, "mbox": "http://patches.dpdk.org/series/12164/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/77524/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/77524/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 76CCEA04C1;\n\tFri, 11 Sep 2020 22:33:19 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 68AF51C240;\n\tFri, 11 Sep 2020 22:30:40 +0200 (CEST)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by dpdk.org (Postfix) with ESMTP id 61A8B1C139\n for <dev@dpdk.org>; Fri, 11 Sep 2020 22:30:09 +0200 (CEST)", "from orsmga005.jf.intel.com ([10.7.209.41])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 11 Sep 2020 13:30:08 -0700", "from txasoft-yocto.an.intel.com ([10.123.72.192])\n by orsmga005.jf.intel.com with ESMTP; 11 Sep 2020 13:30:06 -0700" ], "IronPort-SDR": [ "\n OFe84XO2vSlwOmImqUGj3OIZPTo0bzNqxFaczveOCDRVysPH445+lSpxMgPs7AOo4D1yR75kkl\n 6+5UrVs9Kt+w==", "\n +Xs4QipM7i53fXT3raMm/ieURQm4Dp5TwNyS6dD9SVic63WKkuPhQdHa2rODrtXe43JgLG0c7F\n Hh3kjIvn01LA==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9741\"; a=\"156244389\"", "E=Sophos;i=\"5.76,417,1592895600\"; d=\"scan'208\";a=\"156244389\"", "E=Sophos;i=\"5.76,417,1592895600\"; d=\"scan'208\";a=\"481453676\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Timothy McDaniel <timothy.mcdaniel@intel.com>", "To": "Ray Kinsella <mdr@ashroe.eu>,\n\tNeil Horman <nhorman@tuxdriver.com>", "Cc": "dev@dpdk.org, erik.g.carrillo@intel.com, gage.eads@intel.com,\n harry.van.haaren@intel.com, jerinj@marvell.com", "Date": "Fri, 11 Sep 2020 15:26:23 -0500", "Message-Id": "<1599855987-25976-19-git-send-email-timothy.mcdaniel@intel.com>", "X-Mailer": "git-send-email 1.7.10", "In-Reply-To": "<1599855987-25976-1-git-send-email-timothy.mcdaniel@intel.com>", "References": "<1599855987-25976-1-git-send-email-timothy.mcdaniel@intel.com>", "Subject": "[dpdk-dev] [PATCH 18/22] event/dlb2: add PMD's token pop public\n\tinterface", "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": "The PMD uses a public interface to allow applications to\ncontrol the token pop mode. Supported token pop modes are\nas follows, and they impact core scheduling affinity for\nldb ports.\n\nAUTO_POP: Pop the CQ tokens immediately after dequeueing.\nDELAYED_POP: Pop CQ tokens after (dequeue_depth - 1) events\n are released. Supported on load-balanced ports\n only.\nDEFERRED_POP: Pop the CQ tokens during next dequeue operation.\n\nSigned-off-by: Timothy McDaniel <timothy.mcdaniel@intel.com>\n---\n drivers/event/dlb2/meson.build | 5 ++-\n drivers/event/dlb2/rte_pmd_dlb2.c | 39 +++++++++++++++++++++++\n drivers/event/dlb2/rte_pmd_dlb2_event_version.map | 6 ++++\n 3 files changed, 49 insertions(+), 1 deletion(-)\n create mode 100644 drivers/event/dlb2/rte_pmd_dlb2.c", "diff": "diff --git a/drivers/event/dlb2/meson.build b/drivers/event/dlb2/meson.build\nindex 492452e..4549a75 100644\n--- a/drivers/event/dlb2/meson.build\n+++ b/drivers/event/dlb2/meson.build\n@@ -1,3 +1,4 @@\n+\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2019-2020 Intel Corporation\n \n@@ -6,7 +7,9 @@ sources = files('dlb2.c',\n \t\t'dlb2_xstats.c',\n \t\t'pf/dlb2_main.c',\n \t\t'pf/dlb2_pf.c',\n-\t\t'pf/base/dlb2_resource.c'\n+\t\t'pf/base/dlb2_resource.c',\n+\t\t'rte_pmd_dlb2.c'\n )\n \n deps += ['mbuf', 'mempool', 'ring', 'bus_vdev', 'pci', 'bus_pci']\n+install_headers('rte_pmd_dlb2.h')\n\\ No newline at end of file\ndiff --git a/drivers/event/dlb2/rte_pmd_dlb2.c b/drivers/event/dlb2/rte_pmd_dlb2.c\nnew file mode 100644\nindex 0000000..b09b585\n--- /dev/null\n+++ b/drivers/event/dlb2/rte_pmd_dlb2.c\n@@ -0,0 +1,39 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2020 Intel Corporation\n+ */\n+\n+#include <rte_eventdev.h>\n+#include <rte_eventdev_pmd.h>\n+\n+#include \"rte_pmd_dlb2.h\"\n+#include \"dlb2_priv.h\"\n+#include \"dlb2_inline_fns.h\"\n+\n+int\n+rte_pmd_dlb2_set_token_pop_mode(uint8_t dev_id,\n+\t\t\t\tuint8_t port_id,\n+\t\t\t\tenum dlb2_token_pop_mode mode)\n+{\n+\tstruct dlb2_eventdev *dlb2;\n+\tstruct rte_eventdev *dev;\n+\n+\tRTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);\n+\tdev = &rte_eventdevs[dev_id];\n+\n+\tdlb2 = dlb2_pmd_priv(dev);\n+\n+\tif (mode >= NUM_TOKEN_POP_MODES)\n+\t\treturn -EINVAL;\n+\n+\t/* The event device must be configured, but not yet started */\n+\tif (!dlb2->configured || dlb2->run_state != DLB2_RUN_STATE_STOPPED)\n+\t\treturn -EINVAL;\n+\n+\t/* The token pop mode must be set before configuring the port */\n+\tif (port_id >= dlb2->num_ports || dlb2->ev_ports[port_id].setup_done)\n+\t\treturn -EINVAL;\n+\n+\tdlb2->ev_ports[port_id].qm_port.token_pop_mode = mode;\n+\n+\treturn 0;\n+}\ndiff --git a/drivers/event/dlb2/rte_pmd_dlb2_event_version.map b/drivers/event/dlb2/rte_pmd_dlb2_event_version.map\nindex 299ae63..84b81a4 100644\n--- a/drivers/event/dlb2/rte_pmd_dlb2_event_version.map\n+++ b/drivers/event/dlb2/rte_pmd_dlb2_event_version.map\n@@ -1,3 +1,9 @@\n DPDK_21.0 {\n \tlocal: *;\n };\n+\n+EXPERIMENTAL {\n+\tglobal:\n+\n+\trte_pmd_dlb2_set_token_pop_mode;\n+};\n", "prefixes": [ "18/22" ] }{ "id": 77524, "url": "