build: disable experimental API check internally

Remove setting ALLOW_EXPERIMENTAL_API individually for each Makefile and
meson.build. Instead, enable ALLOW_EXPERIMENTAL_API flag across app, lib
and drivers.
This changes reduces the clutter across the project while still
maintaining the functionality of ALLOW_EXPERIMENTAL_API i.e. warning
external applications about experimental API usage.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Signed-off-by: David Marchand <david.marchand@redhat.com>
This commit is contained in:
Pavan Nikhilesh 2020-04-13 16:55:30 +02:00 committed by David Marchand
parent 2a41db7589
commit acec04c4b2
240 changed files with 9 additions and 395 deletions

View file

@ -22,12 +22,11 @@ apps = [
# for BSD only
lib_execinfo = cc.find_library('execinfo', required: false)
default_cflags = machine_args
default_cflags = machine_args + ['-DALLOW_EXPERIMENTAL_API']
foreach app:apps
build = true
name = app
allow_experimental_apis = false
sources = []
includes = []
cflags = default_cflags
@ -54,10 +53,6 @@ foreach app:apps
link_libs = dpdk_static_libraries + dpdk_drivers
endif
if allow_experimental_apis
cflags += '-DALLOW_EXPERIMENTAL_API'
endif
executable('dpdk-' + name,
sources,
c_args: cflags,

View file

@ -8,7 +8,6 @@ include $(RTE_SDK)/mk/rte.vars.mk
#
APP = testbbdev
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)

View file

@ -5,7 +5,6 @@ sources = files('main.c',
'test_bbdev.c',
'test_bbdev_perf.c',
'test_bbdev_vector.c')
allow_experimental_apis = true
deps += ['bbdev', 'bus_vdev']
if dpdk_conf.has('RTE_LIBRTE_PMD_BBDEV_FPGA_LTE_FEC')
deps += ['pmd_bbdev_fpga_lte_fec']

View file

@ -6,7 +6,6 @@ include $(RTE_SDK)/mk/rte.vars.mk
APP = dpdk-test-compress-perf
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O3
# all source are stored in SRCS-y

View file

@ -1,7 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 Intel Corporation
allow_experimental_apis = true
sources = files('comp_perf_options_parse.c',
'main.c',
'comp_perf_test_verify.c',

View file

@ -7,7 +7,6 @@ include $(RTE_SDK)/mk/rte.vars.mk
APP = dpdk-test-crypto-perf
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O3
# all source are stored in SRCS-y

View file

@ -1,7 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 Intel Corporation
allow_experimental_apis = true
sources = files('cperf_ops.c',
'cperf_options_parsing.c',
'cperf_test_common.c',

View file

@ -9,7 +9,6 @@ APP = testfib
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
# all source are stored in SRCS-y
SRCS-y := main.c

View file

@ -1,6 +1,5 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2019 Intel Corporation
allow_experimental_apis = true
sources = files('main.c')
deps += ['fib', 'lpm', 'net']

View file

@ -10,7 +10,6 @@ ifeq ($(CONFIG_RTE_TEST_PMD),y)
#
APP = testpmd
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -Wno-deprecated-declarations

View file

@ -3,7 +3,6 @@
# override default name to drop the hyphen
name = 'testpmd'
allow_experimental_apis = true
cflags += '-Wno-deprecated-declarations'
sources = files('cmdline.c',
'cmdline_flow.c',

View file

@ -8,7 +8,6 @@ ifeq ($(CONFIG_RTE_LIBRTE_IPSEC),y)
APP = testsad
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
# all source are stored in SRCS-y
SRCS-y := main.c

View file

@ -1,6 +1,5 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2019 Intel Corporation
allow_experimental_apis = true
sources = files('main.c')
deps += ['ipsec', 'net']

View file

@ -237,8 +237,6 @@ ifeq ($(CONFIG_RTE_LIBRTE_IPSEC),y)
LDLIBS += -lrte_ipsec
endif
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)

View file

@ -355,7 +355,6 @@ if dpdk_conf.has('RTE_LIBRTE_PDUMP')
test_deps += 'pdump'
endif
cflags = machine_args
if cc.has_argument('-Wno-format-truncation')
cflags += '-Wno-format-truncation'
endif
@ -393,7 +392,7 @@ dpdk_test = executable('dpdk-test',
test_sources,
link_whole: link_libs,
dependencies: test_dep_objs,
c_args: [cflags, '-DALLOW_EXPERIMENTAL_API'],
c_args: cflags,
install_rpath: driver_install_path,
install: true)

View file

@ -842,12 +842,6 @@ sources
The optional fields are:
allow_experimental_apis
**Default Value = false**
Used to allow the library to make use of APIs marked as experimental.
Set to ``true`` if the C files in the library call any functions
marked as experimental in any included header files.
build
**Default Value = true**
Used to optionally compile a library, based on its dependencies or
@ -960,9 +954,6 @@ Meson Build File Contents - Drivers
For drivers, the values are largely the same as for libraries. The variables
supported are:
allow_experimental_apis
As above.
build
As above.

View file

@ -7,7 +7,6 @@ include $(RTE_SDK)/mk/rte.vars.mk
LIB = librte_pmd_bbdev_fpga_lte_fec.a
# build flags
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring

View file

@ -2,5 +2,4 @@
# Copyright(c) 2019 Intel Corporation
deps += ['bbdev', 'bus_vdev', 'ring', 'pci', 'bus_pci']
allow_experimental_apis = true
sources = files('fpga_lte_fec.c')

View file

@ -6,7 +6,6 @@ include $(RTE_SDK)/mk/rte.vars.mk
LIB = librte_pmd_bbdev_null.a
# build flags
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring -lrte_kvargs

View file

@ -2,5 +2,4 @@
# Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
deps += ['bbdev', 'bus_vdev', 'ring']
allow_experimental_apis = true
sources = files('bbdev_null.c')

View file

@ -7,7 +7,6 @@ include $(RTE_SDK)/mk/rte.vars.mk
LIB = librte_pmd_bbdev_turbo_sw.a
# build flags
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring -lrte_kvargs

View file

@ -36,5 +36,4 @@ if dpdk_conf.has('RTE_BBDEV_SDK_AVX512')
endif
deps += ['bbdev', 'bus_vdev', 'ring']
allow_experimental_apis = true
sources = files('bbdev_turbo_software.c')

View file

@ -9,7 +9,6 @@ RTE_BUS_DPAA=$(RTE_SDK)/drivers/bus/dpaa
#
LIB = librte_bus_dpaa.a
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS := -I$(SRCDIR) $(CFLAGS)
CFLAGS += -O3 $(WERROR_FLAGS)
CFLAGS += -Wno-pointer-arith

View file

@ -19,8 +19,6 @@ sources = files('base/fman/fman.c',
'base/qbman/qman_driver.c',
'dpaa_bus.c')
allow_experimental_apis = true
if cc.has_argument('-Wno-cast-qual')
cflags += '-Wno-cast-qual'
endif

View file

@ -9,7 +9,6 @@ include $(RTE_SDK)/mk/rte.vars.mk
#
LIB = librte_bus_fslmc.a
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)

View file

@ -22,6 +22,4 @@ sources = files('fslmc_bus.c',
'qbman/qbman_portal.c',
'qbman/qbman_debug.c')
allow_experimental_apis = true
includes += include_directories('mc', 'qbman/include', 'portal')

View file

@ -8,7 +8,6 @@ include $(RTE_SDK)/mk/rte.vars.mk
#
LIB = librte_bus_ifpga.a
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
LDLIBS += -lrte_eal

View file

@ -4,5 +4,3 @@
deps += ['pci', 'kvargs', 'rawdev']
install_headers('rte_bus_ifpga.h')
sources = files('ifpga_common.c', 'ifpga_bus.c')
allow_experimental_apis = true

View file

@ -8,7 +8,6 @@ EXPORT_MAP := rte_bus_pci_version.map
CFLAGS := -I$(SRCDIR) $(CFLAGS)
CFLAGS += -O3 $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),)
SYSTEM := linux
@ -20,9 +19,6 @@ endif
CFLAGS += -I$(RTE_SDK)/drivers/bus/pci/$(SYSTEM)
CFLAGS += -I$(RTE_SDK)/lib/librte_eal/common
# memseg walk is not part of stable API yet
CFLAGS += -DALLOW_EXPERIMENTAL_API
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
LDLIBS += -lrte_pci -lrte_kvargs

