Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/52772/?format=api
http://patches.dpdk.org/api/patches/52772/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1555304823-91456-2-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-2-git-send-email-rosen.xu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1555304823-91456-2-git-send-email-rosen.xu@intel.com", "date": "2019-04-15T05:06:50", "name": "[v8,01/14] bus/ifpga: add AFU shared data", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "65e46bc7186e1e756efe53d8fe569f2c3e5095c1", "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-2-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/52772/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/52772/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 53E0A5F27;\n\tMon, 15 Apr 2019 07:06:02 +0200 (CEST)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n\tby dpdk.org (Postfix) with ESMTP id 456C75F1F\n\tfor <dev@dpdk.org>; Mon, 15 Apr 2019 07:05:59 +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:05:59 -0700", "from dpdkx8602.sh.intel.com ([10.67.110.200])\n\tby orsmga007.jf.intel.com with ESMTP; 14 Apr 2019 22:05:57 -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=\"131409608\"", "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:50 +0800", "Message-Id": "<1555304823-91456-2-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 01/14] bus/ifpga: add AFU shared data", "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": "AFU can be implemented into many different acceleration\ndevices, these devices need shared data to store private\ninformation when they are handled by users.\n\nSigned-off-by: Rosen Xu <rosen.xu@intel.com>\nSigned-off-by: Andy Pei <andy.pei@intel.com>\n---\n drivers/bus/ifpga/rte_bus_ifpga.h | 7 +++++++\n 1 file changed, 7 insertions(+)", "diff": "diff --git a/drivers/bus/ifpga/rte_bus_ifpga.h b/drivers/bus/ifpga/rte_bus_ifpga.h\nindex 0bf43ba..820eeaa 100644\n--- a/drivers/bus/ifpga/rte_bus_ifpga.h\n+++ b/drivers/bus/ifpga/rte_bus_ifpga.h\n@@ -17,6 +17,7 @@\n \n #include <rte_bus.h>\n #include <rte_pci.h>\n+#include <rte_spinlock.h>\n \n /** Name of Intel FPGA Bus */\n #define IFPGA_BUS_NAME ifpga\n@@ -60,6 +61,11 @@ struct rte_afu_pr_conf {\n \n #define AFU_PRI_STR_SIZE (PCI_PRI_STR_SIZE + 8)\n \n+struct rte_afu_shared {\n+\trte_spinlock_t lock;\n+\tvoid *data;\n+};\n+\n /**\n * A structure describing a AFU device.\n */\n@@ -71,6 +77,7 @@ struct rte_afu_device {\n \tuint32_t num_region; /**< number of regions found */\n \tstruct rte_mem_resource mem_resource[PCI_MAX_RESOURCE];\n \t\t\t\t\t\t/**< AFU Memory Resource */\n+\tstruct rte_afu_shared shared;\n \tstruct rte_intr_handle intr_handle; /**< Interrupt handle */\n \tstruct rte_afu_driver *driver; /**< Associated driver */\n \tchar path[IFPGA_BUS_BITSTREAM_PATH_MAX_LEN];\n", "prefixes": [ "v8", "01/14" ] }{ "id": 52772, "url": "