Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/27557/?format=api
http://patches.dpdk.org/api/patches/27557/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20170814095208.166496-23-bruce.richardson@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": "<20170814095208.166496-23-bruce.richardson@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20170814095208.166496-23-bruce.richardson@intel.com", "date": "2017-08-14T09:51:50", "name": "[dpdk-dev,RFCv2,22/40] build: add mempool drivers to build", "commit_ref": null, "pull_url": null, "state": "rfc", "archived": true, "hash": "791617955a340c1542dd0b9f8c1c9a6af61a470a", "submitter": { "id": 20, "url": "http://patches.dpdk.org/api/people/20/?format=api", "name": "Bruce Richardson", "email": "bruce.richardson@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20170814095208.166496-23-bruce.richardson@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/27557/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/27557/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 50FDA99ED;\n\tMon, 14 Aug 2017 12:04:10 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id 66BB39978\n\tfor <dev@dpdk.org>; Mon, 14 Aug 2017 12:03:35 +0200 (CEST)", "from orsmga004.jf.intel.com ([10.7.209.38])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t14 Aug 2017 03:03:35 -0700", "from silpixa00399126.ir.intel.com (HELO\n\tsilpixa00399126.ger.corp.intel.com) ([10.237.223.223])\n\tby orsmga004.jf.intel.com with ESMTP; 14 Aug 2017 03:03:34 -0700" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.41,372,1498546800\"; d=\"scan'208\";a=\"118723826\"", "From": "Bruce Richardson <bruce.richardson@intel.com>", "To": "dev@dpdk.org", "Cc": "thomas@monjalon.net,\n\tBruce Richardson <bruce.richardson@intel.com>", "Date": "Mon, 14 Aug 2017 10:51:50 +0100", "Message-Id": "<20170814095208.166496-23-bruce.richardson@intel.com>", "X-Mailer": "git-send-email 2.13.4", "In-Reply-To": "<20170814095208.166496-1-bruce.richardson@intel.com>", "References": "<20170814095208.166496-1-bruce.richardson@intel.com>", "Subject": "[dpdk-dev] [RFCv2 22/40] build: add mempool drivers to build", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n drivers/mempool/meson.build | 97 +++++++++++++++++++++++++++++++++++++++\n drivers/mempool/ring/meson.build | 32 +++++++++++++\n drivers/mempool/stack/meson.build | 32 +++++++++++++\n drivers/meson.build | 1 +\n 4 files changed, 162 insertions(+)\n create mode 100644 drivers/mempool/meson.build\n create mode 100644 drivers/mempool/ring/meson.build\n create mode 100644 drivers/mempool/stack/meson.build", "diff": "diff --git a/drivers/mempool/meson.build b/drivers/mempool/meson.build\nnew file mode 100644\nindex 000000000..869e75cb7\n--- /dev/null\n+++ b/drivers/mempool/meson.build\n@@ -0,0 +1,97 @@\n+# BSD LICENSE\n+#\n+# Copyright(c) 2017 Intel Corporation. All rights reserved.\n+# All rights reserved.\n+#\n+# Redistribution and use in source and binary forms, with or without\n+# modification, are permitted provided that the following conditions\n+# are met:\n+#\n+# * Redistributions of source code must retain the above copyright\n+# notice, this list of conditions and the following disclaimer.\n+# * Redistributions in binary form must reproduce the above copyright\n+# notice, this list of conditions and the following disclaimer in\n+# the documentation and/or other materials provided with the\n+# distribution.\n+# * Neither the name of Intel Corporation nor the names of its\n+# contributors may be used to endorse or promote products derived\n+# from this software without specific prior written permission.\n+#\n+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+# \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+\n+mempool_drivers = ['ring', 'stack']\n+\n+foreach drv:mempool_drivers\n+\tdpdk_conf.set('RTE_LIBRTE_@0@_PMD'.format(drv.to_upper()),1)\n+\n+\t# set up empty variables used for build\n+\tversion = 1\n+\tsources = []\n+\tlibs = []\n+\tcflags = []\n+\tincludes = []\n+\t# dependency managment. External deps managed using dependency\n+\t# objects, internal deps managed by name of lib\n+\text_deps = []\n+\t# set up standard deps. Drivers can append/override as necessary\n+\tdeps = ['eal', 'mempool', 'ring']\n+\n+\t# pull in driver directory which should assign to each of the above\n+\tsubdir(drv)\n+\n+\t# get dependency objs from strings\n+\tdep_objs = ext_deps\n+\tforeach d:deps\n+\t\tdep_objs = [get_variable('dep_rte_' + d)] + dep_objs\n+\tendforeach\n+\n+\t# generate pmdinfo sources\n+\tpmdinfogen_srcs = run_command('grep', '--files-with-matches',\n+\t\t'RTE_PMD_REGISTER_.*(.*)', sources).stdout().strip().split()\n+\tforeach src: pmdinfogen_srcs\n+\t\tout_filename = '@0@.pmd.c'.format(src.split('/')[-1])\n+\t\ttmp_lib = static_library('tmp_@0@'.format(src.underscorify()),\n+\t\t\tsrc, include_directories: includes,\n+\t\t\tdependencies: dep_objs,\n+\t\t\tc_args: cflags)\n+\t\tsources += custom_target(out_filename,\n+\t\t\t\tcommand: [pmdinfo, tmp_lib.full_path(),\n+\t\t\t\t\t'@OUTPUT@', pmdinfogen],\n+\t\t\t\toutput: out_filename,\n+\t\t\t\tdepends: [pmdinfogen, tmp_lib])\n+\tendforeach\n+\n+\t# now build the driver itself, and add to the drivers list\n+\tdrv_name = 'rte_mempool_@0@'.format(drv)\n+\tversion_map = '@0@/@1@/rte_mempool_@1@_version.map'.format(\n+\t\t\tmeson.current_source_dir(), drv)\n+\tlib = library(drv_name,\n+\t\tsources,\n+\t\tinclude_directories: includes,\n+\t\tdependencies: dep_objs,\n+\t\tlink_with: libs,\n+\t\tc_args: cflags,\n+\t\tlink_args: '-Wl,--version-script=' + version_map,\n+\t\tlink_depends: version_map,\n+\t\tversion: '@0@.1'.format(version),\n+\t\tinstall: true,\n+\t\tinstall_dir: driver_install_path)\n+\n+\tdpdk_drivers += lib\n+\n+\t# create a dependency object and add it to the global dictionary so\n+\t# testpmd or other built-in apps can find it if necessary\n+\tset_variable('dep_pmd_@0@'.format(drv),\n+\t\t\tdeclare_dependency(link_with: lib,\n+\t\t\tinclude_directories: includes))\n+endforeach\ndiff --git a/drivers/mempool/ring/meson.build b/drivers/mempool/ring/meson.build\nnew file mode 100644\nindex 000000000..72e104315\n--- /dev/null\n+++ b/drivers/mempool/ring/meson.build\n@@ -0,0 +1,32 @@\n+# BSD LICENSE\n+#\n+# Copyright(c) 2017 Intel Corporation. All rights reserved.\n+# All rights reserved.\n+#\n+# Redistribution and use in source and binary forms, with or without\n+# modification, are permitted provided that the following conditions\n+# are met:\n+#\n+# * Redistributions of source code must retain the above copyright\n+# notice, this list of conditions and the following disclaimer.\n+# * Redistributions in binary form must reproduce the above copyright\n+# notice, this list of conditions and the following disclaimer in\n+# the documentation and/or other materials provided with the\n+# distribution.\n+# * Neither the name of Intel Corporation nor the names of its\n+# contributors may be used to endorse or promote products derived\n+# from this software without specific prior written permission.\n+#\n+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+# \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+\n+sources = files('rte_mempool_ring.c')\ndiff --git a/drivers/mempool/stack/meson.build b/drivers/mempool/stack/meson.build\nnew file mode 100644\nindex 000000000..84856a387\n--- /dev/null\n+++ b/drivers/mempool/stack/meson.build\n@@ -0,0 +1,32 @@\n+# BSD LICENSE\n+#\n+# Copyright(c) 2017 Intel Corporation. All rights reserved.\n+# All rights reserved.\n+#\n+# Redistribution and use in source and binary forms, with or without\n+# modification, are permitted provided that the following conditions\n+# are met:\n+#\n+# * Redistributions of source code must retain the above copyright\n+# notice, this list of conditions and the following disclaimer.\n+# * Redistributions in binary form must reproduce the above copyright\n+# notice, this list of conditions and the following disclaimer in\n+# the documentation and/or other materials provided with the\n+# distribution.\n+# * Neither the name of Intel Corporation nor the names of its\n+# contributors may be used to endorse or promote products derived\n+# from this software without specific prior written permission.\n+#\n+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+# \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+\n+sources = files('rte_mempool_stack.c')\ndiff --git a/drivers/meson.build b/drivers/meson.build\nindex 57f47c36f..f8ad7d0e2 100644\n--- a/drivers/meson.build\n+++ b/drivers/meson.build\n@@ -30,3 +30,4 @@\n # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n \n subdir('net')\n+subdir('mempool')\n", "prefixes": [ "dpdk-dev", "RFCv2", "22/40" ] }{ "id": 27557, "url": "