]> git.droids-corp.org - dpdk.git/commitdiff
drivers/net: build i40e and mlx5 on Windows
authorPallavi Kadam <pallavi.kadam@intel.com>
Tue, 22 Dec 2020 00:45:11 +0000 (16:45 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 14 Jan 2021 22:51:24 +0000 (23:51 +0100)
Allows i40e and mlx5 PMDs to compile on Windows and disable other drivers.

Disable few i40e warnings with Clang such as comparison of integers of
different signs and macro redefinitions.

Signed-off-by: Pallavi Kadam <pallavi.kadam@intel.com>
Reviewed-by: Ranjit Menon <ranjit.menon@intel.com>
Acked-by: Tal Shnaiderman <talshn@nvidia.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
44 files changed:
drivers/net/af_xdp/meson.build
drivers/net/ark/meson.build
drivers/net/atlantic/meson.build
drivers/net/bnx2x/meson.build
drivers/net/bnxt/meson.build
drivers/net/bonding/meson.build
drivers/net/cxgbe/meson.build
drivers/net/e1000/meson.build
drivers/net/ena/meson.build
drivers/net/enic/meson.build
drivers/net/failsafe/meson.build
drivers/net/fm10k/meson.build
drivers/net/hinic/meson.build
drivers/net/i40e/base/i40e_osdep.h
drivers/net/i40e/i40e_ethdev_vf.c
drivers/net/i40e/i40e_hash.c
drivers/net/i40e/i40e_rxtx_vec_avx2.c
drivers/net/i40e/i40e_tm.c
drivers/net/iavf/meson.build
drivers/net/ice/meson.build
drivers/net/igc/meson.build
drivers/net/ionic/meson.build
drivers/net/ipn3ke/meson.build
drivers/net/ixgbe/meson.build
drivers/net/kni/meson.build
drivers/net/liquidio/meson.build
drivers/net/meson.build
drivers/net/mvneta/meson.build
drivers/net/mvpp2/meson.build
drivers/net/netvsc/meson.build
drivers/net/nfb/meson.build
drivers/net/null/meson.build
drivers/net/octeontx/meson.build
drivers/net/octeontx2/meson.build
drivers/net/pcap/meson.build
drivers/net/qede/meson.build
drivers/net/ring/meson.build
drivers/net/sfc/meson.build
drivers/net/szedata2/meson.build
drivers/net/thunderx/meson.build
drivers/net/txgbe/meson.build
drivers/net/vhost/meson.build
drivers/net/virtio/meson.build
drivers/net/vmxnet3/meson.build

index fead8dd99fc696c330b604a0c74cf0470caba3aa..dce1230365b9dc50e7fceeda2c15abdc50e1a70f 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2019 Intel Corporation
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 sources = files('rte_eth_af_xdp.c')
 
 bpf_dep = dependency('libbpf', required: false)
index 80bce94e1aa02d7227f6f6a6219e57b44734fe89..aea3ba493d1ecd1720df9ba447d94c67fd5ebfef 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Intel Corporation
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 headers = files('rte_pmd_ark.h')
 
 sources = files('ark_ddm.c',
index 60b84684ec0a0e6b6f61242a2cf8bf379235a5bf..01373f868d05911c5ef3dbb7436c7ceee3b1e7bf 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Aquantia Corporation
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 sources = files(
        'atl_rxtx.c',
        'atl_ethdev.c',
index 4892bb234c517d5fd4e41a45746fcaab5e7b3e13..8837ef4247601e372e3c4a9df7039d82b8b09a99 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Intel Corporation
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 dep = dependency('zlib', required: false)
 build = dep.found()
 reason = 'missing dependency, "zlib"'
index 2896337b5da2fb4509cc16f82a179e176135f945..092655697f4a60b5885edb51ba4d16a603fe2e46 100644 (file)
@@ -2,6 +2,12 @@
 # Copyright(c) 2018 Intel Corporation
 # Copyright(c) 2020 Broadcom
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 headers = files('rte_pmd_bnxt.h')
 
 includes += include_directories('tf_ulp')
index adf64626ec3c6b2e2988bd843e4c97f04731edff..4682903a6f56f435456b00c02b44947cbea70f06 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 name = 'bond' #, james bond :-)
 sources = files('rte_eth_bond_api.c', 'rte_eth_bond_pmd.c', 'rte_eth_bond_flow.c',
        'rte_eth_bond_args.c', 'rte_eth_bond_8023ad.c', 'rte_eth_bond_alb.c')
index 3992aba44b1f169335e357423d76a8b4403318a3..52896ea85c427f2595dcfc01c615cc9f13ae2639 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Intel Corporation
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 sources = files('cxgbe_ethdev.c',
        'cxgbe_main.c',
        'cxgbevf_ethdev.c',
index cf456995ccf31e6132141c63503df7789aa1fb1a..43ad52cbc0621de33ce12fb6c50432f9a5b97e77 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 subdir('base')
 objs = [base_objs]
 
index 189903b901db3751fd7d3ffe1a7a8fdc4f8f3020..772fbfc88ec5ff982247c538174610614006986d 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Intel Corporation
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 sources = files('ena_ethdev.c',
        'base/ena_com.c',
        'base/ena_eth_com.c')
index 32c3312e80722c45f1f4603b43076a66361dbeb8..94fcc79c6976f9410de0beb767d43b4555474216 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Cisco Systems, Inc.
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 sources = files(
        'base/vnic_cq.c',
        'base/vnic_dev.c',
index 56010e2120f0aacb765ff5b79c6af65d47b53a17..d8343be63c97bb44de0298620cf5c9354ee7d93e 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Intel Corporation
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 cflags += '-std=gnu99'
 cflags += '-D_DEFAULT_SOURCE'
 cflags += '-D_XOPEN_SOURCE=700'
index 2772ea4dfcf9dddb60c27fbb67f4e9508d8c763b..fa264f489fa2e9ac47e7a671f5d10b3f6c82dc99 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 subdir('base')
 objs = [base_objs]
 
index bc7e246399a6fc570b38a7c586f02edc90fb381a..61ea3954caefe1daaea198b8bdfc4127023d3fbf 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Huawei Technologies Co., Ltd
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 subdir('base')
 objs = [base_objs]
 
index c9287ff255d5e70710657e0de47371b221bf4a16..ec9712c3a7c8db01be056d476aff044d986b86c6 100644 (file)
@@ -20,6 +20,7 @@
 #include <rte_io.h>
 
 #include "../i40e_logs.h"
+#include "i40e_status.h"
 
 #define INLINE inline
 #define STATIC static
@@ -67,6 +68,15 @@ typedef enum i40e_status_code i40e_status;
 #define false           0
 #define true            1
 
+/* Avoid macro redefinition warning on Windows */
+#ifdef RTE_EXEC_ENV_WINDOWS
+#ifdef min
+#undef min
+#endif
+#ifdef max
+#undef max
+#endif
+#endif
 #define min(a,b) RTE_MIN(a,b)
 #define max(a,b) RTE_MAX(a,b)
 
index dc076ae5522a4892f2e5171c3fafcac2bd2ad5c2..346ec29cbe6552e739c36d2709d3c967a2e532fa 100644 (file)
@@ -1505,7 +1505,8 @@ i40evf_handle_aq_msg(struct rte_eth_dev *dev)
                                                       info.msg_len);
                        else {
                                /* read message and it's expected one */
-                               if (msg_opc == vf->pend_cmd) {
+                               if ((volatile uint32_t)msg_opc ==
+                                   vf->pend_cmd) {
                                        vf->cmd_retval = msg_ret;
                                        /* prevent compiler reordering */
                                        rte_compiler_barrier();
index e07f806a49908ae042de1a42692e9069fcc269b1..ae861ab4ff14897cacc8778391761e74bd9d2dfe 100644 (file)
@@ -354,9 +354,10 @@ i40e_hash_get_pattern_type(const struct rte_flow_item pattern[],
                }
 
                /* Check the previous item allows this sub-item. */
-               if (prev_item_type >= RTE_DIM(pattern_next_allow_items) ||
+               if (prev_item_type >= (enum rte_flow_item_type)
+                               RTE_DIM(pattern_next_allow_items) ||
                    !(pattern_next_allow_items[prev_item_type] &
-                   BIT_ULL(pattern->type)))
+                               BIT_ULL(pattern->type)))
                        goto not_sup;
 
                /* For VLAN item, it does no matter about to pattern type
@@ -372,7 +373,8 @@ i40e_hash_get_pattern_type(const struct rte_flow_item pattern[],
                }
 
                prev_item_type = last_item_type;
-               assert(last_item_type < RTE_DIM(pattern_item_header));
+               assert(last_item_type < (enum rte_flow_item_type)
+                               RTE_DIM(pattern_item_header));
                item_hdr = pattern_item_header[last_item_type];
                assert(item_hdr);
 
index fe6ec7deef9cc77b932ffe5f1660e1e3fd9d4822..e5a1deaeb23929afce857ee318a40e23e2734bc0 100644 (file)
@@ -12,7 +12,7 @@
 #include "i40e_rxtx.h"
 #include "i40e_rxtx_vec_common.h"
 
-#include <x86intrin.h>
+#include <rte_vect.h>
 
 #ifndef __INTEL_COMPILER
 #pragma GCC diagnostic ignored "-Wcast-qual"
index 5d722f92c5bb32b4ffed8e4405931a5cd4935fb4..cab296e1a4af58aff18b7a864fafb28dea904b91 100644 (file)
@@ -554,7 +554,7 @@ i40e_node_add(struct rte_eth_dev *dev, uint32_t node_id,
        }
        /* check level */
        if (level_id != RTE_TM_NODE_LEVEL_ID_ANY &&
-           level_id != parent_node_type + 1) {
+           level_id != (uint32_t)parent_node_type + 1) {
                error->type = RTE_TM_ERROR_TYPE_NODE_PARAMS;
                error->message = "Wrong level";
                return -EINVAL;
index 26c02c440119628332d7986ad6ea777e40c6ce06..ac2af81f75c82d8c9cc67814a11054bbdd4a7291 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 cflags += ['-Wno-strict-aliasing']
 
 includes += include_directories('../../common/iavf')
index d58936089b3018043c33d93bfee43bb01902cd7a..9a67c8f7ba9b773bdeb5274536d36ea6896c2766 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Intel Corporation
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 subdir('base')
 objs = [base_objs]
 
index fba119c98e2b593b829e719c9cc0e2422e466eec..b971e6f8c628bf36d51b5a6b62545db89da11fd2 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2019-2020 Intel Corporation
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 subdir('base')
 objs = [base_objs]
 
index 1c6362d27c0da3b4b77f2c1026e07f9b3bda9bcd..631ea27f521db75a99ef8730a3593d3742b11082 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0)
 # Copyright(c) 2019 Pensando
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 sources = files(
        'ionic_mac_api.c',
        'ionic_rx_filter.c',
index d5000d807cc20526e89cc79efbc5b97e77ff953a..65de9d517242679ab0612349af8202609d2b0630 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2019 Intel Corporation
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 #
 # Add the experimenatal APIs called from this PMD
 #  rte_eth_switch_domain_alloc()
index f10437891278bba8c2e8b41877d7c248e977192b..76cbfb830bfcb534b7e85646902f9685bc619f62 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 cflags += ['-DRTE_LIBRTE_IXGBE_BYPASS']
 
 subdir('base')
index d9fa898d1abd88904b445610b945e529faa93292..4d5e5fe368e04c1a58a62bce7b76309f1dc7674c 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Intel Corporation
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 # this driver can be built if-and-only-if KNI library is buildable
 build = dpdk_conf.has('RTE_LIB_KNI')
 reason = 'missing dependency, DPDK KNI library'
index 9ae48e21395cb98955291e7ff16f7a4901fe329a..4965ebe85ff58efd6b62fcabafd45c31b7deaa94 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Intel Corporation
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 sources = files('base/lio_23xx_vf.c',
        'base/lio_mbox.c',
        'lio_ethdev.c',
index 6e4aa6bf3fe934f35210b912b19fb0f8945366e0..4948500aef4a9b0c9dcb48060ea400bbcef190cd 100644 (file)
@@ -1,9 +1,6 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
-if is_windows
-       subdir_done()
-endif
 
 drivers = ['af_packet',
        'af_xdp',
index c887ddc104f3e9040de504267bdb0177c0b400ca..4e073e0d2d8aa8116df49c8b4aebc46a1a4bb2da 100644 (file)
@@ -3,6 +3,12 @@
 # Copyright(c) 2018 Semihalf.
 # All rights reserved.
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 dep = dependency('libmusdk', required: false)
 if not dep.found()
        build = false
index 3015a5559c60546eca6f89b0582097781c41cefc..c509d89164f31e49fce7f6f029f33dc56f6e0a87 100644 (file)
@@ -3,6 +3,12 @@
 # Copyright(c) 2018 Semihalf.
 # All rights reserved.
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 dep = dependency('libmusdk', required: false)
 if not dep.found()
        build = false
index f3f52f7327c0d3563140330eb6d4e790b29e2888..c190124db067c8174f7da5777fdab576f7afd8ef 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Microsoft Corporation
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 build = dpdk_conf.has('RTE_BUS_VMBUS')
 reason = 'missing dependency, DPDK VMBus driver'
 sources = files('hn_ethdev.c', 'hn_rxtx.c', 'hn_rndis.c', 'hn_nvs.c', 'hn_vf.c')
index d53e8eca7d4653fec6ce7c454b858cfb101d044b..42f7921dceb2993c4d9f6793392dc477d6bf5bd9 100644 (file)
@@ -3,6 +3,12 @@
 # Copyright(c) 2019 Netcope Technologies, a.s. <info@netcope.com>
 # All rights reserved.
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 dep = dependency('netcope-common', required: false)
 reason = 'missing dependency, "libnfb"'
 build = dep.found()
index 68ac0d2ae5c837b0a307e9ebd8e37de7b6a12c5a..d9fb88fd7d42bc6fbe64be312b03a5319e77764b 100644 (file)
@@ -1,4 +1,10 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 sources = files('rte_eth_null.c')
index e8d3ff4a3b3dc47d7af3efa62342826317c8882c..4e784b9484a757f97d4b4dfb427c7dc10aec118a 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 subdir('base')
 objs = [base_objs]
 
index 638c04a2fe9d6645c73351fe7eb3ff5aac19e9ab..e2c139a8b64e7818ed8c0b8be3526051b751c53b 100644 (file)
@@ -2,6 +2,12 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 if not dpdk_conf.get('RTE_ARCH_64')
        build = false
        reason = 'only supported on 64-bit'
index b680710aa03eb7c0bdc2411147b482df4b52caed..b65d91e70acbca18d00ef9713959260407d9fa2f 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 if not dpdk_conf.has('RTE_PORT_PCAP')
        build = false
        reason = 'missing dependency, "libpcap"'
index ff0ac0b0355b15fbc7b31747f396a4125d419b3e..05ce69560b3639e48b8c1a0f4bf9ad1304e4b677 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 subdir('base')
 objs = [base_objs]
 
index 26a324eebb4002c8d702406671513a8a74e7965c..fb6a5f7d66201c2bfd086dfab50803adcd71ccd0 100644 (file)
@@ -1,5 +1,11 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 sources = files('rte_eth_ring.c')
 headers = files('rte_eth_ring.h')
index be888bd87abf69d457dcbac88f0b49e28c8ff22e..c3ecdbe19711c15fb44d77614786b8fc33dfb76d 100644 (file)
@@ -6,6 +6,12 @@
 # This software was jointly developed between OKTET Labs (under contract
 # for Solarflare) and Solarflare Communications, Inc.
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 if (arch_subdir != 'x86' or not dpdk_conf.get('RTE_ARCH_64')) and (arch_subdir != 'arm' or not host_machine.cpu_family().startswith('aarch64'))
        build = false
        reason = 'only supported on x86_64 and aarch64'
index b53fcbc591f3ea5fc559a1e8f0f7bc02a515a81a..4c02830b044025e1dcc3c13c6393723bc6cd0fd0 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Intel Corporation
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 dep = dependency('libsze2', required: false)
 build = dep.found()
 reason = 'missing dependency, "libsze2"'
index 69819a97fad630f925342a392fdd810760e847e7..dad5c5924205ae49c17133b86e736293a82005df 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 subdir('base')
 objs = [base_objs]
 
index f6a51a998ef9f58232b954fa63f59979d6935a77..60505e2116f7795deddfdbde3ccd4ceab51bd925 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2015-2020
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 subdir('base')
 objs = [base_objs]
 
index 1ae4854b8fccf5ead591f79a86bb1df4bbb1f81b..804b7a1dd16b2929e5f6b43d4782d49467e80071 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Intel Corporation
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 build = dpdk_conf.has('RTE_LIB_VHOST')
 reason = 'missing dependency, DPDK vhost library'
 sources = files('rte_eth_vhost.c')
index 738d667463533c62ac26a0c3ffffe739282f6dc8..0e78d1243b5d67adf526fb42def86c0542fc12fa 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Intel Corporation
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 sources += files('virtio_ethdev.c',
        'virtio_pci.c',
        'virtio_rxtx.c',
index 0641f776ff4d7f289829f9083b3d595c2ec3b473..124238666c7c4d14ed5200b04a045c2d98fa4e82 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
 
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
+
 sources += files(
        'vmxnet3_ethdev.c',
        'vmxnet3_rxtx.c',