get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/82407/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 82407,
    "url": "https://patches.dpdk.org/api/patches/82407/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20201027232335.31427-23-ophirmu@nvidia.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20201027232335.31427-23-ophirmu@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20201027232335.31427-23-ophirmu@nvidia.com",
    "date": "2020-10-27T23:22:45",
    "name": "[v1,22/72] mlx5/windows: add mlx5 meson file",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "3b724174e8598e454b2cbe43bbd6f222d40da3fd",
    "submitter": {
        "id": 1908,
        "url": "https://patches.dpdk.org/api/people/1908/?format=api",
        "name": "Ophir Munk",
        "email": "ophirmu@nvidia.com"
    },
    "delegate": {
        "id": 3268,
        "url": "https://patches.dpdk.org/api/users/3268/?format=api",
        "username": "rasland",
        "first_name": "Raslan",
        "last_name": "Darawsheh",
        "email": "rasland@nvidia.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20201027232335.31427-23-ophirmu@nvidia.com/mbox/",
    "series": [
        {
            "id": 13395,
            "url": "https://patches.dpdk.org/api/series/13395/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=13395",
            "date": "2020-10-27T23:22:23",
            "name": "mlx5 Windows support - part #5",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/13395/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/82407/comments/",
    "check": "warning",
    "checks": "https://patches.dpdk.org/api/patches/82407/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 24D3DA04B5;\n\tWed, 28 Oct 2020 00:29:44 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 4E8006004;\n\tWed, 28 Oct 2020 00:24:42 +0100 (CET)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id A20692E8B\n for <dev@dpdk.org>; Wed, 28 Oct 2020 00:24:00 +0100 (CET)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n ophirmu@nvidia.com) with SMTP; 28 Oct 2020 01:23:55 +0200",
            "from nvidia.com (pegasus05.mtr.labs.mlnx [10.210.16.100])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 09RNNrrY026642;\n Wed, 28 Oct 2020 01:23:54 +0200"
        ],
        "From": "Ophir Munk <ophirmu@nvidia.com>",
        "To": "dev@dpdk.org, Raslan Darawsheh <rasland@nvidia.com>",
        "Cc": "Ophir Munk <ophirmu@nvidia.com>, Matan Azrad <matan@nvidia.com>,\n Tal Shnaiderman <talshn@nvidia.com>, Thomas Monjalon <thomas@monjalon.net>",
        "Date": "Tue, 27 Oct 2020 23:22:45 +0000",
        "Message-Id": "<20201027232335.31427-23-ophirmu@nvidia.com>",
        "X-Mailer": "git-send-email 2.8.4",
        "In-Reply-To": "<20201027232335.31427-1-ophirmu@nvidia.com>",
        "References": "<20201027232335.31427-1-ophirmu@nvidia.com>",
        "Subject": "[dpdk-dev] [PATCH v1 22/72] 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": "From: Tal Shnaiderman <talshn@nvidia.com>\n\nFile 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 3dacc6f..f8515d2 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)\n \tbuild = false\n-\treason = 'only supported on Linux'\n+\treason = 'only supported on Linux and Windows'\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 0000000..2b2aa3b\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": [
        "v1",
        "22/72"
    ]
}