Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/84981/?format=api
http://patches.dpdk.org/api/patches/84981/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20201210150648.8784-21-talshn@nvidia.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": "<20201210150648.8784-21-talshn@nvidia.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201210150648.8784-21-talshn@nvidia.com", "date": "2020-12-10T15:06:35", "name": "[v2,20/33] mlx5/windows: add mlx5 meson file", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "737b9888f6d45171713a8dbcc062024988b46945", "submitter": { "id": 1893, "url": "http://patches.dpdk.org/api/people/1893/?format=api", "name": "Tal Shnaiderman", "email": "talshn@nvidia.com" }, "delegate": { "id": 3268, "url": "http://patches.dpdk.org/api/users/3268/?format=api", "username": "rasland", "first_name": "Raslan", "last_name": "Darawsheh", "email": "rasland@nvidia.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20201210150648.8784-21-talshn@nvidia.com/mbox/", "series": [ { "id": 14240, "url": "http://patches.dpdk.org/api/series/14240/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=14240", "date": "2020-12-10T15:06:17", "name": "mlx5 Windows support - part #5", "version": 2, "mbox": "http://patches.dpdk.org/series/14240/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/84981/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/84981/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 94F9AA04DB;\n\tThu, 10 Dec 2020 16:19:00 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id B792FCACD;\n\tThu, 10 Dec 2020 16:08:34 +0100 (CET)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 2ACBDC9A6\n for <dev@dpdk.org>; Thu, 10 Dec 2020 16:07:53 +0100 (CET)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n talshn@nvidia.com) with SMTP; 10 Dec 2020 17:07:46 +0200", "from nvidia.com (l-wincomp04-vm.mtl.labs.mlnx [10.237.1.5])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 0BAF7h9C007994;\n Thu, 10 Dec 2020 17:07:46 +0200" ], "From": "Tal Shnaiderman <talshn@nvidia.com>", "To": "dev@dpdk.org", "Cc": "thomas@monjalon.net, matan@nvidia.com, rasland@nvidia.com,\n ophirmu@nvidia.com", "Date": "Thu, 10 Dec 2020 17:06:35 +0200", "Message-Id": "<20201210150648.8784-21-talshn@nvidia.com>", "X-Mailer": "git-send-email 2.16.1.windows.4", "In-Reply-To": "<20201210150648.8784-1-talshn@nvidia.com>", "References": "<20201027232335.31427-2-ophirmu@nvidia.com>\n <20201210150648.8784-1-talshn@nvidia.com>", "Subject": "[dpdk-dev] [PATCH v2 20/33] mlx5/windows: add mlx5 meson file", "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 <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 <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "File drivers/common/mlx5/windows/meson.build is added to enable mlx5\nsource files compilation under common windows directory.\nA Devx SDK tool must be installed to export two external H files:\nmlx5devx.h and mlx5_ifc_devx.h. The installation is based on environment\nvariable DEVX_INC_PATH. In addition a DLL lib file is installed based on\nenvironment variable DEVX_LIB_PATH. The meson file is using the\nenvironment variables for compilation and linkage.\n\nSigned-off-by: Tal Shnaiderman <talshn@nvidia.com>\nAcked-by: Matan Azrad <matan@nvidia.com>\n---\n drivers/common/mlx5/meson.build | 4 ++--\n drivers/common/mlx5/windows/meson.build | 42 +++++++++++++++++++++++++++++++++\n 2 files changed, 44 insertions(+), 2 deletions(-)\n create mode 100644 drivers/common/mlx5/windows/meson.build", "diff": "diff --git a/drivers/common/mlx5/meson.build b/drivers/common/mlx5/meson.build\nindex 3dacc6f683..3047b455cf 100644\n--- a/drivers/common/mlx5/meson.build\n+++ b/drivers/common/mlx5/meson.build\n@@ -1,9 +1,9 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright 2019 Mellanox Technologies, Ltd\n \n-if not is_linux\n+if not (is_linux or (is_windows and is_ms_linker))\n \tbuild = false\n-\treason = 'only supported on Linux'\n+\treason = 'only supported on Linux and Windows build with clang'\n \tsubdir_done()\n endif\n \ndiff --git a/drivers/common/mlx5/windows/meson.build b/drivers/common/mlx5/windows/meson.build\nnew file mode 100644\nindex 0000000000..2b2aa3b097\n--- /dev/null\n+++ b/drivers/common/mlx5/windows/meson.build\n@@ -0,0 +1,42 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright 2019 Mellanox Technologies, Ltd\n+\n+includes += include_directories('.')\n+\n+allow_experimental_apis = true\n+sources += files(\n+\t'mlx5_glue.c',\n+)\n+\n+res_lib = run_command(python3, '-c', 'import os; print(os.environ[\"DEVX_LIB_PATH\"])')\n+res_inc = run_command(python3, '-c', 'import os; print(os.environ[\"DEVX_INC_PATH\"])')\n+\n+if (res_lib.returncode() != 0 or res_inc.returncode() != 0)\n+\tbuild = false\n+\treason = 'DevX environment variables are not set, DEVX_LIB_PATH and DEVX_INC_PATH vars must be exported'\n+\tsubdir_done()\n+endif\n+\n+devx_lib_dir = res_lib.stdout().strip()\n+devx_inc_dir = res_inc.stdout().strip()\n+\n+ext_deps += cc.find_library('mlx5devx', dirs: devx_lib_dir, required: true)\n+includes += include_directories(devx_inc_dir)\n+cflags_options = [\n+\t'-std=c11',\n+\t'-Wno-strict-prototypes',\n+\t'-D_BSD_SOURCE',\n+\t'-D_DEFAULT_SOURCE',\n+\t'-D_XOPEN_SOURCE=600'\n+]\n+foreach option:cflags_options\n+\tif cc.has_argument(option)\n+\t\tcflags += option\n+\tendif\n+endforeach\n+if get_option('buildtype').contains('debug')\n+\tcflags += [ '-pedantic', '-DPEDANTIC' ]\n+else\n+\tcflags += [ '-UPEDANTIC' ]\n+endif\n+\n", "prefixes": [ "v2", "20/33" ] }{ "id": 84981, "url": "