Show a patch.

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

{
    "id": 73516,
    "url": "https://patches.dpdk.org/api/patches/73516/",
    "web_url": "https://patches.dpdk.org/patch/73516/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<20200708082525.28504-4-fady@mellanox.com>",
    "date": "2020-07-08T08:25:25",
    "name": "[v3,3/3] eal/windows: librte_net build on Windows",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "db0cdbba11013347173f8feeda83e69f6ae59d3f",
    "submitter": {
        "id": 1650,
        "url": "https://patches.dpdk.org/api/people/1650/",
        "name": "Fady Bader",
        "email": "fady@mellanox.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/patch/73516/mbox/",
    "series": [
        {
            "id": 10882,
            "url": "https://patches.dpdk.org/api/series/10882/",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=10882",
            "date": "2020-07-08T08:25:22",
            "name": "compile librte_net for windows",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/10882/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/73516/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/73516/checks/",
    "tags": {},
    "headers": {
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Message-Id": "<20200708082525.28504-4-fady@mellanox.com>",
        "X-Mailer": "git-send-email 2.16.1.windows.4",
        "To": "dev@dpdk.org",
        "Cc": "thomas@monjalon.net, tbashar@mellanox.com, talshn@mellanox.com,\n yohadt@mellanox.com, dmitry.kozliuk@gmail.com,\n harini.ramakrishnan@microsoft.com, ocardona@microsoft.com,\n pallavi.kadam@intel.com, ranjit.menon@intel.com, olivier.matz@6wind.com",
        "X-BeenThere": "dev@dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 664D1A00BE;\n\tWed,  8 Jul 2020 10:25:51 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id EA1541DC53;\n\tWed,  8 Jul 2020 10:25:44 +0200 (CEST)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id EBCEF1DC34\n for <dev@dpdk.org>; Wed,  8 Jul 2020 10:25:41 +0200 (CEST)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n fady@mellanox.com) with SMTP; 8 Jul 2020 11:25:36 +0300",
            "from l-wincomp04-vm.labs.mlnx (l-wincomp04-vm.mtl.labs.mlnx\n [10.237.1.5])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 0688PamK026821;\n Wed, 8 Jul 2020 11:25:36 +0300"
        ],
        "Subject": "[dpdk-dev] [PATCH v3 3/3] eal/windows: librte_net build on Windows",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "In-Reply-To": "<20200708082525.28504-1-fady@mellanox.com>",
        "Precedence": "list",
        "From": "Fady Bader <fady@mellanox.com>",
        "References": "<20200610120040.17968-1-fady@mellanox.com>\n <20200708082525.28504-1-fady@mellanox.com>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Errors-To": "dev-bounces@dpdk.org",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Date": "Wed,  8 Jul 2020 11:25:25 +0300",
        "X-Mailman-Version": "2.1.15",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>"
    },
    "content": "librte_net wasn't compiling under Windows.\nTo solve this, needed exports and files were added for Windows.\n\nSigned-off-by: Fady Bader <fady@mellanox.com>\n---\n lib/librte_eal/common/meson.build           |  1 +\n lib/librte_eal/rte_eal_exports.def          |  1 +\n lib/librte_eal/windows/include/netinet/in.h | 25 +++++++++++++++++++++++++\n lib/librte_eal/windows/include/netinet/ip.h | 12 ++++++++++++\n lib/meson.build                             |  2 +-\n 5 files changed, 40 insertions(+), 1 deletion(-)\n create mode 100644 lib/librte_eal/windows/include/netinet/in.h\n create mode 100644 lib/librte_eal/windows/include/netinet/ip.h",
    "diff": "diff --git a/lib/librte_eal/common/meson.build b/lib/librte_eal/common/meson.build\nindex c1d9f21488..f7a2f798e3 100644\n--- a/lib/librte_eal/common/meson.build\n+++ b/lib/librte_eal/common/meson.build\n@@ -31,6 +31,7 @@ if is_windows\n \t\t'malloc_heap.c',\n \t\t'rte_malloc.c',\n \t\t'eal_common_timer.c',\n+\t\t'rte_random.c',\n \t)\n \tsubdir_done()\n endif\ndiff --git a/lib/librte_eal/rte_eal_exports.def b/lib/librte_eal/rte_eal_exports.def\nindex 69204a92c6..cb53f2427b 100644\n--- a/lib/librte_eal/rte_eal_exports.def\n+++ b/lib/librte_eal/rte_eal_exports.def\n@@ -145,3 +145,4 @@ EXPORTS\n \trte_mem_map\n \trte_mem_page_size\n \trte_mem_unmap\n+\trte_rand\ndiff --git a/lib/librte_eal/windows/include/netinet/in.h b/lib/librte_eal/windows/include/netinet/in.h\nnew file mode 100644\nindex 0000000000..489b587c39\n--- /dev/null\n+++ b/lib/librte_eal/windows/include/netinet/in.h\n@@ -0,0 +1,25 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright 2020 Mellanox Technologies, Ltd\n+ */\n+\n+#ifndef _IN_H_\n+#define _IN_H_\n+\n+#define IPPROTO_IP 0\n+#define IPPROTO_HOPOPTS 0\n+#define\tIPPROTO_IPV4 4             /* IPv4 encapsulation */\n+#define\tIPPROTO_IPIP IPPROTO_IPV4  /* for compatibility */\n+#define IPPROTO_TCP 6\n+#define IPPROTO_UDP 17\n+#define\tIPPROTO_IPV6 41\t           /* IP6 header */\n+#define\tIPPROTO_ROUTING 43         /* IP6 routing header */\n+#define\tIPPROTO_FRAGMENT 44        /* IP6 fragmentation header */\n+#define\tIPPROTO_GRE 47             /* General Routing Encap. */\n+#define\tIPPROTO_ESP 50             /* IP6 Encap Sec. Payload */\n+#define\tIPPROTO_AH 51              /* IP6 Auth Header */\n+#define IPPROTO_NONE 59            /* IPv6 no next header */\n+#define\tIPPROTO_DSTOPTS 60         /* IP6 destination option */\n+#define IPPROTO_SCTP 132           /* Stream Control Transmission Protocol */\n+\n+\n+#endif\ndiff --git a/lib/librte_eal/windows/include/netinet/ip.h b/lib/librte_eal/windows/include/netinet/ip.h\nnew file mode 100644\nindex 0000000000..4f212961ff\n--- /dev/null\n+++ b/lib/librte_eal/windows/include/netinet/ip.h\n@@ -0,0 +1,12 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright 2020 Mellanox Technologies, Ltd\n+ * this needs to be changed waiting for Microsoft team to respond\n+ */\n+\n+#ifndef _IP_H_\n+#define _IP_H_\n+\n+#define\tIPVERSION 4\n+\n+\n+#endif\ndiff --git a/lib/meson.build b/lib/meson.build\nindex 3852c01564..6bbaf242a9 100644\n--- a/lib/meson.build\n+++ b/lib/meson.build\n@@ -40,7 +40,7 @@ if is_windows\n \t\t'kvargs',\n \t\t'eal',\n \t\t'ring',\n-\t\t'mempool', 'mbuf', 'pci',\n+\t\t'mempool', 'mbuf', 'pci', 'net',\n \t] # only supported libraries for windows\n endif\n \n",
    "prefixes": [
        "v3",
        "3/3"
    ]
}