Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/52773/?format=api
http://patches.dpdk.org/api/patches/52773/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1555304823-91456-3-git-send-email-rosen.xu@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": "<1555304823-91456-3-git-send-email-rosen.xu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1555304823-91456-3-git-send-email-rosen.xu@intel.com", "date": "2019-04-15T05:06:51", "name": "[v8,02/14] bus/ifpga: add function for AFU search by name", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "cb9a494609adc5ca85e0bf8edc8a6e58db6069c1", "submitter": { "id": 946, "url": "http://patches.dpdk.org/api/people/946/?format=api", "name": "Xu, Rosen", "email": "rosen.xu@intel.com" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1555304823-91456-3-git-send-email-rosen.xu@intel.com/mbox/", "series": [ { "id": 4309, "url": "http://patches.dpdk.org/api/series/4309/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4309", "date": "2019-04-15T05:06:49", "name": "Add patch set for IPN3KE", "version": 8, "mbox": "http://patches.dpdk.org/series/4309/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/52773/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/52773/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 78FFF5F2E;\n\tMon, 15 Apr 2019 07:06:04 +0200 (CEST)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n\tby dpdk.org (Postfix) with ESMTP id 3ADB95B2C\n\tfor <dev@dpdk.org>; Mon, 15 Apr 2019 07:06:03 +0200 (CEST)", "from orsmga007.jf.intel.com ([10.7.209.58])\n\tby orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t14 Apr 2019 22:06:02 -0700", "from dpdkx8602.sh.intel.com ([10.67.110.200])\n\tby orsmga007.jf.intel.com with ESMTP; 14 Apr 2019 22:06:00 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.60,352,1549958400\"; d=\"scan'208\";a=\"131409636\"", "From": "Rosen Xu <rosen.xu@intel.com>", "To": "dev@dpdk.org", "Cc": "ferruh.yigit@intel.com, tianfei.zhang@intel.com, dan.wei@intel.com,\n\trosen.xu@intel.com, andy.pei@intel.com, qiming.yang@intel.com,\n\thaiyue.wang@intel.com, santos.chen@intel.com, zhang.zhang@intel.com, \n\tdavid.lomartire@intel.com, jia.hu@intel.com", "Date": "Mon, 15 Apr 2019 13:06:51 +0800", "Message-Id": "<1555304823-91456-3-git-send-email-rosen.xu@intel.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1555304823-91456-1-git-send-email-rosen.xu@intel.com>", "References": "<1551338000-120348-1-git-send-email-rosen.xu@intel.com>\n\t<1555304823-91456-1-git-send-email-rosen.xu@intel.com>", "Subject": "[dpdk-dev] [PATCH v8 02/14] bus/ifpga: add function for AFU search\n\tby name", "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "In many scenarios, AFU is needed searched by name, this\nfunction add the feature.\n\nSigned-off-by: Rosen Xu <rosen.xu@intel.com>\nSigned-off-by: Andy Pei <andy.pei@intel.com>\n---\n drivers/bus/ifpga/ifpga_bus.c | 13 +++++++++++++\n drivers/bus/ifpga/rte_bus_ifpga.h | 9 +++++++++\n drivers/bus/ifpga/rte_bus_ifpga_version.map | 6 ++++++\n 3 files changed, 28 insertions(+)", "diff": "diff --git a/drivers/bus/ifpga/ifpga_bus.c b/drivers/bus/ifpga/ifpga_bus.c\nindex 55d3abf..8bfae29 100644\n--- a/drivers/bus/ifpga/ifpga_bus.c\n+++ b/drivers/bus/ifpga/ifpga_bus.c\n@@ -73,6 +73,19 @@ void rte_ifpga_driver_unregister(struct rte_afu_driver *driver)\n \treturn NULL;\n }\n \n+struct rte_afu_device *__rte_experimental\n+rte_ifpga_find_afu_by_name(const char *name)\n+{\n+\tstruct rte_afu_device *afu_dev = NULL;\n+\n+\tTAILQ_FOREACH(afu_dev, &ifpga_afu_dev_list, next) {\n+\t\tif (afu_dev &&\n+\t\t\t!strcmp(afu_dev->device.name, name))\n+\t\t\treturn afu_dev;\n+\t}\n+\treturn NULL;\n+}\n+\n static const char * const valid_args[] = {\n #define IFPGA_ARG_NAME \"ifpga\"\n \tIFPGA_ARG_NAME,\ndiff --git a/drivers/bus/ifpga/rte_bus_ifpga.h b/drivers/bus/ifpga/rte_bus_ifpga.h\nindex 820eeaa..c00f60e 100644\n--- a/drivers/bus/ifpga/rte_bus_ifpga.h\n+++ b/drivers/bus/ifpga/rte_bus_ifpga.h\n@@ -120,6 +120,15 @@ struct rte_afu_driver {\n }\n \n /**\n+ * Find AFU by AFU name.\n+ *\n+ * @param name\n+ * A pointer to AFU name string.\n+ */\n+struct rte_afu_device *__rte_experimental\n+rte_ifpga_find_afu_by_name(const char *name);\n+\n+/**\n * Register a ifpga afu device driver.\n *\n * @param driver\ndiff --git a/drivers/bus/ifpga/rte_bus_ifpga_version.map b/drivers/bus/ifpga/rte_bus_ifpga_version.map\nindex a027979..247ccfe 100644\n--- a/drivers/bus/ifpga/rte_bus_ifpga_version.map\n+++ b/drivers/bus/ifpga/rte_bus_ifpga_version.map\n@@ -8,3 +8,9 @@ DPDK_18.05 {\n \n \tlocal: *;\n };\n+\n+EXPERIMENTAL {\n+ global:\n+\n+ rte_ifpga_find_afu_by_name;\n+};\n\\ No newline at end of file\n", "prefixes": [ "v8", "02/14" ] }{ "id": 52773, "url": "