View file

@ -16,7 +16,4 @@ else
includes += include_directories('bsd')
endif
# memseg walk is not part of stable API yet
allow_experimental_apis = true
deps += ['kvargs']

View file

@ -10,7 +10,6 @@ LIB = librte_bus_vdev.a
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
# versioning export map
EXPORT_MAP := rte_bus_vdev_version.map

View file

@ -5,6 +5,4 @@ sources = files('vdev.c',
'vdev_params.c')
install_headers('rte_bus_vdev.h')
allow_experimental_apis = true
deps += ['kvargs']

View file

@ -7,7 +7,6 @@ EXPORT_MAP := rte_bus_vmbus_version.map
CFLAGS += -I$(SRCDIR)
CFLAGS += -O3 $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),)
SYSTEM := linux

View file

@ -1,7 +1,5 @@
# SPDX-License-Identifier: BSD-3-Clause
allow_experimental_apis = true
install_headers('rte_bus_vmbus.h','rte_vmbus_reg.h')
sources = files('vmbus_common.c',

View file

@ -6,4 +6,3 @@ sources = files('cpt_fpm_tables.c',
deps = ['kvargs', 'pci', 'cryptodev']
includes += include_directories('../../crypto/octeontx')
allow_experimental_apis = true

View file

@ -9,7 +9,6 @@ include $(RTE_SDK)/mk/rte.vars.mk
#
LIB = librte_common_dpaax.a
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -Wno-pointer-arith

View file

@ -1,8 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 NXP
allow_experimental_apis = true
if not is_linux
build = false
reason = 'only supported on linux'

View file

@ -8,7 +8,6 @@ include $(RTE_SDK)/mk/rte.vars.mk
#
LIB = librte_common_iavf.a
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -Wno-pointer-arith

View file

@ -1,8 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2019 Intel Corporation
allow_experimental_apis = true
sources = files('iavf_adminq.c', 'iavf_common.c', 'iavf_impl.c')
if cc.has_argument('-Wno-pointer-to-int-cast')

View file

@ -49,7 +49,6 @@ if static_ibverbs
ext_deps += declare_dependency(link_args:ibv_ldflags.split())
endif
allow_experimental_apis = true
deps += ['hash', 'pci', 'net', 'eal', 'kvargs']
sources = files(
'mlx5_devx_cmds.c',

View file

@ -13,7 +13,6 @@ CFLAGS += $(WERROR_FLAGS)
CFLAGS += -I$(RTE_SDK)/drivers/common/octeontx2
CFLAGS += -I$(RTE_SDK)/drivers/mempool/octeontx2
CFLAGS += -I$(RTE_SDK)/drivers/bus/pci
CFLAGS += -DALLOW_EXPERIMENTAL_API
ifneq ($(CONFIG_RTE_ARCH_64),y)
CFLAGS += -Wno-int-to-pointer-cast

View file

@ -2,8 +2,6 @@
# Copyright(C) 2019 Marvell International Ltd.
#
allow_experimental_apis = true
sources= files('otx2_dev.c',
'otx2_irq.c',
'otx2_mbox.c',

View file

@ -16,7 +16,6 @@ CFLAGS += -I$(QAT_COMPRESS_DIR)
ifeq ($(CONFIG_RTE_LIBRTE_COMPRESSDEV),y)
CFLAGS += -DALLOW_EXPERIMENTAL_API
LDLIBS += -lrte_compressdev
SRCS-y += qat_comp.c
SRCS-y += qat_comp_pmd.c

View file

@ -9,7 +9,6 @@ LIB = librte_pmd_isal_comp.a
# build flags
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
# external library dependencies
LDLIBS += -lisal

View file

@ -10,5 +10,3 @@ endif
deps += 'bus_vdev'
sources = files('isal_compress_pmd.c', 'isal_compress_pmd_ops.c')
ext_deps += dep
allow_experimental_apis = true

View file

@ -9,7 +9,6 @@ LIB = librte_pmd_octeontx_zip.a
# build flags
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -O3
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -I$(RTE_SDK)/drivers/compress/octeontx/include
# external library include paths

View file

@ -3,7 +3,6 @@
name = 'octeontx_compress'
sources = files('otx_zip.c', 'otx_zip_pmd.c')
allow_experimental_apis = true
includes += include_directories('include')
deps += ['mempool_octeontx', 'bus_pci']
ext_deps += dep

View file

@ -3,7 +3,6 @@
# Add our sources files to the list
allow_experimental_apis = true
qat_sources += files('qat_comp_pmd.c',
'qat_comp.c')
qat_includes += include_directories('.')

View file

@ -9,7 +9,6 @@ LIB = librte_pmd_zlib.a
# build flags
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
# versioning export map
EXPORT_MAP := rte_pmd_zlib_version.map

View file

@ -10,5 +10,3 @@ endif
deps += 'bus_vdev'
sources = files('zlib_pmd.c', 'zlib_pmd_ops.c')
ext_deps += dep
allow_experimental_apis = true

View file

@ -8,7 +8,6 @@ LIB = librte_pmd_aesni_gcm.a
# build flags
CFLAGS += -O3
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += $(WERROR_FLAGS)
# versioning export map

View file

@ -20,6 +20,5 @@ else
endif
endif
allow_experimental_apis = true
sources = files('aesni_gcm_pmd.c', 'aesni_gcm_pmd_ops.c')
deps += ['bus_vdev']

View file

@ -9,7 +9,6 @@ LIB = librte_pmd_aesni_mb.a
# build flags
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
# versioning export map
EXPORT_MAP := rte_pmd_aesni_mb_version.map

View file

@ -22,5 +22,4 @@ else
endif
sources = files('rte_aesni_mb_pmd.c', 'rte_aesni_mb_pmd_ops.c')
allow_experimental_apis = true
deps += ['bus_vdev']

View file

@ -24,7 +24,6 @@ EXPORT_MAP := rte_pmd_armv8_version.map
# external library dependencies
CFLAGS += -I$(ARMV8_CRYPTO_LIB_PATH)
CFLAGS += -DALLOW_EXPERIMENTAL_API
LDLIBS += -L$(ARMV8_CRYPTO_LIB_PATH) -lAArch64crypto
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
LDLIBS += -lrte_cryptodev

View file

@ -22,4 +22,3 @@ endif
deps += ['bus_vdev']
sources = files('rte_armv8_pmd.c', 'rte_armv8_pmd_ops.c')
allow_experimental_apis = true

View file

@ -9,8 +9,6 @@ include $(RTE_SDK)/mk/rte.vars.mk
LIB = librte_pmd_caam_jr.a
# build flags
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -D _GNU_SOURCE
CFLAGS += -O3

View file

@ -12,8 +12,6 @@ sources = files('caam_jr_capabilities.c',
'caam_jr_uio.c',
'caam_jr.c')
allow_experimental_apis = true
includes += include_directories('../../bus/dpaa/include/')
includes += include_directories('../../common/dpaax/')
includes += include_directories('../../common/dpaax/caamflib/')

View file

@ -10,7 +10,6 @@ include $(RTE_SDK)/mk/rte.vars.mk
LIB = librte_pmd_dpaa2_sec.a
# build flags
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)

View file

@ -10,6 +10,4 @@ deps += ['security', 'mempool_dpaa2']
sources = files('dpaa2_sec_dpseci.c',
'mc/dpseci.c')
allow_experimental_apis = true
includes += include_directories('mc', '../../common/dpaax', '../../common/dpaax/caamflib')

View file

@ -10,7 +10,6 @@ include $(RTE_SDK)/mk/rte.vars.mk
LIB = librte_pmd_dpaa_sec.a
# build flags
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)

View file

@ -9,8 +9,6 @@ endif
deps += ['bus_dpaa', 'mempool_dpaa', 'security']
sources = files('dpaa_sec.c')
allow_experimental_apis = true
includes += include_directories('../../bus/dpaa/include')
includes += include_directories('../../common/dpaax')
includes += include_directories('../../common/dpaax/caamflib/')

View file

@ -9,7 +9,6 @@ LIB = librte_pmd_kasumi.a
# build flags
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
# versioning export map
EXPORT_MAP := rte_pmd_kasumi_version.map

View file

@ -19,7 +19,6 @@ else
endif
allow_experimental_apis = true
ext_deps += lib
sources = files('rte_kasumi_pmd.c', 'rte_kasumi_pmd_ops.c')
deps += ['bus_vdev']

View file

@ -9,7 +9,6 @@ LIB = librte_pmd_nitrox.a
# build flags
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
# versioning export map
EXPORT_MAP := rte_pmd_nitrox_version.map

View file

@ -7,7 +7,6 @@ if not is_linux
endif
deps += ['bus_pci']
allow_experimental_apis = true
sources = files(
'nitrox_device.c',
'nitrox_hal.c',

View file

@ -19,7 +19,6 @@ VPATH += $(RTE_SDK)/drivers/crypto/octeontx
CFLAGS += -O3
CFLAGS += -I$(RTE_SDK)/drivers/common/cpt
CFLAGS += -DALLOW_EXPERIMENTAL_API
# PMD code
SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_CRYPTO) += otx_cryptodev.c

View file

@ -9,7 +9,6 @@ deps += ['bus_pci']
deps += ['common_cpt']
name = 'octeontx_crypto'
allow_experimental_apis = true
sources = files('otx_cryptodev.c',
'otx_cryptodev_capabilities.c',
'otx_cryptodev_hw_access.c',

View file

@ -23,7 +23,6 @@ CFLAGS += -I$(RTE_SDK)/drivers/common/octeontx2
CFLAGS += -I$(RTE_SDK)/drivers/crypto/octeontx2
CFLAGS += -I$(RTE_SDK)/drivers/mempool/octeontx2
CFLAGS += -I$(RTE_SDK)/drivers/net/octeontx2
CFLAGS += -DALLOW_EXPERIMENTAL_API
ifneq ($(CONFIG_RTE_ARCH_64),y)
CFLAGS += -Wno-int-to-pointer-cast

View file

@ -12,7 +12,6 @@ deps += ['ethdev']
deps += ['security']
name = 'octeontx2_crypto'
allow_experimental_apis = true
sources = files('otx2_cryptodev.c',
'otx2_cryptodev_capabilities.c',
'otx2_cryptodev_hw_access.c',

View file

@ -9,7 +9,6 @@ LIB = librte_pmd_openssl.a
# build flags
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
# versioning export map
EXPORT_MAP := rte_pmd_openssl_version.map

View file

@ -6,7 +6,6 @@ if not dep.found()
build = false
reason = 'missing dependency, "libcrypto"'
endif
allow_experimental_apis = true
deps += 'bus_vdev'
sources = files('rte_openssl_pmd.c', 'rte_openssl_pmd_ops.c')
ext_deps += dep

View file

@ -9,7 +9,6 @@ LIB = librte_pmd_snow3g.a
# build flags
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
# versioning export map
EXPORT_MAP := rte_pmd_snow3g_version.map

View file

@ -19,7 +19,6 @@ else
endif
allow_experimental_apis = true
ext_deps += lib
sources = files('rte_snow3g_pmd.c', 'rte_snow3g_pmd_ops.c')
deps += ['bus_vdev', 'cryptodev']

View file

@ -9,7 +9,6 @@ LIB = librte_pmd_zuc.a
# build flags
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
# versioning export map
EXPORT_MAP := rte_pmd_zuc_version.map

View file

@ -19,7 +19,6 @@ else
endif
allow_experimental_apis = true
ext_deps += lib
sources = files('rte_zuc_pmd.c', 'rte_zuc_pmd_ops.c')
deps += ['bus_vdev']

View file

@ -10,7 +10,6 @@ RTE_SDK_DPAA=$(RTE_SDK)/drivers/net/dpaa
#
LIB = librte_pmd_dpaa_event.a
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS := -I$(SRCDIR) $(CFLAGS)
CFLAGS += -O3 $(WERROR_FLAGS)
CFLAGS += -Wno-pointer-arith

View file

@ -8,5 +8,4 @@ endif
deps += ['pmd_dpaa', 'pmd_dpaa_sec']
sources = files('dpaa_eventdev.c')
allow_experimental_apis = true
includes += include_directories('../../crypto/dpaa_sec/')

View file

@ -31,9 +31,6 @@ CFLAGS += -I$(RTE_SDK)/drivers/crypto/dpaa2_sec
# versioning export map
EXPORT_MAP := rte_pmd_dpaa2_event_version.map
# depends on fslmc bus which uses experimental API
CFLAGS += -DALLOW_EXPERIMENTAL_API
#
# all source are stored in SRCS-y
#

View file

@ -10,5 +10,4 @@ sources = files('dpaa2_hw_dpcon.c',
'dpaa2_eventdev.c',
'dpaa2_eventdev_selftest.c')
allow_experimental_apis = true
includes += include_directories('../../crypto/dpaa2_sec/')

View file

@ -11,9 +11,6 @@ ifneq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
CFLAGS += -Wno-format-nonliteral
endif
# Depends on rte_ring_elem_*()
CFLAGS += -DALLOW_EXPERIMENTAL_API
LDLIBS += -lrte_eal
LDLIBS += -lrte_mbuf
LDLIBS += -lrte_mempool

View file

@ -6,6 +6,3 @@ if cc.has_argument('-Wno-format-nonliteral')
cflags += '-Wno-format-nonliteral'
endif
sources = files('dsw_evdev.c', 'dsw_event.c', 'dsw_xstats.c')
# Depends on rte_ring_elem_*()
allow_experimental_apis = true

View file

@ -16,7 +16,6 @@ CFLAGS += -I$(RTE_SDK)/drivers/mempool/octeontx2
CFLAGS += -I$(RTE_SDK)/drivers/event/octeontx2
CFLAGS += -I$(RTE_SDK)/drivers/net/octeontx2
CFLAGS += -O3
CFLAGS += -DALLOW_EXPERIMENTAL_API
ifneq ($(CONFIG_RTE_ARCH_64),y)
CFLAGS += -Wno-int-to-pointer-cast

View file

@ -12,8 +12,6 @@ sources = files('otx2_worker.c',
'otx2_tim_worker.c'
)
allow_experimental_apis = true
extra_flags = []
# This integrated controller runs only on a arm64 machine, remove 32bit warnings
if not dpdk_conf.get('RTE_ARCH_64')

View file

@ -9,7 +9,6 @@ LIB = librte_pmd_opdl_event.a
# build flags
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
LDLIBS += -lrte_eal -lrte_eventdev -lrte_kvargs
LDLIBS += -lrte_bus_vdev -lrte_mbuf -lrte_mempool

View file

@ -1,7 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
allow_experimental_apis = true
sources = files(
'opdl_evdev.c',
'opdl_evdev_init.c',

View file

@ -15,7 +15,6 @@ LIB = librte_mempool_bucket.a
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
LDLIBS += -lrte_eal -lrte_mempool -lrte_ring

View file

@ -6,6 +6,4 @@
# This software was jointly developed between OKTET Labs (under contract
# for Solarflare) and Solarflare Communications, Inc.
allow_experimental_apis = true
sources = files('rte_mempool_bucket.c')

View file

@ -19,9 +19,6 @@ CFLAGS += -I$(RTE_SDK)/lib/librte_mempool
# versioning export map
EXPORT_MAP := rte_mempool_dpaa_version.map
# depends on dpaa bus which uses experimental API
CFLAGS += -DALLOW_EXPERIMENTAL_API
# all source are stored in SRCS-y
#
SRCS-$(CONFIG_RTE_LIBRTE_DPAA_MEMPOOL) += dpaa_mempool.c

View file

@ -8,6 +8,3 @@ endif
deps += ['bus_dpaa']
sources = files('dpaa_mempool.c')
# depends on dpaa bus which uses experimental API
allow_experimental_apis = true

View file

@ -18,9 +18,6 @@ CFLAGS += -I$(RTE_SDK)/drivers/bus/fslmc/qbman/include
# versioning export map
EXPORT_MAP := rte_mempool_dpaa2_version.map
# depends on fslmc bus which uses experimental API
CFLAGS += -DALLOW_EXPERIMENTAL_API
# all source are stored in SRCS-y
#
SRCS-$(CONFIG_RTE_LIBRTE_DPAA2_MEMPOOL) += dpaa2_hw_mempool.c

View file

@ -8,6 +8,3 @@ endif
deps += ['bus_fslmc']
sources = files('dpaa2_hw_mempool.c')
# depends on fslmc bus which uses experimental API
allow_experimental_apis = true

View file

@ -11,7 +11,6 @@ LIB = librte_mempool_octeontx.a
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -I$(RTE_SDK)/drivers/common/octeontx/
CFLAGS += -DALLOW_EXPERIMENTAL_API
EXPORT_MAP := rte_mempool_octeontx_version.map

View file

@ -1,8 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Cavium, Inc
allow_experimental_apis = true
sources = files('octeontx_fpavf.c',
'rte_mempool_octeontx.c'
)

View file

@ -23,8 +23,6 @@ CFLAGS += -diag-disable 2259
endif
endif
CFLAGS += -DALLOW_EXPERIMENTAL_API
EXPORT_MAP := rte_mempool_octeontx2_version.map
#

View file

@ -2,8 +2,6 @@
# Copyright(C) 2019 Marvell International Ltd.
#
allow_experimental_apis = true
sources = files('otx2_mempool_ops.c',
'otx2_mempool.c',
'otx2_mempool_irq.c',

View file

@ -10,7 +10,6 @@ LIB = librte_mempool_stack.a
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
# Headers
CFLAGS += -I$(RTE_SDK)/lib/librte_mempool

View file

@ -1,8 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017-2019 Intel Corporation
allow_experimental_apis = true
sources = files('rte_mempool_stack.c')
deps += ['stack']

View file

@ -20,7 +20,7 @@ dpdk_driver_classes = ['common',
disabled_drivers = run_command(list_dir_globs, get_option('disable_drivers'),
).stdout().split()
default_cflags = machine_args
default_cflags = machine_args + ['-DALLOW_EXPERIMENTAL_API']
if cc.has_argument('-Wno-format-truncation')
default_cflags += '-Wno-format-truncation'
endif
@ -44,7 +44,6 @@ foreach class:dpdk_driver_classes
reason = '<unknown reason>' # set if build == false to explain
name = drv
fmt_name = ''
allow_experimental_apis = false
sources = []
objs = []
cflags = default_cflags
@ -106,10 +105,6 @@ foreach class:dpdk_driver_classes
dpdk_conf.set(config_flag_fmt.format(fmt_name.to_upper()),1)
lib_name = driver_name_fmt.format(fmt_name)
if allow_experimental_apis
cflags += '-DALLOW_EXPERIMENTAL_API'
endif
dpdk_extra_ldflags += pkgconfig_extra_libs
# generate pmdinfo sources by building a temporary

View file

@ -10,7 +10,6 @@ LIB = librte_pmd_atlantic.a
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
EXPORT_MAP := rte_pmd_atlantic_version.map

Some files were not shown because too many files have changed in this diff Show more