summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2019-06-05 21:22:41 +0100
committerThomas Monjalon <thomas@monjalon.net>2019-07-02 23:21:11 +0200
commit530588f3cd50d5626cfa2b94e161b97e97d84ade (patch)
tree6805138a3a0aa7e86a15698e3f4ba4f9d28f7968 /drivers/net
parent759a5fb18edef646adac2533c49783294ad87559 (diff)
downloaddpdk-530588f3cd50d5626cfa2b94e161b97e97d84ade.zip
dpdk-530588f3cd50d5626cfa2b94e161b97e97d84ade.tar.gz
dpdk-530588f3cd50d5626cfa2b94e161b97e97d84ade.tar.xz
drivers: add reasons for components being disabled
For each driver where we optionally disable it, add in the reason why it's being disabled, so the user knows how to fix it. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Luca Boccassi <bluca@debian.org>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/af_packet/meson.build1
-rw-r--r--drivers/net/af_xdp/meson.build1
-rw-r--r--drivers/net/avp/meson.build3
-rw-r--r--drivers/net/axgbe/meson.build1
-rw-r--r--drivers/net/bnx2x/meson.build1
-rw-r--r--drivers/net/dpaa/meson.build1
-rw-r--r--drivers/net/dpaa2/meson.build3
-rw-r--r--drivers/net/enetc/meson.build1
-rw-r--r--drivers/net/ifc/meson.build1
-rw-r--r--drivers/net/kni/meson.build1
-rw-r--r--drivers/net/mlx4/meson.build1
-rw-r--r--drivers/net/mlx5/meson.build1
-rw-r--r--drivers/net/mvneta/meson.build1
-rw-r--r--drivers/net/mvpp2/meson.build1
-rw-r--r--drivers/net/netvsc/meson.build1
-rw-r--r--drivers/net/nfb/meson.build1
-rw-r--r--drivers/net/nfp/meson.build3
-rw-r--r--drivers/net/pcap/meson.build1
-rw-r--r--drivers/net/sfc/meson.build1
-rw-r--r--drivers/net/softnic/meson.build3
-rw-r--r--drivers/net/szedata2/meson.build1
-rw-r--r--drivers/net/tap/meson.build3
-rw-r--r--drivers/net/vdev_netvsc/meson.build3
-rw-r--r--drivers/net/vhost/meson.build1
24 files changed, 30 insertions, 6 deletions
diff --git a/drivers/net/af_packet/meson.build b/drivers/net/af_packet/meson.build
index 92c306c..a7f392e 100644
--- a/drivers/net/af_packet/meson.build
+++ b/drivers/net/af_packet/meson.build
@@ -3,5 +3,6 @@
if not is_linux
build = false
+ reason = 'only supported on linux'
endif
sources = files('rte_eth_af_packet.c')
diff --git a/drivers/net/af_xdp/meson.build b/drivers/net/af_xdp/meson.build
index 7904840..ac679b9 100644
--- a/drivers/net/af_xdp/meson.build
+++ b/drivers/net/af_xdp/meson.build
@@ -13,4 +13,5 @@ if bpf_dep.found() and cc.has_header('bpf/xsk.h') and cc.has_header('linux/if_xd
pkgconfig_extra_libs += '-lbpf'
else
build = false
+ reason = 'missing dependency, "libbpf"'
endif
diff --git a/drivers/net/avp/meson.build b/drivers/net/avp/meson.build
index 8138cb2..a5f63cd 100644
--- a/drivers/net/avp/meson.build
+++ b/drivers/net/avp/meson.build
@@ -2,7 +2,8 @@
# Copyright(c) 2018 Intel Corporation
if not is_linux
- build = false
+ build = false
+ reason = 'only supported on linux'
endif
sources = files('avp_ethdev.c')
install_headers('rte_avp_common.h', 'rte_avp_fifo.h')
diff --git a/drivers/net/axgbe/meson.build b/drivers/net/axgbe/meson.build
index 6decb25..86873b7 100644
--- a/drivers/net/axgbe/meson.build
+++ b/drivers/net/axgbe/meson.build
@@ -3,6 +3,7 @@
if not is_linux
build = false
+ reason = 'only supported on linux'
endif
sources = files('axgbe_ethdev.c',
diff --git a/drivers/net/bnx2x/meson.build b/drivers/net/bnx2x/meson.build
index dd189ff..4892bb2 100644
--- a/drivers/net/bnx2x/meson.build
+++ b/drivers/net/bnx2x/meson.build
@@ -3,6 +3,7 @@
dep = dependency('zlib', required: false)
build = dep.found()
+reason = 'missing dependency, "zlib"'
ext_deps += dep
cflags += '-DZLIB_CONST'
sources = files('bnx2x.c',
diff --git a/drivers/net/dpaa/meson.build b/drivers/net/dpaa/meson.build
index 8e5418b..94c0e22 100644
--- a/drivers/net/dpaa/meson.build
+++ b/drivers/net/dpaa/meson.build
@@ -3,6 +3,7 @@
if not is_linux
build = false
+ reason = 'only supported on linux'
endif
deps += ['mempool_dpaa']
diff --git a/drivers/net/dpaa2/meson.build b/drivers/net/dpaa2/meson.build
index a0ea992..7e74c65 100644
--- a/drivers/net/dpaa2/meson.build
+++ b/drivers/net/dpaa2/meson.build
@@ -4,7 +4,8 @@
version = 2
if not is_linux
- build = false
+ build = false
+ reason = 'only supported on linux'
endif
deps += ['mempool_dpaa2']
diff --git a/drivers/net/enetc/meson.build b/drivers/net/enetc/meson.build
index 7d0c2ff..3bc0698 100644
--- a/drivers/net/enetc/meson.build
+++ b/drivers/net/enetc/meson.build
@@ -3,6 +3,7 @@
if not is_linux
build = false
+ reason = 'only supported on linux'
endif
sources = files('enetc_ethdev.c',
diff --git a/drivers/net/ifc/meson.build b/drivers/net/ifc/meson.build
index 72df070..adc9ed9 100644
--- a/drivers/net/ifc/meson.build
+++ b/drivers/net/ifc/meson.build
@@ -2,6 +2,7 @@
# Copyright(c) 2018 Intel Corporation
build = dpdk_conf.has('RTE_LIBRTE_VHOST')
+reason = 'missing dependency, DPDK vhost library'
allow_experimental_apis = true
sources = files('ifcvf_vdpa.c', 'base/ifcvf.c')
includes += include_directories('base')
diff --git a/drivers/net/kni/meson.build b/drivers/net/kni/meson.build
index e3b2d83..0539b47 100644
--- a/drivers/net/kni/meson.build
+++ b/drivers/net/kni/meson.build
@@ -3,5 +3,6 @@
# this driver can be built if-and-only-if KNI library is buildable
build = dpdk_conf.has('RTE_LIBRTE_KNI')
+reason = 'missing dependency, DPDK KNI library'
sources = files('rte_eth_kni.c')
deps += 'kni'
diff --git a/drivers/net/mlx4/meson.build b/drivers/net/mlx4/meson.build
index 2540489..5de04b7 100644
--- a/drivers/net/mlx4/meson.build
+++ b/drivers/net/mlx4/meson.build
@@ -25,6 +25,7 @@ foreach libname:libnames
libs += [ lib ]
else
build = false
+ reason = 'missing dependency, "' + libname + '"'
endif
endforeach
# Compile PMD
diff --git a/drivers/net/mlx5/meson.build b/drivers/net/mlx5/meson.build
index ac3b529..22ddd54 100644
--- a/drivers/net/mlx5/meson.build
+++ b/drivers/net/mlx5/meson.build
@@ -25,6 +25,7 @@ foreach libname:libnames
libs += [ lib ]
else
build = false
+ reason = 'missing dependency, "' + libname + '"'
endif
endforeach
if build
diff --git a/drivers/net/mvneta/meson.build b/drivers/net/mvneta/meson.build
index c0b1bce..8d72027 100644
--- a/drivers/net/mvneta/meson.build
+++ b/drivers/net/mvneta/meson.build
@@ -10,6 +10,7 @@ inc_dir = path + '/include'
lib = cc.find_library('libmusdk', dirs : [lib_dir], required: false)
if not lib.found()
build = false
+ reason = 'missing dependency, "libmusdk"'
else
ext_deps += lib
includes += include_directories(inc_dir)
diff --git a/drivers/net/mvpp2/meson.build b/drivers/net/mvpp2/meson.build
index 70ef2d6..e06edda 100644
--- a/drivers/net/mvpp2/meson.build
+++ b/drivers/net/mvpp2/meson.build
@@ -10,6 +10,7 @@ inc_dir = path + '/include'
lib = cc.find_library('libmusdk', dirs : [lib_dir], required: false)
if not lib.found()
build = false
+ reason = 'missing dependency, "libmusdk"'
else
ext_deps += lib
includes += include_directories(inc_dir)
diff --git a/drivers/net/netvsc/meson.build b/drivers/net/netvsc/meson.build
index c842697..e9fe353 100644
--- a/drivers/net/netvsc/meson.build
+++ b/drivers/net/netvsc/meson.build
@@ -2,6 +2,7 @@
# Copyright(c) 2018 Microsoft Corporation
build = dpdk_conf.has('RTE_LIBRTE_VMBUS_BUS')
+reason = 'missing dependency, DPDK VMBus driver'
version = 2
sources = files('hn_ethdev.c', 'hn_rxtx.c', 'hn_rndis.c', 'hn_nvs.c', 'hn_vf.c')
diff --git a/drivers/net/nfb/meson.build b/drivers/net/nfb/meson.build
index 457955d..4502c3f 100644
--- a/drivers/net/nfb/meson.build
+++ b/drivers/net/nfb/meson.build
@@ -4,6 +4,7 @@
# All rights reserved.
dep = cc.find_library('nfb', required: false)
+reason = 'missing dependency, "libnfb"'
build = dep.found() and cc.has_header('nfb/nfb.h', dependencies: dep)
diff --git a/drivers/net/nfp/meson.build b/drivers/net/nfp/meson.build
index 8c87c5b..b487cdf 100644
--- a/drivers/net/nfp/meson.build
+++ b/drivers/net/nfp/meson.build
@@ -2,7 +2,8 @@
# Copyright(c) 2018 Intel Corporation
if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
- build = false
+ build = false
+ reason = 'only supported on 64-bit linux'
endif
sources = files('nfpcore/nfp_cpp_pcie_ops.c',
'nfpcore/nfp_nsp.c',
diff --git a/drivers/net/pcap/meson.build b/drivers/net/pcap/meson.build
index 2c2fd11..910dfab 100644
--- a/drivers/net/pcap/meson.build
+++ b/drivers/net/pcap/meson.build
@@ -14,6 +14,7 @@ else
pkgconfig_extra_libs += '-lpcap'
else
build = false
+ reason = 'missing dependency, "libpcap"'
endif
endif
sources = files('rte_eth_pcap.c')
diff --git a/drivers/net/sfc/meson.build b/drivers/net/sfc/meson.build
index e675609..4fb0d0a 100644
--- a/drivers/net/sfc/meson.build
+++ b/drivers/net/sfc/meson.build
@@ -8,6 +8,7 @@
if arch_subdir != 'x86' or not dpdk_conf.get('RTE_ARCH_64')
build = false
+ reason = 'only supported on x86_64'
endif
allow_experimental_apis = true
diff --git a/drivers/net/softnic/meson.build b/drivers/net/softnic/meson.build
index dd1d610..9c10c2e 100644
--- a/drivers/net/softnic/meson.build
+++ b/drivers/net/softnic/meson.build
@@ -2,7 +2,8 @@
# Copyright(c) 2018 Intel Corporation
if not is_linux
- build = false
+ build = false
+ reason = 'only supported on linux'
endif
allow_experimental_apis = true
install_headers('rte_eth_softnic.h')
diff --git a/drivers/net/szedata2/meson.build b/drivers/net/szedata2/meson.build
index da37337..032b425 100644
--- a/drivers/net/szedata2/meson.build
+++ b/drivers/net/szedata2/meson.build
@@ -3,5 +3,6 @@
dep = cc.find_library('sze2', required: false)
build = dep.found()
+reason = 'missing dependency, "libsze2"'
ext_deps += dep
sources = files('rte_eth_szedata2.c')
diff --git a/drivers/net/tap/meson.build b/drivers/net/tap/meson.build
index c407a1f..baa70f7 100644
--- a/drivers/net/tap/meson.build
+++ b/drivers/net/tap/meson.build
@@ -2,7 +2,8 @@
# Copyright 2018 Luca Boccassi <bluca@debian.org>
if not is_linux
- build = false
+ build = false
+ reason = 'only supported on linux'
endif
sources = files(
'rte_eth_tap.c',
diff --git a/drivers/net/vdev_netvsc/meson.build b/drivers/net/vdev_netvsc/meson.build
index 6655859..c82c547 100644
--- a/drivers/net/vdev_netvsc/meson.build
+++ b/drivers/net/vdev_netvsc/meson.build
@@ -2,7 +2,8 @@
# Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
if not is_linux
- build = false
+ build = false
+ reason = 'only supported on linux'
endif
sources = files('vdev_netvsc.c')
diff --git a/drivers/net/vhost/meson.build b/drivers/net/vhost/meson.build
index 9b067c3..9532a76 100644
--- a/drivers/net/vhost/meson.build
+++ b/drivers/net/vhost/meson.build
@@ -2,6 +2,7 @@
# Copyright(c) 2018 Intel Corporation
build = dpdk_conf.has('RTE_LIBRTE_VHOST')
+reason = 'missing dependency, DPDK vhost library'
version = 2
sources = files('rte_eth_vhost.c')
install_headers('rte_eth_vhost.h')