Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/51825/?format=api
http://patches.dpdk.org/api/patches/51825/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190328022115.4660-3-anand.rawat@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": "<20190328022115.4660-3-anand.rawat@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190328022115.4660-3-anand.rawat@intel.com", "date": "2019-03-28T02:21:09", "name": "[v6,2/8] eal: add header files to support os specifics", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "fe8069a1bc98d645b14d9bdbb6b632f524d220fd", "submitter": { "id": 1231, "url": "http://patches.dpdk.org/api/people/1231/?format=api", "name": "Anand Rawat", "email": "anand.rawat@intel.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190328022115.4660-3-anand.rawat@intel.com/mbox/", "series": [ { "id": 3962, "url": "http://patches.dpdk.org/api/series/3962/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=3962", "date": "2019-03-28T02:21:09", "name": "HelloWorld example for windows", "version": 6, "mbox": "http://patches.dpdk.org/series/3962/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/51825/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/51825/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 095BD5B3C;\n\tThu, 28 Mar 2019 03:21:18 +0100 (CET)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id 0C3425B12\n\tfor <dev@dpdk.org>; Thu, 28 Mar 2019 03:21:16 +0100 (CET)", "from fmsmga006.fm.intel.com ([10.253.24.20])\n\tby orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t27 Mar 2019 19:21:16 -0700", "from anandraw-devbx.amr.corp.intel.com ([10.19.242.57])\n\tby fmsmga006.fm.intel.com with ESMTP; 27 Mar 2019 19:21:15 -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,278,1549958400\"; d=\"scan'208\";a=\"331369609\"", "From": "Anand Rawat <anand.rawat@intel.com>", "To": "dev@dpdk.org", "Cc": "anand.rawat@intel.com, pallavi.kadam@intel.com, ranjit.menon@intel.com, \n\tjeffrey.b.shaw@intel.com, bruce.richardson@intel.com, thomas@monjalon.net", "Date": "Wed, 27 Mar 2019 19:21:09 -0700", "Message-Id": "<20190328022115.4660-3-anand.rawat@intel.com>", "X-Mailer": "git-send-email 2.17.1.windows.2", "In-Reply-To": "<20190328022115.4660-1-anand.rawat@intel.com>", "References": "<20190306041634.12976-1-anand.rawat@intel.com>\n\t<20190328022115.4660-1-anand.rawat@intel.com>", "Subject": "[dpdk-dev] [PATCH v6 2/8] eal: add header files to support os\n\tspecifics", "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": "Added rte_os.h files to support os specific functionality.\nUpdated rte_common.h to include rte_os.h. Updated lib/meson.build to\ninject rte_os.h in every library.\n\nSigned-off-by: Anand Rawat <anand.rawat@intel.com>\nSigned-off-by: Pallavi Kadam <pallavi.kadam@intel.com>\nReviewed-by: Jeff Shaw <jeffrey.b.shaw@intel.com>\nReviewed-by: Ranjit Menon <ranjit.menon@intel.com>\n---\n lib/librte_eal/common/include/rte_common.h | 5 +++-\n .../common/include/rte_string_fns.h | 4 ++-\n .../freebsd/eal/include/exec-env/rte_os.h | 10 +++++++\n .../linux/eal/include/exec-env/rte_os.h | 8 +++++\n .../windows/eal/include/exec-env/rte_os.h | 30 +++++++++++++++++++\n lib/meson.build | 7 ++++-\n 6 files changed, 61 insertions(+), 3 deletions(-)\n create mode 100644 lib/librte_eal/freebsd/eal/include/exec-env/rte_os.h\n create mode 100644 lib/librte_eal/linux/eal/include/exec-env/rte_os.h\n create mode 100644 lib/librte_eal/windows/eal/include/exec-env/rte_os.h", "diff": "diff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_eal/common/include/rte_common.h\nindex bcf8afd39..3e4768f4a 100644\n--- a/lib/librte_eal/common/include/rte_common.h\n+++ b/lib/librte_eal/common/include/rte_common.h\n@@ -1,5 +1,5 @@\n /* SPDX-License-Identifier: BSD-3-Clause\n- * Copyright(c) 2010-2014 Intel Corporation\n+ * Copyright(c) 2010-2019 Intel Corporation\n */\n \n #ifndef _RTE_COMMON_H_\n@@ -24,6 +24,9 @@ extern \"C\" {\n \n #include <rte_config.h>\n \n+/* os specific include */\n+#include <rte_os.h>\n+\n #ifndef typeof\n #define typeof __typeof__\n #endif\ndiff --git a/lib/librte_eal/common/include/rte_string_fns.h b/lib/librte_eal/common/include/rte_string_fns.h\nindex 85bfe6c9a..8bac8243c 100644\n--- a/lib/librte_eal/common/include/rte_string_fns.h\n+++ b/lib/librte_eal/common/include/rte_string_fns.h\n@@ -1,5 +1,5 @@\n /* SPDX-License-Identifier: BSD-3-Clause\n- * Copyright(c) 2010-2014 Intel Corporation\n+ * Copyright(c) 2010-2019 Intel Corporation\n */\n \n /**\n@@ -18,6 +18,8 @@ extern \"C\" {\n #include <stdio.h>\n #include <string.h>\n \n+#include <rte_common.h>\n+\n /**\n * Takes string \"string\" parameter and splits it at character \"delim\"\n * up to maxtokens-1 times - to give \"maxtokens\" resulting tokens. Like\ndiff --git a/lib/librte_eal/freebsd/eal/include/exec-env/rte_os.h b/lib/librte_eal/freebsd/eal/include/exec-env/rte_os.h\nnew file mode 100644\nindex 000000000..bda0c2d92\n--- /dev/null\n+++ b/lib/librte_eal/freebsd/eal/include/exec-env/rte_os.h\n@@ -0,0 +1,10 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2019 Intel Corporation\n+ */\n+\n+#ifndef _RTE_OS_H_\n+#define _RTE_OS_H_\n+\n+/* stub file for os specific logic */\n+\n+#endif /* _RTE_OS_H_ */\ndiff --git a/lib/librte_eal/linux/eal/include/exec-env/rte_os.h b/lib/librte_eal/linux/eal/include/exec-env/rte_os.h\nnew file mode 100644\nindex 000000000..c43ec6da5\n--- /dev/null\n+++ b/lib/librte_eal/linux/eal/include/exec-env/rte_os.h\n@@ -0,0 +1,8 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2019 Intel Corporation\n+ */\n+\n+#ifndef _RTE_OS_H_\n+#define _RTE_OS_H_\n+\n+#endif /* _RTE_OS_H_ */\ndiff --git a/lib/librte_eal/windows/eal/include/exec-env/rte_os.h b/lib/librte_eal/windows/eal/include/exec-env/rte_os.h\nnew file mode 100644\nindex 000000000..65230cae9\n--- /dev/null\n+++ b/lib/librte_eal/windows/eal/include/exec-env/rte_os.h\n@@ -0,0 +1,30 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2019 Intel Corporation\n+ */\n+\n+#ifndef _RTE_OS_H_\n+#define _RTE_OS_H_\n+\n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n+#include <BaseTsd.h>\n+\n+/* macro substitution for windows supported strerror_r */\n+#define strerror_r(a, b, c) strerror_s(b, c, a)\n+\n+/* macro substitution for windows supported strdup */\n+#define strdup(str)\t_strdup(str)\n+\n+/* macro substitution for windows supported ssize_t type */\n+typedef SSIZE_T ssize_t;\n+\n+/* macro substitution for windows supported strtok_r */\n+#define strtok_r(str, delim, saveptr) strtok_s(str, delim, saveptr)\n+\n+#ifdef __cplusplus\n+}\n+#endif\n+\n+#endif /* _RTE_OS_H_ */\ndiff --git a/lib/meson.build b/lib/meson.build\nindex 99957ba7d..a81faf0ed 100644\n--- a/lib/meson.build\n+++ b/lib/meson.build\n@@ -1,5 +1,5 @@\n # SPDX-License-Identifier: BSD-3-Clause\n-# Copyright(c) 2017 Intel Corporation\n+# Copyright(c) 2017-2019 Intel Corporation\n \n \n # process all libraries equally, as far as possible\n@@ -64,6 +64,11 @@ foreach l:libraries\n \tdir_name = 'librte_' + l\n \tsubdir(dir_name)\n \n+\tif host_machine.system() == 'windows'\n+\t\t# injecting rte_os.h in every library in windows\n+\t\tincludes += include_directories('librte_eal/windows/eal/include/exec-env')\n+\tendif\n+\n \tif build\n \t\tenabled_libs += name\n \t\tdpdk_conf.set('RTE_LIBRTE_' + name.to_upper(), 1)\n", "prefixes": [ "v6", "2/8" ] }{ "id": 51825, "url": "