Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/52529/?format=api
http://patches.dpdk.org/api/patches/52529/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1554877672-19745-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": "<1554877672-19745-3-git-send-email-rosen.xu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1554877672-19745-3-git-send-email-rosen.xu@intel.com", "date": "2019-04-10T06:27:40", "name": "[v7,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/1554877672-19745-3-git-send-email-rosen.xu@intel.com/mbox/", "series": [ { "id": 4223, "url": "http://patches.dpdk.org/api/series/4223/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4223", "date": "2019-04-10T06:27:38", "name": "Add patch set for IPN3KE", "version": 7, "mbox": "http://patches.dpdk.org/series/4223/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/52529/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/52529/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 5F62658CB;\n\tWed, 10 Apr 2019 08:26:58 +0200 (CEST)", "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n\tby dpdk.org (Postfix) with ESMTP id D00165A6A\n\tfor <dev@dpdk.org>; Wed, 10 Apr 2019 08:26:55 +0200 (CEST)", "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t09 Apr 2019 23:26:55 -0700", "from dpdkx8602.sh.intel.com ([10.67.110.200])\n\tby FMSMGA003.fm.intel.com with ESMTP; 09 Apr 2019 23:26:52 -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,332,1549958400\"; d=\"scan'208\";a=\"147980601\"", "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": "Wed, 10 Apr 2019 14:27:40 +0800", "Message-Id": "<1554877672-19745-3-git-send-email-rosen.xu@intel.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1554877672-19745-1-git-send-email-rosen.xu@intel.com>", "References": "<1551338000-120348-1-git-send-email-rosen.xu@intel.com>\n\t<1554877672-19745-1-git-send-email-rosen.xu@intel.com>", "Subject": "[dpdk-dev] [PATCH v7 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": [ "v7", "02/14" ] }{ "id": 52529, "url": "