Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/71467/?format=api
https://patches.dpdk.org/api/patches/71467/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200612212434.6852-13-timothy.mcdaniel@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": "<20200612212434.6852-13-timothy.mcdaniel@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200612212434.6852-13-timothy.mcdaniel@intel.com", "date": "2020-06-12T21:24:19", "name": "[12/27] event/dlb: add the PMD's public interfaces", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "9e5a273f7cd9bab27b6806e93a0b81c06f68b5bd", "submitter": { "id": 826, "url": "https://patches.dpdk.org/api/people/826/?format=api", "name": "Timothy McDaniel", "email": "timothy.mcdaniel@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/20200612212434.6852-13-timothy.mcdaniel@intel.com/mbox/", "series": [ { "id": 10445, "url": "https://patches.dpdk.org/api/series/10445/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=10445", "date": "2020-06-12T21:24:07", "name": "V1 event/dlb add Intel DLB PMD", "version": 1, "mbox": "https://patches.dpdk.org/series/10445/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/71467/comments/", "check": "fail", "checks": "https://patches.dpdk.org/api/patches/71467/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 720E3A00BE;\n\tFri, 12 Jun 2020 23:28:40 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 50DDA1C07E;\n\tFri, 12 Jun 2020 23:26:40 +0200 (CEST)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by dpdk.org (Postfix) with ESMTP id 7AB511BFA1\n for <dev@dpdk.org>; Fri, 12 Jun 2020 23:26:27 +0200 (CEST)", "from orsmga003.jf.intel.com ([10.7.209.27])\n by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 12 Jun 2020 14:26:27 -0700", "from txasoft-yocto.an.intel.com ([10.123.72.192])\n by orsmga003.jf.intel.com with ESMTP; 12 Jun 2020 14:26:26 -0700" ], "IronPort-SDR": [ "\n wXEfwTodJA6FDeJ10yowP/vmcu8hXyydP9hVhA05OYLlgOdcAviCzIySHnrG3uIZ6zhc5c7O4d\n O3wCnEh3dD6Q==", "\n 79pNL8Brq8dsjlnat1PU/D1oZ8XxzZyJ7CJMnoDWsPZk9VmZO2LVgbsV9lVSlQl7pZpI8tXz7c\n pXjTe6XWy+8A==" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.73,504,1583222400\"; d=\"scan'208\";a=\"272035829\"", "From": "\"McDaniel, Timothy\" <timothy.mcdaniel@intel.com>", "To": "jerinj@marvell.com", "Cc": "dev@dpdk.org,\n\tgage.eads@intel.com,\n\tharry.van.haaren@intel.com", "Date": "Fri, 12 Jun 2020 16:24:19 -0500", "Message-Id": "<20200612212434.6852-13-timothy.mcdaniel@intel.com>", "X-Mailer": "git-send-email 2.13.6", "In-Reply-To": "<20200612212434.6852-1-timothy.mcdaniel@intel.com>", "References": "<20200612212434.6852-1-timothy.mcdaniel@intel.com>", "Subject": "[dpdk-dev] [PATCH 12/27] event/dlb: add the PMD's public interfaces", "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": "Change-Id: I0237d00b8d27d84962be467c48de7c4d5137cc4c\nSigned-off-by: McDaniel, Timothy <timothy.mcdaniel@intel.com>\n---\n drivers/event/dlb/rte_pmd_dlb.c | 39 ++++++++++++++\n drivers/event/dlb/rte_pmd_dlb.h | 69 +++++++++++++++++++++++++\n drivers/event/dlb/rte_pmd_dlb_event_version.map | 6 +++\n 3 files changed, 114 insertions(+)\n create mode 100644 drivers/event/dlb/rte_pmd_dlb.c\n create mode 100644 drivers/event/dlb/rte_pmd_dlb.h\n create mode 100644 drivers/event/dlb/rte_pmd_dlb_event_version.map", "diff": "diff --git a/drivers/event/dlb/rte_pmd_dlb.c b/drivers/event/dlb/rte_pmd_dlb.c\nnew file mode 100644\nindex 000000000..11f0d66cd\n--- /dev/null\n+++ b/drivers/event/dlb/rte_pmd_dlb.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_dlb.h\"\n+#include \"dlb_priv.h\"\n+#include \"dlb_inline_fns.h\"\n+\n+int\n+rte_pmd_dlb_set_token_pop_mode(uint8_t dev_id,\n+\t\t\t\tuint8_t port_id,\n+\t\t\t\tenum dlb_token_pop_mode mode)\n+{\n+\tstruct dlb_eventdev *dlb;\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+\tdlb = dlb_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 (!dlb->configured || dlb->run_state != DLB_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 >= dlb->num_ports || dlb->ev_ports[port_id].setup_done)\n+\t\treturn -EINVAL;\n+\n+\tdlb->ev_ports[port_id].qm_port.token_pop_mode = mode;\n+\n+\treturn 0;\n+}\ndiff --git a/drivers/event/dlb/rte_pmd_dlb.h b/drivers/event/dlb/rte_pmd_dlb.h\nnew file mode 100644\nindex 000000000..1b637def6\n--- /dev/null\n+++ b/drivers/event/dlb/rte_pmd_dlb.h\n@@ -0,0 +1,69 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2019-2020 Intel Corporation\n+ */\n+\n+/*!\n+ * @file rte_pmd_dlb.h\n+ *\n+ * @brief DLB PMD-specific functions\n+ */\n+\n+#ifndef _RTE_PMD_DLB_H_\n+#define _RTE_PMD_DLB_H_\n+\n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n+#include <stdint.h>\n+\n+/**\n+ * Selects the token pop mode for an DLB port.\n+ */\n+enum dlb_token_pop_mode {\n+\t/* Pop the CQ tokens immediately after dequeueing. */\n+\tAUTO_POP,\n+\t/* Pop CQ tokens after (dequeue_depth - 1) events are released.\n+\t * Supported on load-balanced ports only.\n+\t */\n+\tDELAYED_POP,\n+\t/* Pop the CQ tokens during next dequeue operation. */\n+\tDEFERRED_POP,\n+\n+\t/* NUM_TOKEN_POP_MODES must be last */\n+\tNUM_TOKEN_POP_MODES\n+};\n+\n+/*!\n+ * Configure the token pop mode for an DLB port. By default, all ports use\n+ * AUTO_POP. This function must be called before calling rte_event_port_setup()\n+ * for the port, but after calling rte_event_dev_configure().\n+ *\n+ * @note\n+ * The defer_sched vdev arg, which configures all load-balanced ports with\n+ * dequeue_depth == 1 for DEFERRED_POP mode, takes precedence over this\n+ * function.\n+ *\n+ * @param dev_id\n+ * The identifier of the event device.\n+ * @param port_id\n+ * The identifier of the event port.\n+ * @param mode\n+ * The token pop mode.\n+ *\n+ * @return\n+ * - 0: Success\n+ * - EINVAL: Invalid dev_id, port_id, or mode\n+ * - EINVAL: The DLB is not configured, is already running, or the port is\n+ * already setup\n+ */\n+\n+int\n+rte_pmd_dlb_set_token_pop_mode(uint8_t dev_id,\n+\t\t\t\tuint8_t port_id,\n+\t\t\t\tenum dlb_token_pop_mode mode);\n+#ifdef __cplusplus\n+}\n+#endif\n+\n+#endif /* _RTE_PMD_DLB_H_ */\ndiff --git a/drivers/event/dlb/rte_pmd_dlb_event_version.map b/drivers/event/dlb/rte_pmd_dlb_event_version.map\nnew file mode 100644\nindex 000000000..8b1c796de\n--- /dev/null\n+++ b/drivers/event/dlb/rte_pmd_dlb_event_version.map\n@@ -0,0 +1,6 @@\n+DPDK_20.08 {\n+\tglobal:\n+\n+\trte_pmd_dlb_set_token_pop_mode;\n+\tlocal: *;\n+};\n", "prefixes": [ "12/27" ] }{ "id": 71467, "url": "