get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 64583,
    "url": "http://patches.dpdk.org/api/patches/64583/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200113215534.10084-4-pallavi.kadam@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": "<20200113215534.10084-4-pallavi.kadam@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200113215534.10084-4-pallavi.kadam@intel.com",
    "date": "2020-01-13T21:55:28",
    "name": "[v5,3/9] eal: add windows compatible header files",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "c69b0d77ccd80c02c9c287d63c7bdf3a16576af7",
    "submitter": {
        "id": 1177,
        "url": "http://patches.dpdk.org/api/people/1177/?format=api",
        "name": "Kadam, Pallavi",
        "email": "pallavi.kadam@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/20200113215534.10084-4-pallavi.kadam@intel.com/mbox/",
    "series": [
        {
            "id": 8090,
            "url": "http://patches.dpdk.org/api/series/8090/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8090",
            "date": "2020-01-13T21:55:25",
            "name": "Windows patchset with additional EAL functionalities",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/8090/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/64583/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/64583/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 07AECA04F1;\n\tMon, 13 Jan 2020 22:56:19 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 987751D173;\n\tMon, 13 Jan 2020 22:55:59 +0100 (CET)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by dpdk.org (Postfix) with ESMTP id 551AC1D162\n for <dev@dpdk.org>; Mon, 13 Jan 2020 22:55:51 +0100 (CET)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 13 Jan 2020 13:55:50 -0800",
            "from win-dpdk-pallavi.jf.intel.com (HELO localhost.localdomain)\n ([10.166.188.58])\n by fmsmga004.fm.intel.com with ESMTP; 13 Jan 2020 13:55:49 -0800"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.69,430,1571727600\"; d=\"scan'208\";a=\"247832495\"",
        "From": "Pallavi Kadam <pallavi.kadam@intel.com>",
        "To": "dev@dpdk.org,\n\tthomas@monjalon.net",
        "Cc": "Harini.Ramakrishnan@microsoft.com, keith.wiles@intel.com,\n bruce.richardson@intel.com, david.marchand@redhat.com,\n jerinjacobk@gmail.com, ranjit.menon@intel.com,\n antara.ganesh.kolar@intel.com, stephen@networkplumber.org,\n pallavi.kadam@intel.com",
        "Date": "Mon, 13 Jan 2020 13:55:28 -0800",
        "Message-Id": "<20200113215534.10084-4-pallavi.kadam@intel.com>",
        "X-Mailer": "git-send-email 2.18.0.windows.1",
        "In-Reply-To": "<20200113215534.10084-1-pallavi.kadam@intel.com>",
        "References": "<20200109031312.6344-1-pallavi.kadam@intel.com>\n <20200113215534.10084-1-pallavi.kadam@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v5 3/9] eal: add windows compatible header files",
        "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": "Modified \\common\\include\\arch\\x86\\rte_vect.h\nto include SSE4 header for Windows.\n\nAdding dlfcn.h on Windows to support common code.\n\nAdding eal_filesystem.h to support functions and\npath defines for files and directories on Windows.\n\nSigned-off-by: Antara Ganesh Kolar <antara.ganesh.kolar@intel.com>\nSigned-off-by: Pallavi Kadam <pallavi.kadam@intel.com>\nReviewed-by: Ranjit Menon <ranjit.menon@intel.com>\nReviewed-by: Keith Wiles <keith.wiles@intel.com>\n---\n .../common/include/arch/x86/rte_vect.h        |  4 +-\n lib/librte_eal/windows/eal/include/dlfcn.h    | 21 ++++\n .../windows/eal/include/eal_filesystem.h      | 99 +++++++++++++++++++\n 3 files changed, 123 insertions(+), 1 deletion(-)\n create mode 100644 lib/librte_eal/windows/eal/include/dlfcn.h\n create mode 100644 lib/librte_eal/windows/eal/include/eal_filesystem.h",
    "diff": "diff --git a/lib/librte_eal/common/include/arch/x86/rte_vect.h b/lib/librte_eal/common/include/arch/x86/rte_vect.h\nindex cf4e9db38..df5a60762 100644\n--- a/lib/librte_eal/common/include/arch/x86/rte_vect.h\n+++ b/lib/librte_eal/common/include/arch/x86/rte_vect.h\n@@ -15,7 +15,9 @@\n #include <rte_config.h>\n #include \"generic/rte_vect.h\"\n \n-#if (defined(__ICC) || (__GNUC__ == 4 &&  __GNUC_MINOR__ < 4))\n+#if (defined(__ICC) || \\\n+\t(defined(_WIN64)) || \\\n+\t(__GNUC__ == 4 &&  __GNUC_MINOR__ < 4))\n \n #include <smmintrin.h> /* SSE4 */\n \ndiff --git a/lib/librte_eal/windows/eal/include/dlfcn.h b/lib/librte_eal/windows/eal/include/dlfcn.h\nnew file mode 100644\nindex 000000000..1572910b0\n--- /dev/null\n+++ b/lib/librte_eal/windows/eal/include/dlfcn.h\n@@ -0,0 +1,21 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2019 Intel Corporation\n+ */\n+\n+#ifndef _DLFCN_H_\n+#define _DLFCN_H_\n+\n+/**\n+ * This file is added to support common code in eal_common_options.c\n+ * as Microsoft libc does not contain dlfcn.h. This may be removed\n+ * in future releases.\n+ */\n+\n+/* The windows port does not currently support dynamic loading of libraries,\n+ * so fail these calls\n+ */\n+#define dlopen(lib, flag)   (0)\n+#define RTLD_NOW 0\n+#define dlerror()           (\"Not supported!\")\n+\n+#endif /* _DLFCN_H_ */\ndiff --git a/lib/librte_eal/windows/eal/include/eal_filesystem.h b/lib/librte_eal/windows/eal/include/eal_filesystem.h\nnew file mode 100644\nindex 000000000..583617c83\n--- /dev/null\n+++ b/lib/librte_eal/windows/eal/include/eal_filesystem.h\n@@ -0,0 +1,99 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2019 Intel Corporation\n+ */\n+\n+/**\n+ * @file\n+ * Stores functions and path defines for files and directories\n+ * on the filesystem for Windows, that are used by the Windows EAL.\n+ */\n+\n+#ifndef EAL_FILESYSTEM_H\n+#define EAL_FILESYSTEM_H\n+\n+#include \"eal_internal_cfg.h\"\n+\n+/* sets up platform-specific runtime data dir */\n+int\n+eal_create_runtime_dir(void);\n+\n+/* returns runtime dir */\n+const char *\n+eal_get_runtime_dir(void);\n+\n+/* define the default filename prefix for the %s values below */\n+#define HUGEFILE_PREFIX_DEFAULT \"rte\"\n+\n+/** Path of rte config file */\n+#define RUNTIME_CONFIG_FMT \"%s\\\\%s.config\"\n+\n+static inline const char *\n+eal_runtime_config_path(void)\n+{\n+\tstatic char buffer[PATH_MAX];  /* static so auto-zeroed */\n+\tchar  Directory[PATH_MAX];\n+\n+\tGetTempPathA(sizeof(Directory), Directory);\n+\tsnprintf(buffer, sizeof(buffer)-1, RUNTIME_CONFIG_FMT, Directory,\n+\t\tinternal_config.hugefile_prefix);\n+\n+\treturn buffer;\n+}\n+\n+/* Path of file backed array */\n+#define FBARRAY_NAME_FMT \"%s\\\\fbarray_%s\"\n+\n+static inline const char *\n+eal_get_fbarray_path(char *buffer, size_t buflen, const char *name) {\n+\tsnprintf(buffer, buflen, FBARRAY_NAME_FMT, eal_get_runtime_dir(), name);\n+\treturn buffer;\n+}\n+\n+/* Path of primary/secondary communication unix socket file. */\n+#define MP_SOCKET_FNAME \"mp_socket\"\n+\n+static inline const char *\n+eal_mp_socket_path(void)\n+{\n+\tstatic char buffer[PATH_MAX]; /* static so auto-zeroed */\n+\n+\tsnprintf(buffer, sizeof(buffer) - 1, \"%s/%s\", eal_get_runtime_dir(),\n+\t\tMP_SOCKET_FNAME);\n+\treturn buffer;\n+}\n+\n+/** Path of hugepage info file */\n+#define HUGEPAGE_INFO_FMT \"%s\\\\.%s_hugepage_info\"\n+\n+static inline const char *\n+eal_hugepage_info_path(void)\n+{\n+\tstatic char buffer[PATH_MAX];  /* static so auto-zeroed */\n+\tTCHAR  Directory[PATH_MAX];\n+\n+\tGetSystemDirectory(Directory, sizeof(Directory));\n+\tsnprintf(buffer, sizeof(buffer)-1, HUGEPAGE_INFO_FMT, Directory,\n+\t\tinternal_config.hugefile_prefix);\n+\treturn buffer;\n+}\n+\n+/** String format for hugepage map files */\n+#define HUGEFILE_FMT \"%s/%smap_%d\"\n+#define TEMP_HUGEFILE_FMT \"%s/%smap_temp_%d\"\n+\n+static inline const char *\n+eal_get_hugefile_path(char *buffer, size_t buflen, const char *hugedir,\n+\tint f_id)\n+{\n+\tsnprintf(buffer, buflen, HUGEFILE_FMT, hugedir,\n+\t\tinternal_config.hugefile_prefix, f_id);\n+\tbuffer[buflen - 1] = '\\0';\n+\treturn buffer;\n+}\n+\n+/** Function to read a single numeric value from a file on the filesystem.\n+ * Used to read information from files on /sys\n+ */\n+int eal_parse_sysfs_value(const char *filename, unsigned long *val);\n+\n+#endif /* EAL_FILESYSTEM_H */\n",
    "prefixes": [
        "v5",
        "3/9"
    ]
}