From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 66C17A0577; Mon, 13 Apr 2020 16:56:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 788582B84; Mon, 13 Apr 2020 16:56:07 +0200 (CEST) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by dpdk.org (Postfix) with ESMTP id 2B51E1B53 for ; Mon, 13 Apr 2020 16:56:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586789765; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tpfB8WN/bww7lLAv6y3uSZ2r9l82narbsBG2/0kmW84=; b=Tzl+QD/tjM48UEnOwGJWsQDyNYmZdhSndAhwLw+cUMvdvjQUOGFg748riRcZNiCCziZA/C 1AlMe0UpIZ6wSQk2i9dCo7ZEAzmb+E0K7jq6QPTyy9FUPLIXecEPZ4HxUuPM+AYYmrxQ6a 8dIqjqjhkfnakYsKwpdgl0sjKtdzJcE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-324-hYOtgBEKNzC31scFnONLxw-1; Mon, 13 Apr 2020 10:55:57 -0400 X-MC-Unique: hYOtgBEKNzC31scFnONLxw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E488D8018B7; Mon, 13 Apr 2020 14:55:45 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.195.1]) by smtp.corp.redhat.com (Postfix) with ESMTP id 761C260BE0; Mon, 13 Apr 2020 14:55:42 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: jerinjacobk@gmail.com, pbhagavatula@marvell.com, bruce.richardson@intel.com, thomas@monjalon.net, ferruh.yigit@intel.com, Hemant Agrawal Date: Mon, 13 Apr 2020 16:55:30 +0200 Message-Id: <20200413145530.8464-1-david.marchand@redhat.com> In-Reply-To: <20200402183253.866-1-jerinjacobk@gmail.com> References: <20200402183253.866-1-jerinjacobk@gmail.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-dev] [PATCH v5] build: disable experimental API check internally X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Pavan Nikhilesh 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 Acked-by: Hemant Agrawal Signed-off-by: David Marchand --- app/meson.build | 7 +------ app/test-bbdev/Makefile | 1 - app/test-bbdev/meson.build | 1 - app/test-compress-perf/Makefile | 1 - app/test-compress-perf/meson.build | 1 - app/test-crypto-perf/Makefile | 1 - app/test-crypto-perf/meson.build | 1 - app/test-fib/Makefile | 1 - app/test-fib/meson.build | 1 - app/test-pmd/Makefile | 1 - app/test-pmd/meson.build | 1 - app/test-sad/Makefile | 1 - app/test-sad/meson.build | 1 - app/test/Makefile | 2 -- app/test/meson.build | 3 +-- doc/guides/contributing/coding_style.rst | 9 --------- drivers/baseband/fpga_lte_fec/Makefile | 1 - drivers/baseband/fpga_lte_fec/meson.build | 1 - drivers/baseband/null/Makefile | 1 - drivers/baseband/null/meson.build | 1 - drivers/baseband/turbo_sw/Makefile | 1 - drivers/baseband/turbo_sw/meson.build | 1 - drivers/bus/dpaa/Makefile | 1 - drivers/bus/dpaa/meson.build | 2 -- drivers/bus/fslmc/Makefile | 1 - drivers/bus/fslmc/meson.build | 2 -- drivers/bus/ifpga/Makefile | 1 - drivers/bus/ifpga/meson.build | 2 -- drivers/bus/pci/Makefile | 4 ---- drivers/bus/pci/meson.build | 3 --- drivers/bus/vdev/Makefile | 1 - drivers/bus/vdev/meson.build | 2 -- drivers/bus/vmbus/Makefile | 1 - drivers/bus/vmbus/meson.build | 2 -- drivers/common/cpt/meson.build | 1 - drivers/common/dpaax/Makefile | 1 - drivers/common/dpaax/meson.build | 2 -- drivers/common/iavf/Makefile | 1 - drivers/common/iavf/meson.build | 2 -- drivers/common/mlx5/meson.build | 1 - drivers/common/octeontx2/Makefile | 1 - drivers/common/octeontx2/meson.build | 2 -- drivers/common/qat/Makefile | 1 - drivers/compress/isal/Makefile | 1 - drivers/compress/isal/meson.build | 2 -- drivers/compress/octeontx/Makefile | 1 - drivers/compress/octeontx/meson.build | 1 - drivers/compress/qat/meson.build | 1 - drivers/compress/zlib/Makefile | 1 - drivers/compress/zlib/meson.build | 2 -- drivers/crypto/aesni_gcm/Makefile | 1 - drivers/crypto/aesni_gcm/meson.build | 1 - drivers/crypto/aesni_mb/Makefile | 1 - drivers/crypto/aesni_mb/meson.build | 1 - drivers/crypto/armv8/Makefile | 1 - drivers/crypto/armv8/meson.build | 1 - drivers/crypto/caam_jr/Makefile | 2 -- drivers/crypto/caam_jr/meson.build | 2 -- drivers/crypto/dpaa2_sec/Makefile | 1 - drivers/crypto/dpaa2_sec/meson.build | 2 -- drivers/crypto/dpaa_sec/Makefile | 1 - drivers/crypto/dpaa_sec/meson.build | 2 -- drivers/crypto/kasumi/Makefile | 1 - drivers/crypto/kasumi/meson.build | 1 - drivers/crypto/nitrox/Makefile | 1 - drivers/crypto/nitrox/meson.build | 1 - drivers/crypto/octeontx/Makefile | 1 - drivers/crypto/octeontx/meson.build | 1 - drivers/crypto/octeontx2/Makefile | 1 - drivers/crypto/octeontx2/meson.build | 1 - drivers/crypto/openssl/Makefile | 1 - drivers/crypto/openssl/meson.build | 1 - drivers/crypto/snow3g/Makefile | 1 - drivers/crypto/snow3g/meson.build | 1 - drivers/crypto/zuc/Makefile | 1 - drivers/crypto/zuc/meson.build | 1 - drivers/event/dpaa/Makefile | 1 - drivers/event/dpaa/meson.build | 1 - drivers/event/dpaa2/Makefile | 3 --- drivers/event/dpaa2/meson.build | 1 - drivers/event/dsw/Makefile | 3 --- drivers/event/dsw/meson.build | 3 --- drivers/event/octeontx2/Makefile | 1 - drivers/event/octeontx2/meson.build | 2 -- drivers/event/opdl/Makefile | 1 - drivers/event/opdl/meson.build | 1 - drivers/mempool/bucket/Makefile | 1 - drivers/mempool/bucket/meson.build | 2 -- drivers/mempool/dpaa/Makefile | 3 --- drivers/mempool/dpaa/meson.build | 3 --- drivers/mempool/dpaa2/Makefile | 3 --- drivers/mempool/dpaa2/meson.build | 3 --- drivers/mempool/octeontx/Makefile | 1 - drivers/mempool/octeontx/meson.build | 2 -- drivers/mempool/octeontx2/Makefile | 2 -- drivers/mempool/octeontx2/meson.build | 2 -- drivers/mempool/stack/Makefile | 1 - drivers/mempool/stack/meson.build | 2 -- drivers/meson.build | 7 +------ drivers/net/atlantic/Makefile | 1 - drivers/net/atlantic/meson.build | 2 -- drivers/net/avp/Makefile | 1 - drivers/net/avp/meson.build | 1 - drivers/net/axgbe/Makefile | 1 - drivers/net/axgbe/meson.build | 2 -- drivers/net/bnx2x/Makefile | 1 - drivers/net/bnx2x/meson.build | 1 - drivers/net/bonding/Makefile | 1 - drivers/net/bonding/meson.build | 1 - drivers/net/dpaa/Makefile | 3 --- drivers/net/dpaa/meson.build | 2 -- drivers/net/dpaa2/Makefile | 3 --- drivers/net/dpaa2/meson.build | 3 --- drivers/net/e1000/Makefile | 1 - drivers/net/e1000/base/meson.build | 3 --- drivers/net/e1000/meson.build | 2 -- drivers/net/ena/Makefile | 2 -- drivers/net/ena/meson.build | 1 - drivers/net/enetc/Makefile | 1 - drivers/net/enetc/meson.build | 1 - drivers/net/enic/Makefile | 2 -- drivers/net/enic/meson.build | 2 -- drivers/net/failsafe/Makefile | 1 - drivers/net/failsafe/meson.build | 2 -- drivers/net/fm10k/Makefile | 1 - drivers/net/fm10k/base/meson.build | 3 --- drivers/net/fm10k/meson.build | 2 -- drivers/net/hns3/Makefile | 1 - drivers/net/hns3/meson.build | 7 ------- drivers/net/i40e/Makefile | 1 - drivers/net/i40e/base/meson.build | 3 --- drivers/net/i40e/meson.build | 3 +-- drivers/net/iavf/Makefile | 2 +- drivers/net/iavf/meson.build | 2 -- drivers/net/ice/Makefile | 1 - drivers/net/ice/meson.build | 2 -- drivers/net/ionic/Makefile | 3 --- drivers/net/ipn3ke/Makefile | 1 - drivers/net/ipn3ke/meson.build | 2 -- drivers/net/ixgbe/Makefile | 1 - drivers/net/ixgbe/base/meson.build | 3 --- drivers/net/ixgbe/meson.build | 2 -- drivers/net/memif/Makefile | 7 ------- drivers/net/memif/meson.build | 8 -------- drivers/net/mlx4/Makefile | 1 - drivers/net/mlx4/meson.build | 1 - drivers/net/mlx5/Makefile | 3 --- drivers/net/mlx5/meson.build | 1 - drivers/net/netvsc/Makefile | 1 - drivers/net/netvsc/meson.build | 2 -- drivers/net/nfp/Makefile | 1 - drivers/net/nfp/meson.build | 2 -- drivers/net/octeontx/Makefile | 2 -- drivers/net/octeontx/base/meson.build | 3 --- drivers/net/octeontx/meson.build | 2 -- drivers/net/pfe/Makefile | 4 ---- drivers/net/pfe/meson.build | 5 ----- drivers/net/qede/Makefile | 1 - drivers/net/qede/base/meson.build | 3 --- drivers/net/qede/meson.build | 2 -- drivers/net/sfc/Makefile | 1 - drivers/net/sfc/base/meson.build | 3 --- drivers/net/sfc/meson.build | 2 -- drivers/net/softnic/Makefile | 1 - drivers/net/softnic/meson.build | 1 - drivers/net/tap/Makefile | 1 - drivers/net/tap/meson.build | 1 - drivers/net/thunderx/Makefile | 1 - drivers/net/thunderx/base/meson.build | 3 --- drivers/net/thunderx/meson.build | 1 - drivers/net/vdev_netvsc/Makefile | 1 - drivers/net/vdev_netvsc/meson.build | 2 -- drivers/net/virtio/Makefile | 1 - drivers/net/virtio/meson.build | 1 - drivers/net/vmxnet3/Makefile | 1 - drivers/net/vmxnet3/meson.build | 1 - drivers/raw/dpaa2_cmdif/Makefile | 1 - drivers/raw/dpaa2_cmdif/meson.build | 2 -- drivers/raw/dpaa2_qdma/Makefile | 1 - drivers/raw/dpaa2_qdma/meson.build | 2 -- drivers/raw/ifpga/Makefile | 1 - drivers/raw/ifpga/meson.build | 2 -- drivers/raw/ntb/Makefile | 1 - drivers/raw/ntb/meson.build | 1 - drivers/vdpa/ifc/Makefile | 1 - drivers/vdpa/ifc/meson.build | 1 - drivers/vdpa/mlx5/Makefile | 2 -- drivers/vdpa/mlx5/meson.build | 1 - lib/librte_bbdev/Makefile | 1 - lib/librte_bbdev/meson.build | 1 - lib/librte_bpf/Makefile | 1 - lib/librte_bpf/meson.build | 1 - lib/librte_cmdline/Makefile | 1 - lib/librte_cmdline/meson.build | 1 - lib/librte_compressdev/Makefile | 1 - lib/librte_compressdev/meson.build | 1 - lib/librte_cryptodev/Makefile | 1 - lib/librte_cryptodev/meson.build | 1 - lib/librte_eal/freebsd/Makefile | 1 - lib/librte_eal/linux/Makefile | 1 - lib/librte_eal/meson.build | 1 - lib/librte_ethdev/Makefile | 1 - lib/librte_ethdev/meson.build | 1 - lib/librte_eventdev/Makefile | 1 - lib/librte_eventdev/meson.build | 2 -- lib/librte_fib/Makefile | 1 - lib/librte_fib/meson.build | 1 - lib/librte_flow_classify/Makefile | 1 - lib/librte_flow_classify/meson.build | 1 - lib/librte_hash/Makefile | 2 +- lib/librte_hash/meson.build | 3 --- lib/librte_ipsec/Makefile | 1 - lib/librte_ipsec/meson.build | 2 -- lib/librte_mbuf/Makefile | 1 - lib/librte_mbuf/meson.build | 2 -- lib/librte_mempool/Makefile | 4 ---- lib/librte_mempool/meson.build | 5 ----- lib/librte_net/Makefile | 1 - lib/librte_net/meson.build | 1 - lib/librte_pdump/Makefile | 1 - lib/librte_pdump/meson.build | 1 - lib/librte_pipeline/Makefile | 1 - lib/librte_pipeline/meson.build | 1 - lib/librte_power/Makefile | 1 - lib/librte_rcu/Makefile | 1 - lib/librte_rcu/meson.build | 2 -- lib/librte_rib/Makefile | 1 - lib/librte_rib/meson.build | 1 - lib/librte_ring/Makefile | 2 +- lib/librte_ring/meson.build | 3 --- lib/librte_stack/Makefile | 1 - lib/librte_stack/meson.build | 2 -- lib/librte_telemetry/Makefile | 1 - lib/librte_telemetry/meson.build | 1 - lib/librte_timer/Makefile | 1 - lib/librte_timer/meson.build | 1 - lib/librte_vhost/Makefile | 1 - lib/librte_vhost/meson.build | 1 - lib/meson.build | 6 +----- mk/target/generic/rte.vars.mk | 1 + 240 files changed, 9 insertions(+), 395 deletions(-) diff --git a/app/meson.build b/app/meson.build index 75aa161148..0f7fe94649 100644 --- a/app/meson.build +++ b/app/meson.build @@ -22,12 +22,11 @@ apps =3D [ # for BSD only lib_execinfo =3D cc.find_library('execinfo', required: false) =20 -default_cflags =3D machine_args +default_cflags =3D machine_args + ['-DALLOW_EXPERIMENTAL_API'] =20 foreach app:apps =09build =3D true =09name =3D app -=09allow_experimental_apis =3D false =09sources =3D [] =09includes =3D [] =09cflags =3D default_cflags @@ -54,10 +53,6 @@ foreach app:apps =09=09=09link_libs =3D dpdk_static_libraries + dpdk_drivers =09=09endif =20 -=09=09if allow_experimental_apis -=09=09=09cflags +=3D '-DALLOW_EXPERIMENTAL_API' -=09=09endif - =09=09executable('dpdk-' + name, =09=09=09=09sources, =09=09=09=09c_args: cflags, diff --git a/app/test-bbdev/Makefile b/app/test-bbdev/Makefile index c53982ffc1..8272d2b1c8 100644 --- a/app/test-bbdev/Makefile +++ b/app/test-bbdev/Makefile @@ -8,7 +8,6 @@ include $(RTE_SDK)/mk/rte.vars.mk # APP =3D testbbdev =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) =20 diff --git a/app/test-bbdev/meson.build b/app/test-bbdev/meson.build index 4f53a2ed88..0d9f684a12 100644 --- a/app/test-bbdev/meson.build +++ b/app/test-bbdev/meson.build @@ -5,7 +5,6 @@ sources =3D files('main.c', =09=09'test_bbdev.c', =09=09'test_bbdev_perf.c', =09=09'test_bbdev_vector.c') -allow_experimental_apis =3D true deps +=3D ['bbdev', 'bus_vdev'] if dpdk_conf.has('RTE_LIBRTE_PMD_BBDEV_FPGA_LTE_FEC') =09deps +=3D ['pmd_bbdev_fpga_lte_fec'] diff --git a/app/test-compress-perf/Makefile b/app/test-compress-perf/Makef= ile index ad3b91d0a2..2bff531836 100644 --- a/app/test-compress-perf/Makefile +++ b/app/test-compress-perf/Makefile @@ -6,7 +6,6 @@ include $(RTE_SDK)/mk/rte.vars.mk APP =3D dpdk-test-compress-perf =20 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 =20 # all source are stored in SRCS-y diff --git a/app/test-compress-perf/meson.build b/app/test-compress-perf/me= son.build index 1fe26cc14a..a1a484da9a 100644 --- a/app/test-compress-perf/meson.build +++ b/app/test-compress-perf/meson.build @@ -1,7 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Intel Corporation =20 -allow_experimental_apis =3D true sources =3D files('comp_perf_options_parse.c', =09=09'main.c', =09=09'comp_perf_test_verify.c', diff --git a/app/test-crypto-perf/Makefile b/app/test-crypto-perf/Makefile index 78135f38ce..0dced790f0 100644 --- a/app/test-crypto-perf/Makefile +++ b/app/test-crypto-perf/Makefile @@ -7,7 +7,6 @@ include $(RTE_SDK)/mk/rte.vars.mk APP =3D dpdk-test-crypto-perf =20 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 =20 # all source are stored in SRCS-y diff --git a/app/test-crypto-perf/meson.build b/app/test-crypto-perf/meson.= build index 0674396da8..ef28cb5a03 100644 --- a/app/test-crypto-perf/meson.build +++ b/app/test-crypto-perf/meson.build @@ -1,7 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Intel Corporation =20 -allow_experimental_apis =3D true sources =3D files('cperf_ops.c', =09=09'cperf_options_parsing.c', =09=09'cperf_test_common.c', diff --git a/app/test-fib/Makefile b/app/test-fib/Makefile index 9da34eb8fe..2ea799c0e9 100644 --- a/app/test-fib/Makefile +++ b/app/test-fib/Makefile @@ -9,7 +9,6 @@ APP =3D testfib =20 CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 # all source are stored in SRCS-y SRCS-y :=3D main.c diff --git a/app/test-fib/meson.build b/app/test-fib/meson.build index 4db0010357..f74ac651c0 100644 --- a/app/test-fib/meson.build +++ b/app/test-fib/meson.build @@ -1,6 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2019 Intel Corporation =20 -allow_experimental_apis =3D true sources =3D files('main.c') deps +=3D ['fib', 'lpm', 'net'] diff --git a/app/test-pmd/Makefile b/app/test-pmd/Makefile index d5258eae4a..ea818de220 100644 --- a/app/test-pmd/Makefile +++ b/app/test-pmd/Makefile @@ -10,7 +10,6 @@ ifeq ($(CONFIG_RTE_TEST_PMD),y) # APP =3D testpmd =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) CFLAGS +=3D -Wno-deprecated-declarations diff --git a/app/test-pmd/meson.build b/app/test-pmd/meson.build index 6006c60f99..4872882979 100644 --- a/app/test-pmd/meson.build +++ b/app/test-pmd/meson.build @@ -3,7 +3,6 @@ =20 # override default name to drop the hyphen name =3D 'testpmd' -allow_experimental_apis =3D true cflags +=3D '-Wno-deprecated-declarations' sources =3D files('cmdline.c', =09'cmdline_flow.c', diff --git a/app/test-sad/Makefile b/app/test-sad/Makefile index 9b354132e1..9b5a7ddc61 100644 --- a/app/test-sad/Makefile +++ b/app/test-sad/Makefile @@ -8,7 +8,6 @@ ifeq ($(CONFIG_RTE_LIBRTE_IPSEC),y) APP =3D testsad =20 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 # all source are stored in SRCS-y SRCS-y :=3D main.c diff --git a/app/test-sad/meson.build b/app/test-sad/meson.build index 31f9aab632..db15b658d7 100644 --- a/app/test-sad/meson.build +++ b/app/test-sad/meson.build @@ -1,6 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2019 Intel Corporation =20 -allow_experimental_apis =3D true sources =3D files('main.c') deps +=3D ['ipsec', 'net'] diff --git a/app/test/Makefile b/app/test/Makefile index 1f080d1626..be53d33c3f 100644 --- a/app/test/Makefile +++ b/app/test/Makefile @@ -237,8 +237,6 @@ ifeq ($(CONFIG_RTE_LIBRTE_IPSEC),y) LDLIBS +=3D -lrte_ipsec endif =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API - CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) =20 diff --git a/app/test/meson.build b/app/test/meson.build index 351d29cb65..777c536ae0 100644 --- a/app/test/meson.build +++ b/app/test/meson.build @@ -355,7 +355,6 @@ if dpdk_conf.has('RTE_LIBRTE_PDUMP') =09test_deps +=3D 'pdump' endif =20 -cflags =3D machine_args if cc.has_argument('-Wno-format-truncation') cflags +=3D '-Wno-format-truncation' endif @@ -393,7 +392,7 @@ dpdk_test =3D executable('dpdk-test', =09test_sources, =09link_whole: link_libs, =09dependencies: test_dep_objs, -=09c_args: [cflags, '-DALLOW_EXPERIMENTAL_API'], +=09c_args: cflags, =09install_rpath: driver_install_path, =09install: true) =20 diff --git a/doc/guides/contributing/coding_style.rst b/doc/guides/contribu= ting/coding_style.rst index 841ef6d5c8..4efde93f6a 100644 --- a/doc/guides/contributing/coding_style.rst +++ b/doc/guides/contributing/coding_style.rst @@ -842,12 +842,6 @@ sources =20 The optional fields are: =20 -allow_experimental_apis -=09**Default Value =3D false** -=09Used to allow the library to make use of APIs marked as experimental. -=09Set to ``true`` if the C files in the library call any functions -=09marked as experimental in any included header files. - build =09**Default Value =3D true** =09Used 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 variabl= es supported are: =20 -allow_experimental_apis -=09As above. - build =09As above. =20 diff --git a/drivers/baseband/fpga_lte_fec/Makefile b/drivers/baseband/fpga= _lte_fec/Makefile index b4a442ca54..30caafe3db 100644 --- a/drivers/baseband/fpga_lte_fec/Makefile +++ b/drivers/baseband/fpga_lte_fec/Makefile @@ -7,7 +7,6 @@ include $(RTE_SDK)/mk/rte.vars.mk LIB =3D librte_pmd_bbdev_fpga_lte_fec.a =20 # build flags -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) LDLIBS +=3D -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring diff --git a/drivers/baseband/fpga_lte_fec/meson.build b/drivers/baseband/f= pga_lte_fec/meson.build index c4d3a489a9..e00688da33 100644 --- a/drivers/baseband/fpga_lte_fec/meson.build +++ b/drivers/baseband/fpga_lte_fec/meson.build @@ -2,5 +2,4 @@ # Copyright(c) 2019 Intel Corporation =20 deps +=3D ['bbdev', 'bus_vdev', 'ring', 'pci', 'bus_pci'] -allow_experimental_apis =3D true sources =3D files('fpga_lte_fec.c') diff --git a/drivers/baseband/null/Makefile b/drivers/baseband/null/Makefil= e index 28751eeb79..0ee500166d 100644 --- a/drivers/baseband/null/Makefile +++ b/drivers/baseband/null/Makefile @@ -6,7 +6,6 @@ include $(RTE_SDK)/mk/rte.vars.mk LIB =3D librte_pmd_bbdev_null.a =20 # build flags -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) LDLIBS +=3D -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring -lrte_kvargs diff --git a/drivers/baseband/null/meson.build b/drivers/baseband/null/meso= n.build index e491c7da4a..02ef7db573 100644 --- a/drivers/baseband/null/meson.build +++ b/drivers/baseband/null/meson.build @@ -2,5 +2,4 @@ # Copyright(c) 2018 Luca Boccassi =20 deps +=3D ['bbdev', 'bus_vdev', 'ring'] -allow_experimental_apis =3D true sources =3D files('bbdev_null.c') diff --git a/drivers/baseband/turbo_sw/Makefile b/drivers/baseband/turbo_sw= /Makefile index ec74d277e9..c2a6fe0f81 100644 --- a/drivers/baseband/turbo_sw/Makefile +++ b/drivers/baseband/turbo_sw/Makefile @@ -7,7 +7,6 @@ include $(RTE_SDK)/mk/rte.vars.mk LIB =3D librte_pmd_bbdev_turbo_sw.a =20 # build flags -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) LDLIBS +=3D -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring -lrte_kvargs diff --git a/drivers/baseband/turbo_sw/meson.build b/drivers/baseband/turbo= _sw/meson.build index 21c3cf819a..f5a1ab3fcb 100644 --- a/drivers/baseband/turbo_sw/meson.build +++ b/drivers/baseband/turbo_sw/meson.build @@ -36,5 +36,4 @@ if dpdk_conf.has('RTE_BBDEV_SDK_AVX512') endif =20 deps +=3D ['bbdev', 'bus_vdev', 'ring'] -allow_experimental_apis =3D true sources =3D files('bbdev_turbo_software.c') diff --git a/drivers/bus/dpaa/Makefile b/drivers/bus/dpaa/Makefile index 9e1a31bb75..ba40b21166 100644 --- a/drivers/bus/dpaa/Makefile +++ b/drivers/bus/dpaa/Makefile @@ -9,7 +9,6 @@ RTE_BUS_DPAA=3D$(RTE_SDK)/drivers/bus/dpaa # LIB =3D librte_bus_dpaa.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS :=3D -I$(SRCDIR) $(CFLAGS) CFLAGS +=3D -O3 $(WERROR_FLAGS) CFLAGS +=3D -Wno-pointer-arith diff --git a/drivers/bus/dpaa/meson.build b/drivers/bus/dpaa/meson.build index 2b1cf19114..c2cffa4943 100644 --- a/drivers/bus/dpaa/meson.build +++ b/drivers/bus/dpaa/meson.build @@ -19,8 +19,6 @@ sources =3D files('base/fman/fman.c', =09=09'base/qbman/qman_driver.c', =09=09'dpaa_bus.c') =20 -allow_experimental_apis =3D true - if cc.has_argument('-Wno-cast-qual') =09cflags +=3D '-Wno-cast-qual' endif diff --git a/drivers/bus/fslmc/Makefile b/drivers/bus/fslmc/Makefile index 6d22860885..c70e359c87 100644 --- a/drivers/bus/fslmc/Makefile +++ b/drivers/bus/fslmc/Makefile @@ -9,7 +9,6 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB =3D librte_bus_fslmc.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) =20 diff --git a/drivers/bus/fslmc/meson.build b/drivers/bus/fslmc/meson.build index 6e709a8d5a..eb8874a5ac 100644 --- a/drivers/bus/fslmc/meson.build +++ b/drivers/bus/fslmc/meson.build @@ -22,6 +22,4 @@ sources =3D files('fslmc_bus.c', =09=09'qbman/qbman_portal.c', =09=09'qbman/qbman_debug.c') =20 -allow_experimental_apis =3D true - includes +=3D include_directories('mc', 'qbman/include', 'portal') diff --git a/drivers/bus/ifpga/Makefile b/drivers/bus/ifpga/Makefile index 290c1124ba..1df369103c 100644 --- a/drivers/bus/ifpga/Makefile +++ b/drivers/bus/ifpga/Makefile @@ -8,7 +8,6 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB =3D librte_bus_ifpga.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) LDLIBS +=3D -lrte_eal diff --git a/drivers/bus/ifpga/meson.build b/drivers/bus/ifpga/meson.build index c9b08c8627..4ea31f1741 100644 --- a/drivers/bus/ifpga/meson.build +++ b/drivers/bus/ifpga/meson.build @@ -4,5 +4,3 @@ deps +=3D ['pci', 'kvargs', 'rawdev'] install_headers('rte_bus_ifpga.h') sources =3D files('ifpga_common.c', 'ifpga_bus.c') - -allow_experimental_apis =3D true diff --git a/drivers/bus/pci/Makefile b/drivers/bus/pci/Makefile index 975d796527..f4102d0a7f 100644 --- a/drivers/bus/pci/Makefile +++ b/drivers/bus/pci/Makefile @@ -8,7 +8,6 @@ EXPORT_MAP :=3D rte_bus_pci_version.map =20 CFLAGS :=3D -I$(SRCDIR) $(CFLAGS) CFLAGS +=3D -O3 $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),) SYSTEM :=3D linux @@ -20,9 +19,6 @@ endif CFLAGS +=3D -I$(RTE_SDK)/drivers/bus/pci/$(SYSTEM) CFLAGS +=3D -I$(RTE_SDK)/lib/librte_eal/common =20 -# memseg walk is not part of stable API yet -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API - LDLIBS +=3D -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring LDLIBS +=3D -lrte_pci -lrte_kvargs =20 diff --git a/drivers/bus/pci/meson.build b/drivers/bus/pci/meson.build index a3feb86aea..b520bdfc14 100644 --- a/drivers/bus/pci/meson.build +++ b/drivers/bus/pci/meson.build @@ -16,7 +16,4 @@ else =09includes +=3D include_directories('bsd') endif =20 -# memseg walk is not part of stable API yet -allow_experimental_apis =3D true - deps +=3D ['kvargs'] diff --git a/drivers/bus/vdev/Makefile b/drivers/bus/vdev/Makefile index 63c9b3f59b..01747f03a4 100644 --- a/drivers/bus/vdev/Makefile +++ b/drivers/bus/vdev/Makefile @@ -10,7 +10,6 @@ LIB =3D librte_bus_vdev.a =20 CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 # versioning export map EXPORT_MAP :=3D rte_bus_vdev_version.map diff --git a/drivers/bus/vdev/meson.build b/drivers/bus/vdev/meson.build index 12605e5c74..967d54e4f8 100644 --- a/drivers/bus/vdev/meson.build +++ b/drivers/bus/vdev/meson.build @@ -5,6 +5,4 @@ sources =3D files('vdev.c', =09'vdev_params.c') install_headers('rte_bus_vdev.h') =20 -allow_experimental_apis =3D true - deps +=3D ['kvargs'] diff --git a/drivers/bus/vmbus/Makefile b/drivers/bus/vmbus/Makefile index 59e789db9b..335df6a0ba 100644 --- a/drivers/bus/vmbus/Makefile +++ b/drivers/bus/vmbus/Makefile @@ -7,7 +7,6 @@ EXPORT_MAP :=3D rte_bus_vmbus_version.map =20 CFLAGS +=3D -I$(SRCDIR) CFLAGS +=3D -O3 $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),) SYSTEM :=3D linux diff --git a/drivers/bus/vmbus/meson.build b/drivers/bus/vmbus/meson.build index 251f21b662..a68a1de9d5 100644 --- a/drivers/bus/vmbus/meson.build +++ b/drivers/bus/vmbus/meson.build @@ -1,7 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause =20 -allow_experimental_apis =3D true - install_headers('rte_bus_vmbus.h','rte_vmbus_reg.h') =20 sources =3D files('vmbus_common.c', diff --git a/drivers/common/cpt/meson.build b/drivers/common/cpt/meson.buil= d index d2e84fff33..beecf0da30 100644 --- a/drivers/common/cpt/meson.build +++ b/drivers/common/cpt/meson.build @@ -6,4 +6,3 @@ sources =3D files('cpt_fpm_tables.c', =20 deps =3D ['kvargs', 'pci', 'cryptodev'] includes +=3D include_directories('../../crypto/octeontx') -allow_experimental_apis =3D true diff --git a/drivers/common/dpaax/Makefile b/drivers/common/dpaax/Makefile index 59bd8ae15d..15b0b38d0d 100644 --- a/drivers/common/dpaax/Makefile +++ b/drivers/common/dpaax/Makefile @@ -9,7 +9,6 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB =3D librte_common_dpaax.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) CFLAGS +=3D -Wno-pointer-arith diff --git a/drivers/common/dpaax/meson.build b/drivers/common/dpaax/meson.= build index d41bb50732..ff2d1a5071 100644 --- a/drivers/common/dpaax/meson.build +++ b/drivers/common/dpaax/meson.build @@ -1,8 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 NXP =20 -allow_experimental_apis =3D true - if not is_linux =09build =3D false =09reason =3D 'only supported on linux' diff --git a/drivers/common/iavf/Makefile b/drivers/common/iavf/Makefile index 43383e376f..f06dafd408 100644 --- a/drivers/common/iavf/Makefile +++ b/drivers/common/iavf/Makefile @@ -8,7 +8,6 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB =3D librte_common_iavf.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) CFLAGS +=3D -Wno-pointer-arith diff --git a/drivers/common/iavf/meson.build b/drivers/common/iavf/meson.bu= ild index 7b68ef27fa..ce50aceaf0 100644 --- a/drivers/common/iavf/meson.build +++ b/drivers/common/iavf/meson.build @@ -1,8 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2019 Intel Corporation =20 -allow_experimental_apis =3D true - sources =3D files('iavf_adminq.c', 'iavf_common.c', 'iavf_impl.c') =20 if cc.has_argument('-Wno-pointer-to-int-cast') diff --git a/drivers/common/mlx5/meson.build b/drivers/common/mlx5/meson.bu= ild index f671710714..ac2cfa6236 100644 --- a/drivers/common/mlx5/meson.build +++ b/drivers/common/mlx5/meson.build @@ -49,7 +49,6 @@ if static_ibverbs =09ext_deps +=3D declare_dependency(link_args:ibv_ldflags.split()) endif =20 -allow_experimental_apis =3D true deps +=3D ['hash', 'pci', 'net', 'eal', 'kvargs'] sources =3D files( =09'mlx5_devx_cmds.c', diff --git a/drivers/common/octeontx2/Makefile b/drivers/common/octeontx2/M= akefile index 48f033dc69..efe3da2cc8 100644 --- a/drivers/common/octeontx2/Makefile +++ b/drivers/common/octeontx2/Makefile @@ -13,7 +13,6 @@ CFLAGS +=3D $(WERROR_FLAGS) CFLAGS +=3D -I$(RTE_SDK)/drivers/common/octeontx2 CFLAGS +=3D -I$(RTE_SDK)/drivers/mempool/octeontx2 CFLAGS +=3D -I$(RTE_SDK)/drivers/bus/pci -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 ifneq ($(CONFIG_RTE_ARCH_64),y) CFLAGS +=3D -Wno-int-to-pointer-cast diff --git a/drivers/common/octeontx2/meson.build b/drivers/common/octeontx= 2/meson.build index cc2c26123d..996ddba146 100644 --- a/drivers/common/octeontx2/meson.build +++ b/drivers/common/octeontx2/meson.build @@ -2,8 +2,6 @@ # Copyright(C) 2019 Marvell International Ltd. # =20 -allow_experimental_apis =3D true - sources=3D files('otx2_dev.c', =09=09'otx2_irq.c', =09=09'otx2_mbox.c', diff --git a/drivers/common/qat/Makefile b/drivers/common/qat/Makefile index 63d8efb2b2..28bd5668f7 100644 --- a/drivers/common/qat/Makefile +++ b/drivers/common/qat/Makefile @@ -16,7 +16,6 @@ CFLAGS +=3D -I$(QAT_COMPRESS_DIR) =20 =20 ifeq ($(CONFIG_RTE_LIBRTE_COMPRESSDEV),y) -=09CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =09LDLIBS +=3D -lrte_compressdev =09SRCS-y +=3D qat_comp.c =09SRCS-y +=3D qat_comp_pmd.c diff --git a/drivers/compress/isal/Makefile b/drivers/compress/isal/Makefil= e index 6438b75ce8..1e225ab434 100644 --- a/drivers/compress/isal/Makefile +++ b/drivers/compress/isal/Makefile @@ -9,7 +9,6 @@ LIB =3D librte_pmd_isal_comp.a # build flags CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 # external library dependencies LDLIBS +=3D -lisal diff --git a/drivers/compress/isal/meson.build b/drivers/compress/isal/meso= n.build index 25578880db..5ee17e28f5 100644 --- a/drivers/compress/isal/meson.build +++ b/drivers/compress/isal/meson.build @@ -10,5 +10,3 @@ endif deps +=3D 'bus_vdev' sources =3D files('isal_compress_pmd.c', 'isal_compress_pmd_ops.c') ext_deps +=3D dep - -allow_experimental_apis =3D true diff --git a/drivers/compress/octeontx/Makefile b/drivers/compress/octeontx= /Makefile index d6324b5302..9ba1db791e 100644 --- a/drivers/compress/octeontx/Makefile +++ b/drivers/compress/octeontx/Makefile @@ -9,7 +9,6 @@ LIB =3D librte_pmd_octeontx_zip.a # build flags CFLAGS +=3D $(WERROR_FLAGS) CFLAGS +=3D -O3 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -I$(RTE_SDK)/drivers/compress/octeontx/include =20 # external library include paths diff --git a/drivers/compress/octeontx/meson.build b/drivers/compress/octeo= ntx/meson.build index 7cd202d07a..0dc98b7627 100644 --- a/drivers/compress/octeontx/meson.build +++ b/drivers/compress/octeontx/meson.build @@ -3,7 +3,6 @@ =20 name =3D 'octeontx_compress' sources =3D files('otx_zip.c', 'otx_zip_pmd.c') -allow_experimental_apis =3D true includes +=3D include_directories('include') deps +=3D ['mempool_octeontx', 'bus_pci'] ext_deps +=3D dep diff --git a/drivers/compress/qat/meson.build b/drivers/compress/qat/meson.= build index 9d15076dc6..a002469809 100644 --- a/drivers/compress/qat/meson.build +++ b/drivers/compress/qat/meson.build @@ -3,7 +3,6 @@ =20 =20 # Add our sources files to the list -allow_experimental_apis =3D true qat_sources +=3D files('qat_comp_pmd.c', =09=09 'qat_comp.c') qat_includes +=3D include_directories('.') diff --git a/drivers/compress/zlib/Makefile b/drivers/compress/zlib/Makefil= e index 1eba3560fe..9f695f7d9a 100644 --- a/drivers/compress/zlib/Makefile +++ b/drivers/compress/zlib/Makefile @@ -9,7 +9,6 @@ LIB =3D librte_pmd_zlib.a # build flags CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 # versioning export map EXPORT_MAP :=3D rte_pmd_zlib_version.map diff --git a/drivers/compress/zlib/meson.build b/drivers/compress/zlib/meso= n.build index b1328c535e..b19a6d2b16 100644 --- a/drivers/compress/zlib/meson.build +++ b/drivers/compress/zlib/meson.build @@ -10,5 +10,3 @@ endif deps +=3D 'bus_vdev' sources =3D files('zlib_pmd.c', 'zlib_pmd_ops.c') ext_deps +=3D dep - -allow_experimental_apis =3D true diff --git a/drivers/crypto/aesni_gcm/Makefile b/drivers/crypto/aesni_gcm/M= akefile index b443167d51..01cb4fddfe 100644 --- a/drivers/crypto/aesni_gcm/Makefile +++ b/drivers/crypto/aesni_gcm/Makefile @@ -8,7 +8,6 @@ LIB =3D librte_pmd_aesni_gcm.a =20 # build flags CFLAGS +=3D -O3 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D $(WERROR_FLAGS) =20 # versioning export map diff --git a/drivers/crypto/aesni_gcm/meson.build b/drivers/crypto/aesni_gc= m/meson.build index 3a6e332dcb..ea83e87740 100644 --- a/drivers/crypto/aesni_gcm/meson.build +++ b/drivers/crypto/aesni_gcm/meson.build @@ -20,6 +20,5 @@ else =09endif endif =20 -allow_experimental_apis =3D true sources =3D files('aesni_gcm_pmd.c', 'aesni_gcm_pmd_ops.c') deps +=3D ['bus_vdev'] diff --git a/drivers/crypto/aesni_mb/Makefile b/drivers/crypto/aesni_mb/Mak= efile index aa2e428106..f0dc82f395 100644 --- a/drivers/crypto/aesni_mb/Makefile +++ b/drivers/crypto/aesni_mb/Makefile @@ -9,7 +9,6 @@ LIB =3D librte_pmd_aesni_mb.a # build flags CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 # versioning export map EXPORT_MAP :=3D rte_pmd_aesni_mb_version.map diff --git a/drivers/crypto/aesni_mb/meson.build b/drivers/crypto/aesni_mb/= meson.build index 3e16874165..e557e0103e 100644 --- a/drivers/crypto/aesni_mb/meson.build +++ b/drivers/crypto/aesni_mb/meson.build @@ -22,5 +22,4 @@ else endif =20 sources =3D files('rte_aesni_mb_pmd.c', 'rte_aesni_mb_pmd_ops.c') -allow_experimental_apis =3D true deps +=3D ['bus_vdev'] diff --git a/drivers/crypto/armv8/Makefile b/drivers/crypto/armv8/Makefile index 7f20a28d49..0e3bc9fb70 100644 --- a/drivers/crypto/armv8/Makefile +++ b/drivers/crypto/armv8/Makefile @@ -24,7 +24,6 @@ EXPORT_MAP :=3D rte_pmd_armv8_version.map =20 # external library dependencies CFLAGS +=3D -I$(ARMV8_CRYPTO_LIB_PATH) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API LDLIBS +=3D -L$(ARMV8_CRYPTO_LIB_PATH) -lAArch64crypto LDLIBS +=3D -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring LDLIBS +=3D -lrte_cryptodev diff --git a/drivers/crypto/armv8/meson.build b/drivers/crypto/armv8/meson.= build index 6ecb78b42a..c445c5bd3d 100644 --- a/drivers/crypto/armv8/meson.build +++ b/drivers/crypto/armv8/meson.build @@ -22,4 +22,3 @@ endif =20 deps +=3D ['bus_vdev'] sources =3D files('rte_armv8_pmd.c', 'rte_armv8_pmd_ops.c') -allow_experimental_apis =3D true diff --git a/drivers/crypto/caam_jr/Makefile b/drivers/crypto/caam_jr/Makef= ile index db17294395..89d3238172 100644 --- a/drivers/crypto/caam_jr/Makefile +++ b/drivers/crypto/caam_jr/Makefile @@ -9,8 +9,6 @@ include $(RTE_SDK)/mk/rte.vars.mk LIB =3D librte_pmd_caam_jr.a =20 # build flags -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API - CFLAGS +=3D -D _GNU_SOURCE =20 CFLAGS +=3D -O3 diff --git a/drivers/crypto/caam_jr/meson.build b/drivers/crypto/caam_jr/me= son.build index 50132aebef..f8b5250a93 100644 --- a/drivers/crypto/caam_jr/meson.build +++ b/drivers/crypto/caam_jr/meson.build @@ -12,8 +12,6 @@ sources =3D files('caam_jr_capabilities.c', =09=09'caam_jr_uio.c', =09=09'caam_jr.c') =20 -allow_experimental_apis =3D true - includes +=3D include_directories('../../bus/dpaa/include/') includes +=3D include_directories('../../common/dpaax/') includes +=3D include_directories('../../common/dpaax/caamflib/') diff --git a/drivers/crypto/dpaa2_sec/Makefile b/drivers/crypto/dpaa2_sec/M= akefile index 96b9c78435..a0a2795575 100644 --- a/drivers/crypto/dpaa2_sec/Makefile +++ b/drivers/crypto/dpaa2_sec/Makefile @@ -10,7 +10,6 @@ include $(RTE_SDK)/mk/rte.vars.mk LIB =3D librte_pmd_dpaa2_sec.a =20 # build flags -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) =20 diff --git a/drivers/crypto/dpaa2_sec/meson.build b/drivers/crypto/dpaa2_se= c/meson.build index ab9c8c8bf9..cb1c2d0492 100644 --- a/drivers/crypto/dpaa2_sec/meson.build +++ b/drivers/crypto/dpaa2_sec/meson.build @@ -10,6 +10,4 @@ deps +=3D ['security', 'mempool_dpaa2'] sources =3D files('dpaa2_sec_dpseci.c', =09=09'mc/dpseci.c') =20 -allow_experimental_apis =3D true - includes +=3D include_directories('mc', '../../common/dpaax', '../../commo= n/dpaax/caamflib') diff --git a/drivers/crypto/dpaa_sec/Makefile b/drivers/crypto/dpaa_sec/Mak= efile index 13a5ff20cf..ea266962a3 100644 --- a/drivers/crypto/dpaa_sec/Makefile +++ b/drivers/crypto/dpaa_sec/Makefile @@ -10,7 +10,6 @@ include $(RTE_SDK)/mk/rte.vars.mk LIB =3D librte_pmd_dpaa_sec.a =20 # build flags -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) =20 diff --git a/drivers/crypto/dpaa_sec/meson.build b/drivers/crypto/dpaa_sec/= meson.build index 71de819407..7d422d8d55 100644 --- a/drivers/crypto/dpaa_sec/meson.build +++ b/drivers/crypto/dpaa_sec/meson.build @@ -9,8 +9,6 @@ endif deps +=3D ['bus_dpaa', 'mempool_dpaa', 'security'] sources =3D files('dpaa_sec.c') =20 -allow_experimental_apis =3D true - includes +=3D include_directories('../../bus/dpaa/include') includes +=3D include_directories('../../common/dpaax') includes +=3D include_directories('../../common/dpaax/caamflib/') diff --git a/drivers/crypto/kasumi/Makefile b/drivers/crypto/kasumi/Makefil= e index ad19aad11c..a7d0d079d2 100644 --- a/drivers/crypto/kasumi/Makefile +++ b/drivers/crypto/kasumi/Makefile @@ -9,7 +9,6 @@ LIB =3D librte_pmd_kasumi.a # build flags CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 # versioning export map EXPORT_MAP :=3D rte_pmd_kasumi_version.map diff --git a/drivers/crypto/kasumi/meson.build b/drivers/crypto/kasumi/meso= n.build index 7350f41abd..7560fb7cfa 100644 --- a/drivers/crypto/kasumi/meson.build +++ b/drivers/crypto/kasumi/meson.build @@ -19,7 +19,6 @@ else =20 endif =20 -allow_experimental_apis =3D true ext_deps +=3D lib sources =3D files('rte_kasumi_pmd.c', 'rte_kasumi_pmd_ops.c') deps +=3D ['bus_vdev'] diff --git a/drivers/crypto/nitrox/Makefile b/drivers/crypto/nitrox/Makefil= e index fc42ac8088..535121196b 100644 --- a/drivers/crypto/nitrox/Makefile +++ b/drivers/crypto/nitrox/Makefile @@ -9,7 +9,6 @@ LIB =3D librte_pmd_nitrox.a # build flags CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 # versioning export map EXPORT_MAP :=3D rte_pmd_nitrox_version.map diff --git a/drivers/crypto/nitrox/meson.build b/drivers/crypto/nitrox/meso= n.build index 03788366b1..9c0e89c2c3 100644 --- a/drivers/crypto/nitrox/meson.build +++ b/drivers/crypto/nitrox/meson.build @@ -7,7 +7,6 @@ if not is_linux endif =20 deps +=3D ['bus_pci'] -allow_experimental_apis =3D true sources =3D files( =09=09'nitrox_device.c', =09=09'nitrox_hal.c', diff --git a/drivers/crypto/octeontx/Makefile b/drivers/crypto/octeontx/Mak= efile index 08a99c8272..296755ee90 100644 --- a/drivers/crypto/octeontx/Makefile +++ b/drivers/crypto/octeontx/Makefile @@ -19,7 +19,6 @@ VPATH +=3D $(RTE_SDK)/drivers/crypto/octeontx =20 CFLAGS +=3D -O3 CFLAGS +=3D -I$(RTE_SDK)/drivers/common/cpt -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 # PMD code SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_CRYPTO) +=3D otx_cryptodev.c diff --git a/drivers/crypto/octeontx/meson.build b/drivers/crypto/octeontx/= meson.build index 63a59c51a1..cf031b006c 100644 --- a/drivers/crypto/octeontx/meson.build +++ b/drivers/crypto/octeontx/meson.build @@ -9,7 +9,6 @@ deps +=3D ['bus_pci'] deps +=3D ['common_cpt'] name =3D 'octeontx_crypto' =20 -allow_experimental_apis =3D true sources =3D files('otx_cryptodev.c', =09=09'otx_cryptodev_capabilities.c', =09=09'otx_cryptodev_hw_access.c', diff --git a/drivers/crypto/octeontx2/Makefile b/drivers/crypto/octeontx2/M= akefile index 1458e2b72f..5f9a6a0e3f 100644 --- a/drivers/crypto/octeontx2/Makefile +++ b/drivers/crypto/octeontx2/Makefile @@ -23,7 +23,6 @@ CFLAGS +=3D -I$(RTE_SDK)/drivers/common/octeontx2 CFLAGS +=3D -I$(RTE_SDK)/drivers/crypto/octeontx2 CFLAGS +=3D -I$(RTE_SDK)/drivers/mempool/octeontx2 CFLAGS +=3D -I$(RTE_SDK)/drivers/net/octeontx2 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 ifneq ($(CONFIG_RTE_ARCH_64),y) CFLAGS +=3D -Wno-int-to-pointer-cast diff --git a/drivers/crypto/octeontx2/meson.build b/drivers/crypto/octeontx= 2/meson.build index a5317990a7..a28c700b9f 100644 --- a/drivers/crypto/octeontx2/meson.build +++ b/drivers/crypto/octeontx2/meson.build @@ -12,7 +12,6 @@ deps +=3D ['ethdev'] deps +=3D ['security'] name =3D 'octeontx2_crypto' =20 -allow_experimental_apis =3D true sources =3D files('otx2_cryptodev.c', =09=09'otx2_cryptodev_capabilities.c', =09=09'otx2_cryptodev_hw_access.c', diff --git a/drivers/crypto/openssl/Makefile b/drivers/crypto/openssl/Makef= ile index 58a26eced6..b85c816551 100644 --- a/drivers/crypto/openssl/Makefile +++ b/drivers/crypto/openssl/Makefile @@ -9,7 +9,6 @@ LIB =3D librte_pmd_openssl.a # build flags CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 # versioning export map EXPORT_MAP :=3D rte_pmd_openssl_version.map diff --git a/drivers/crypto/openssl/meson.build b/drivers/crypto/openssl/me= son.build index 394e74c9eb..d9ac698971 100644 --- a/drivers/crypto/openssl/meson.build +++ b/drivers/crypto/openssl/meson.build @@ -6,7 +6,6 @@ if not dep.found() =09build =3D false =09reason =3D 'missing dependency, "libcrypto"' endif -allow_experimental_apis =3D true deps +=3D 'bus_vdev' sources =3D files('rte_openssl_pmd.c', 'rte_openssl_pmd_ops.c') ext_deps +=3D dep diff --git a/drivers/crypto/snow3g/Makefile b/drivers/crypto/snow3g/Makefil= e index cbf1a77904..469aefaa56 100644 --- a/drivers/crypto/snow3g/Makefile +++ b/drivers/crypto/snow3g/Makefile @@ -9,7 +9,6 @@ LIB =3D librte_pmd_snow3g.a # build flags CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 # versioning export map EXPORT_MAP :=3D rte_pmd_snow3g_version.map diff --git a/drivers/crypto/snow3g/meson.build b/drivers/crypto/snow3g/meso= n.build index 9d93cbe26c..c1c5fd37f7 100644 --- a/drivers/crypto/snow3g/meson.build +++ b/drivers/crypto/snow3g/meson.build @@ -19,7 +19,6 @@ else =20 endif =20 -allow_experimental_apis =3D true ext_deps +=3D lib sources =3D files('rte_snow3g_pmd.c', 'rte_snow3g_pmd_ops.c') deps +=3D ['bus_vdev', 'cryptodev'] diff --git a/drivers/crypto/zuc/Makefile b/drivers/crypto/zuc/Makefile index 1875344472..529b47f25e 100644 --- a/drivers/crypto/zuc/Makefile +++ b/drivers/crypto/zuc/Makefile @@ -9,7 +9,6 @@ LIB =3D librte_pmd_zuc.a # build flags CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 # versioning export map EXPORT_MAP :=3D rte_pmd_zuc_version.map diff --git a/drivers/crypto/zuc/meson.build b/drivers/crypto/zuc/meson.buil= d index be3824c54c..c3454d799e 100644 --- a/drivers/crypto/zuc/meson.build +++ b/drivers/crypto/zuc/meson.build @@ -19,7 +19,6 @@ else =20 endif =20 -allow_experimental_apis =3D true ext_deps +=3D lib sources =3D files('rte_zuc_pmd.c', 'rte_zuc_pmd_ops.c') deps +=3D ['bus_vdev'] diff --git a/drivers/event/dpaa/Makefile b/drivers/event/dpaa/Makefile index 15ffc157f8..a39dc27c62 100644 --- a/drivers/event/dpaa/Makefile +++ b/drivers/event/dpaa/Makefile @@ -10,7 +10,6 @@ RTE_SDK_DPAA=3D$(RTE_SDK)/drivers/net/dpaa # LIB =3D librte_pmd_dpaa_event.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS :=3D -I$(SRCDIR) $(CFLAGS) CFLAGS +=3D -O3 $(WERROR_FLAGS) CFLAGS +=3D -Wno-pointer-arith diff --git a/drivers/event/dpaa/meson.build b/drivers/event/dpaa/meson.buil= d index b74f3bf323..2f761f8e5b 100644 --- a/drivers/event/dpaa/meson.build +++ b/drivers/event/dpaa/meson.build @@ -8,5 +8,4 @@ endif deps +=3D ['pmd_dpaa', 'pmd_dpaa_sec'] sources =3D files('dpaa_eventdev.c') =20 -allow_experimental_apis =3D true includes +=3D include_directories('../../crypto/dpaa_sec/') diff --git a/drivers/event/dpaa2/Makefile b/drivers/event/dpaa2/Makefile index 1cd3b88bd6..75cf197c5c 100644 --- a/drivers/event/dpaa2/Makefile +++ b/drivers/event/dpaa2/Makefile @@ -31,9 +31,6 @@ CFLAGS +=3D -I$(RTE_SDK)/drivers/crypto/dpaa2_sec # versioning export map EXPORT_MAP :=3D rte_pmd_dpaa2_event_version.map =20 -# depends on fslmc bus which uses experimental API -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API - # # all source are stored in SRCS-y # diff --git a/drivers/event/dpaa2/meson.build b/drivers/event/dpaa2/meson.bu= ild index ca914ccc4d..71c8be3d6e 100644 --- a/drivers/event/dpaa2/meson.build +++ b/drivers/event/dpaa2/meson.build @@ -10,5 +10,4 @@ sources =3D files('dpaa2_hw_dpcon.c', =09=09'dpaa2_eventdev.c', =09=09'dpaa2_eventdev_selftest.c') =20 -allow_experimental_apis =3D true includes +=3D include_directories('../../crypto/dpaa2_sec/') diff --git a/drivers/event/dsw/Makefile b/drivers/event/dsw/Makefile index 68d681fab9..f6e7dda1fd 100644 --- a/drivers/event/dsw/Makefile +++ b/drivers/event/dsw/Makefile @@ -11,9 +11,6 @@ ifneq ($(CONFIG_RTE_TOOLCHAIN_ICC),y) CFLAGS +=3D -Wno-format-nonliteral endif =20 -# Depends on rte_ring_elem_*() -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API - LDLIBS +=3D -lrte_eal LDLIBS +=3D -lrte_mbuf LDLIBS +=3D -lrte_mempool diff --git a/drivers/event/dsw/meson.build b/drivers/event/dsw/meson.build index 3b39cb653e..60ab13d906 100644 --- a/drivers/event/dsw/meson.build +++ b/drivers/event/dsw/meson.build @@ -6,6 +6,3 @@ if cc.has_argument('-Wno-format-nonliteral') =09cflags +=3D '-Wno-format-nonliteral' endif sources =3D files('dsw_evdev.c', 'dsw_event.c', 'dsw_xstats.c') - -# Depends on rte_ring_elem_*() -allow_experimental_apis =3D true diff --git a/drivers/event/octeontx2/Makefile b/drivers/event/octeontx2/Mak= efile index bcd22ee8cd..9d67b00c69 100644 --- a/drivers/event/octeontx2/Makefile +++ b/drivers/event/octeontx2/Makefile @@ -16,7 +16,6 @@ CFLAGS +=3D -I$(RTE_SDK)/drivers/mempool/octeontx2 CFLAGS +=3D -I$(RTE_SDK)/drivers/event/octeontx2 CFLAGS +=3D -I$(RTE_SDK)/drivers/net/octeontx2 CFLAGS +=3D -O3 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 ifneq ($(CONFIG_RTE_ARCH_64),y) CFLAGS +=3D -Wno-int-to-pointer-cast diff --git a/drivers/event/octeontx2/meson.build b/drivers/event/octeontx2/= meson.build index 56febb8d86..4b938416b9 100644 --- a/drivers/event/octeontx2/meson.build +++ b/drivers/event/octeontx2/meson.build @@ -12,8 +12,6 @@ sources =3D files('otx2_worker.c', =09=09'otx2_tim_worker.c' =09=09) =20 -allow_experimental_apis =3D true - extra_flags =3D [] # This integrated controller runs only on a arm64 machine, remove 32bit wa= rnings if not dpdk_conf.get('RTE_ARCH_64') diff --git a/drivers/event/opdl/Makefile b/drivers/event/opdl/Makefile index 1dfd6f5e83..71713b00ae 100644 --- a/drivers/event/opdl/Makefile +++ b/drivers/event/opdl/Makefile @@ -9,7 +9,6 @@ LIB =3D librte_pmd_opdl_event.a # build flags CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 LDLIBS +=3D -lrte_eal -lrte_eventdev -lrte_kvargs LDLIBS +=3D -lrte_bus_vdev -lrte_mbuf -lrte_mempool diff --git a/drivers/event/opdl/meson.build b/drivers/event/opdl/meson.buil= d index e67b164e3e..1fe034ea12 100644 --- a/drivers/event/opdl/meson.build +++ b/drivers/event/opdl/meson.build @@ -1,7 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Luca Boccassi =20 -allow_experimental_apis =3D true sources =3D files( =09'opdl_evdev.c', =09'opdl_evdev_init.c', diff --git a/drivers/mempool/bucket/Makefile b/drivers/mempool/bucket/Makef= ile index 1dc0079f8f..c766c35b2c 100644 --- a/drivers/mempool/bucket/Makefile +++ b/drivers/mempool/bucket/Makefile @@ -15,7 +15,6 @@ LIB =3D librte_mempool_bucket.a =20 CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 LDLIBS +=3D -lrte_eal -lrte_mempool -lrte_ring =20 diff --git a/drivers/mempool/bucket/meson.build b/drivers/mempool/bucket/me= son.build index 2fd77f9d45..618d791283 100644 --- a/drivers/mempool/bucket/meson.build +++ b/drivers/mempool/bucket/meson.build @@ -6,6 +6,4 @@ # This software was jointly developed between OKTET Labs (under contract # for Solarflare) and Solarflare Communications, Inc. =20 -allow_experimental_apis =3D true - sources =3D files('rte_mempool_bucket.c') diff --git a/drivers/mempool/dpaa/Makefile b/drivers/mempool/dpaa/Makefile index 8c786ddbeb..144969c627 100644 --- a/drivers/mempool/dpaa/Makefile +++ b/drivers/mempool/dpaa/Makefile @@ -19,9 +19,6 @@ CFLAGS +=3D -I$(RTE_SDK)/lib/librte_mempool # versioning export map EXPORT_MAP :=3D rte_mempool_dpaa_version.map =20 -# depends on dpaa bus which uses experimental API -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API - # all source are stored in SRCS-y # SRCS-$(CONFIG_RTE_LIBRTE_DPAA_MEMPOOL) +=3D dpaa_mempool.c diff --git a/drivers/mempool/dpaa/meson.build b/drivers/mempool/dpaa/meson.= build index b7446f174b..754e6397f2 100644 --- a/drivers/mempool/dpaa/meson.build +++ b/drivers/mempool/dpaa/meson.build @@ -8,6 +8,3 @@ endif =20 deps +=3D ['bus_dpaa'] sources =3D files('dpaa_mempool.c') - -# depends on dpaa bus which uses experimental API -allow_experimental_apis =3D true diff --git a/drivers/mempool/dpaa2/Makefile b/drivers/mempool/dpaa2/Makefil= e index 52565be9a9..04db6d27de 100644 --- a/drivers/mempool/dpaa2/Makefile +++ b/drivers/mempool/dpaa2/Makefile @@ -18,9 +18,6 @@ CFLAGS +=3D -I$(RTE_SDK)/drivers/bus/fslmc/qbman/include # versioning export map EXPORT_MAP :=3D rte_mempool_dpaa2_version.map =20 -# depends on fslmc bus which uses experimental API -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API - # all source are stored in SRCS-y # SRCS-$(CONFIG_RTE_LIBRTE_DPAA2_MEMPOOL) +=3D dpaa2_hw_mempool.c diff --git a/drivers/mempool/dpaa2/meson.build b/drivers/mempool/dpaa2/meso= n.build index d79fc31644..df299a0456 100644 --- a/drivers/mempool/dpaa2/meson.build +++ b/drivers/mempool/dpaa2/meson.build @@ -8,6 +8,3 @@ endif =20 deps +=3D ['bus_fslmc'] sources =3D files('dpaa2_hw_mempool.c') - -# depends on fslmc bus which uses experimental API -allow_experimental_apis =3D true diff --git a/drivers/mempool/octeontx/Makefile b/drivers/mempool/octeontx/M= akefile index ee54c66dc2..9c840620d9 100644 --- a/drivers/mempool/octeontx/Makefile +++ b/drivers/mempool/octeontx/Makefile @@ -11,7 +11,6 @@ LIB =3D librte_mempool_octeontx.a =20 CFLAGS +=3D $(WERROR_FLAGS) CFLAGS +=3D -I$(RTE_SDK)/drivers/common/octeontx/ -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 EXPORT_MAP :=3D rte_mempool_octeontx_version.map =20 diff --git a/drivers/mempool/octeontx/meson.build b/drivers/mempool/octeont= x/meson.build index 1954359502..3baaf7db25 100644 --- a/drivers/mempool/octeontx/meson.build +++ b/drivers/mempool/octeontx/meson.build @@ -1,8 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Cavium, Inc =20 -allow_experimental_apis =3D true - sources =3D files('octeontx_fpavf.c', =09=09'rte_mempool_octeontx.c' ) diff --git a/drivers/mempool/octeontx2/Makefile b/drivers/mempool/octeontx2= /Makefile index 337babf66e..3828219b11 100644 --- a/drivers/mempool/octeontx2/Makefile +++ b/drivers/mempool/octeontx2/Makefile @@ -23,8 +23,6 @@ CFLAGS +=3D -diag-disable 2259 endif endif =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API - EXPORT_MAP :=3D rte_mempool_octeontx2_version.map =20 # diff --git a/drivers/mempool/octeontx2/meson.build b/drivers/mempool/octeon= tx2/meson.build index 8255377df5..9fde40f0e9 100644 --- a/drivers/mempool/octeontx2/meson.build +++ b/drivers/mempool/octeontx2/meson.build @@ -2,8 +2,6 @@ # Copyright(C) 2019 Marvell International Ltd. # =20 -allow_experimental_apis =3D true - sources =3D files('otx2_mempool_ops.c', =09=09'otx2_mempool.c', =09=09'otx2_mempool_irq.c', diff --git a/drivers/mempool/stack/Makefile b/drivers/mempool/stack/Makefil= e index 97c3dab071..ccfd970400 100644 --- a/drivers/mempool/stack/Makefile +++ b/drivers/mempool/stack/Makefile @@ -10,7 +10,6 @@ LIB =3D librte_mempool_stack.a =20 CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 # Headers CFLAGS +=3D -I$(RTE_SDK)/lib/librte_mempool diff --git a/drivers/mempool/stack/meson.build b/drivers/mempool/stack/meso= n.build index 03e369a410..580dde79eb 100644 --- a/drivers/mempool/stack/meson.build +++ b/drivers/mempool/stack/meson.build @@ -1,8 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017-2019 Intel Corporation =20 -allow_experimental_apis =3D true - sources =3D files('rte_mempool_stack.c') =20 deps +=3D ['stack'] diff --git a/drivers/meson.build b/drivers/meson.build index 5502bf9924..4d8f842ab8 100644 --- a/drivers/meson.build +++ b/drivers/meson.build @@ -20,7 +20,7 @@ dpdk_driver_classes =3D ['common', disabled_drivers =3D run_command(list_dir_globs, get_option('disable_drive= rs'), =09=09).stdout().split() =20 -default_cflags =3D machine_args +default_cflags =3D machine_args + ['-DALLOW_EXPERIMENTAL_API'] if cc.has_argument('-Wno-format-truncation') =09default_cflags +=3D '-Wno-format-truncation' endif @@ -44,7 +44,6 @@ foreach class:dpdk_driver_classes =09=09reason =3D '' # set if build =3D=3D false to explain =09=09name =3D drv =09=09fmt_name =3D '' -=09=09allow_experimental_apis =3D false =09=09sources =3D [] =09=09objs =3D [] =09=09cflags =3D default_cflags @@ -106,10 +105,6 @@ foreach class:dpdk_driver_classes =09=09=09dpdk_conf.set(config_flag_fmt.format(fmt_name.to_upper()),1) =09=09=09lib_name =3D driver_name_fmt.format(fmt_name) =20 -=09=09=09if allow_experimental_apis -=09=09=09=09cflags +=3D '-DALLOW_EXPERIMENTAL_API' -=09=09=09endif - =09=09=09dpdk_extra_ldflags +=3D pkgconfig_extra_libs =20 =09=09=09# generate pmdinfo sources by building a temporary diff --git a/drivers/net/atlantic/Makefile b/drivers/net/atlantic/Makefile index 016e369283..0d0d0a502d 100644 --- a/drivers/net/atlantic/Makefile +++ b/drivers/net/atlantic/Makefile @@ -10,7 +10,6 @@ LIB =3D librte_pmd_atlantic.a =20 CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 EXPORT_MAP :=3D rte_pmd_atlantic_version.map =20 diff --git a/drivers/net/atlantic/meson.build b/drivers/net/atlantic/meson.= build index 919d74149e..60b84684ec 100644 --- a/drivers/net/atlantic/meson.build +++ b/drivers/net/atlantic/meson.build @@ -1,8 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Aquantia Corporation =20 -allow_experimental_apis =3D true - sources =3D files( =09'atl_rxtx.c', =09'atl_ethdev.c', diff --git a/drivers/net/avp/Makefile b/drivers/net/avp/Makefile index 8c12d3b7a0..075247b13a 100644 --- a/drivers/net/avp/Makefile +++ b/drivers/net/avp/Makefile @@ -10,7 +10,6 @@ LIB =3D librte_pmd_avp.a =20 CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -I$(SRCDIR) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API LDLIBS +=3D -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring LDLIBS +=3D -lrte_ethdev -lrte_net -lrte_kvargs LDLIBS +=3D -lrte_bus_pci diff --git a/drivers/net/avp/meson.build b/drivers/net/avp/meson.build index 793bb185dd..a5f63cdef9 100644 --- a/drivers/net/avp/meson.build +++ b/drivers/net/avp/meson.build @@ -5,6 +5,5 @@ if not is_linux =09build =3D false =09reason =3D 'only supported on linux' endif -allow_experimental_apis =3D true sources =3D files('avp_ethdev.c') install_headers('rte_avp_common.h', 'rte_avp_fifo.h') diff --git a/drivers/net/axgbe/Makefile b/drivers/net/axgbe/Makefile index 0097a93074..e421d0da11 100644 --- a/drivers/net/axgbe/Makefile +++ b/drivers/net/axgbe/Makefile @@ -10,7 +10,6 @@ LIB =3D librte_pmd_axgbe.a =20 CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 EXPORT_MAP :=3D rte_pmd_axgbe_version.map =20 diff --git a/drivers/net/axgbe/meson.build b/drivers/net/axgbe/meson.build index 366b289276..86873b7ef9 100644 --- a/drivers/net/axgbe/meson.build +++ b/drivers/net/axgbe/meson.build @@ -6,8 +6,6 @@ if not is_linux =09reason =3D 'only supported on linux' endif =20 -allow_experimental_apis =3D true - sources =3D files('axgbe_ethdev.c', =09=09'axgbe_dev.c', =09=09'axgbe_mdio.c', diff --git a/drivers/net/bnx2x/Makefile b/drivers/net/bnx2x/Makefile index 5f6c39e4ee..451434cc18 100644 --- a/drivers/net/bnx2x/Makefile +++ b/drivers/net/bnx2x/Makefile @@ -12,7 +12,6 @@ LIB =3D librte_pmd_bnx2x.a CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) CFLAGS +=3D -DZLIB_CONST -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API LDLIBS +=3D -lz LDLIBS +=3D -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring LDLIBS +=3D -lrte_ethdev -lrte_net -lrte_kvargs diff --git a/drivers/net/bnx2x/meson.build b/drivers/net/bnx2x/meson.build index 678708905e..4892bb234c 100644 --- a/drivers/net/bnx2x/meson.build +++ b/drivers/net/bnx2x/meson.build @@ -5,7 +5,6 @@ dep =3D dependency('zlib', required: false) build =3D dep.found() reason =3D 'missing dependency, "zlib"' ext_deps +=3D dep -allow_experimental_apis =3D true cflags +=3D '-DZLIB_CONST' sources =3D files('bnx2x.c', =09'bnx2x_ethdev.c', diff --git a/drivers/net/bonding/Makefile b/drivers/net/bonding/Makefile index a64296d8cf..728551a846 100644 --- a/drivers/net/bonding/Makefile +++ b/drivers/net/bonding/Makefile @@ -8,7 +8,6 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB =3D librte_pmd_bond.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) LDLIBS +=3D -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring diff --git a/drivers/net/bonding/meson.build b/drivers/net/bonding/meson.bu= ild index d133375d4a..a3eff3b31c 100644 --- a/drivers/net/bonding/meson.build +++ b/drivers/net/bonding/meson.build @@ -2,7 +2,6 @@ # Copyright(c) 2017 Intel Corporation =20 name =3D 'bond' #, james bond :-) -allow_experimental_apis =3D true sources =3D files('rte_eth_bond_api.c', 'rte_eth_bond_pmd.c', 'rte_eth_bon= d_flow.c', =09'rte_eth_bond_args.c', 'rte_eth_bond_8023ad.c', 'rte_eth_bond_alb.c') =20 diff --git a/drivers/net/dpaa/Makefile b/drivers/net/dpaa/Makefile index f63c9bf540..d7bbc0e158 100644 --- a/drivers/net/dpaa/Makefile +++ b/drivers/net/dpaa/Makefile @@ -25,9 +25,6 @@ CFLAGS +=3D -I$(RTE_SDK)/lib/librte_eal/include =20 EXPORT_MAP :=3D rte_pmd_dpaa_version.map =20 -# depends on dpaa bus which uses experimental API -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API - # Interfaces with DPDK SRCS-$(CONFIG_RTE_LIBRTE_DPAA_PMD) +=3D dpaa_ethdev.c SRCS-$(CONFIG_RTE_LIBRTE_DPAA_PMD) +=3D dpaa_rxtx.c diff --git a/drivers/net/dpaa/meson.build b/drivers/net/dpaa/meson.build index 542b44af4f..271416f081 100644 --- a/drivers/net/dpaa/meson.build +++ b/drivers/net/dpaa/meson.build @@ -14,6 +14,4 @@ if cc.has_argument('-Wno-pointer-arith') =09cflags +=3D '-Wno-pointer-arith' endif =20 -allow_experimental_apis =3D true - install_headers('rte_pmd_dpaa.h') diff --git a/drivers/net/dpaa2/Makefile b/drivers/net/dpaa2/Makefile index cdd9115ba4..6f38c18b9b 100644 --- a/drivers/net/dpaa2/Makefile +++ b/drivers/net/dpaa2/Makefile @@ -24,9 +24,6 @@ CFLAGS +=3D -I$(RTE_SDK)/drivers/mempool/dpaa2 # versioning export map EXPORT_MAP :=3D rte_pmd_dpaa2_version.map =20 -# depends on fslmc bus which uses experimental API -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API - SRCS-$(CONFIG_RTE_LIBRTE_DPAA2_PMD) +=3D base/dpaa2_hw_dpni.c SRCS-$(CONFIG_RTE_LIBRTE_DPAA2_PMD) +=3D dpaa2_rxtx.c SRCS-$(CONFIG_RTE_LIBRTE_DPAA2_PMD) +=3D dpaa2_ethdev.c diff --git a/drivers/net/dpaa2/meson.build b/drivers/net/dpaa2/meson.build index 571cdb7d4b..6dd0eb274c 100644 --- a/drivers/net/dpaa2/meson.build +++ b/drivers/net/dpaa2/meson.build @@ -24,7 +24,4 @@ endif =20 includes +=3D include_directories('base', 'mc') =20 -# depends on fslmc bus which uses experimental API -allow_experimental_apis =3D true - install_headers('rte_pmd_dpaa2.h') diff --git a/drivers/net/e1000/Makefile b/drivers/net/e1000/Makefile index d93a5225c3..9fb038cf08 100644 --- a/drivers/net/e1000/Makefile +++ b/drivers/net/e1000/Makefile @@ -10,7 +10,6 @@ LIB =3D librte_pmd_e1000.a =20 CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API LDLIBS +=3D -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring LDLIBS +=3D -lrte_ethdev -lrte_net -lrte_kvargs LDLIBS +=3D -lrte_bus_pci diff --git a/drivers/net/e1000/base/meson.build b/drivers/net/e1000/base/me= son.build index f26f242987..5e1716defe 100644 --- a/drivers/net/e1000/base/meson.build +++ b/drivers/net/e1000/base/meson.build @@ -25,9 +25,6 @@ error_cflags =3D ['-Wno-uninitialized', '-Wno-unused-para= meter', =09'-Wno-unused-variable', '-Wno-misleading-indentation', =09'-Wno-implicit-fallthrough'] c_args =3D cflags -if allow_experimental_apis -=09c_args +=3D '-DALLOW_EXPERIMENTAL_API' -endif foreach flag: error_cflags =09if cc.has_argument(flag) =09=09c_args +=3D flag diff --git a/drivers/net/e1000/meson.build b/drivers/net/e1000/meson.build index d0901d3779..cf456995cc 100644 --- a/drivers/net/e1000/meson.build +++ b/drivers/net/e1000/meson.build @@ -1,8 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation =20 -allow_experimental_apis =3D true - subdir('base') objs =3D [base_objs] =20 diff --git a/drivers/net/ena/Makefile b/drivers/net/ena/Makefile index b44daa896f..8ccff36db7 100644 --- a/drivers/net/ena/Makefile +++ b/drivers/net/ena/Makefile @@ -12,8 +12,6 @@ CFLAGS +=3D $(WERROR_FLAGS) -O2 INCLUDES :=3D-I$(SRCDIR) -I$(SRCDIR)/base/ena_defs -I$(SRCDIR)/base =20 EXPORT_MAP :=3D rte_pmd_ena_version.map -# rte_fbarray is not yet part of stable API -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 VPATH +=3D $(SRCDIR)/base # diff --git a/drivers/net/ena/meson.build b/drivers/net/ena/meson.build index 091ca6e3f8..189903b901 100644 --- a/drivers/net/ena/meson.build +++ b/drivers/net/ena/meson.build @@ -1,7 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Intel Corporation =20 -allow_experimental_apis =3D true sources =3D files('ena_ethdev.c', =09'base/ena_com.c', =09'base/ena_eth_com.c') diff --git a/drivers/net/enetc/Makefile b/drivers/net/enetc/Makefile index 7f7a85f649..7276026e37 100644 --- a/drivers/net/enetc/Makefile +++ b/drivers/net/enetc/Makefile @@ -11,7 +11,6 @@ LIB =3D librte_pmd_enetc.a CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) CFLAGS +=3D -I$(RTE_SDK)/drivers/common/dpaax -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API EXPORT_MAP :=3D rte_pmd_enetc_version.map SRCS-$(CONFIG_RTE_LIBRTE_ENETC_PMD) +=3D enetc_ethdev.c SRCS-$(CONFIG_RTE_LIBRTE_ENETC_PMD) +=3D enetc_rxtx.c diff --git a/drivers/net/enetc/meson.build b/drivers/net/enetc/meson.build index af11c0960c..bea54bea88 100644 --- a/drivers/net/enetc/meson.build +++ b/drivers/net/enetc/meson.build @@ -11,4 +11,3 @@ sources =3D files('enetc_ethdev.c', =09=09'enetc_rxtx.c') =20 includes +=3D include_directories('base') -allow_experimental_apis =3D true diff --git a/drivers/net/enic/Makefile b/drivers/net/enic/Makefile index 316088a3c7..d098a474a1 100644 --- a/drivers/net/enic/Makefile +++ b/drivers/net/enic/Makefile @@ -11,8 +11,6 @@ LIB =3D librte_pmd_enic.a =20 EXPORT_MAP :=3D rte_pmd_enic_version.map =20 -# Experimental APIs used: rte_intr_ack -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -I$(SRCDIR)/base/ CFLAGS +=3D -I$(SRCDIR) CFLAGS +=3D -O3 diff --git a/drivers/net/enic/meson.build b/drivers/net/enic/meson.build index e5eeb56675..1bd7cc7e1b 100644 --- a/drivers/net/enic/meson.build +++ b/drivers/net/enic/meson.build @@ -1,8 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Cisco Systems, Inc. =20 -# Experimental APIs used: rte_intr_ack -cflags +=3D ['-DALLOW_EXPERIMENTAL_API'] sources =3D files( =09'base/vnic_cq.c', =09'base/vnic_dev.c', diff --git a/drivers/net/failsafe/Makefile b/drivers/net/failsafe/Makefile index bebc9056e0..464fd0515d 100644 --- a/drivers/net/failsafe/Makefile +++ b/drivers/net/failsafe/Makefile @@ -27,7 +27,6 @@ endif # No exported include files =20 # Basic CFLAGS: -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -std=3Dgnu99 -Wextra CFLAGS +=3D -O3 CFLAGS +=3D -I. diff --git a/drivers/net/failsafe/meson.build b/drivers/net/failsafe/meson.= build index dfd4067cbd..56010e2120 100644 --- a/drivers/net/failsafe/meson.build +++ b/drivers/net/failsafe/meson.build @@ -11,8 +11,6 @@ else =09cflags +=3D '-DBSD' endif =20 -allow_experimental_apis =3D true - sources =3D files('failsafe_args.c', =09'failsafe.c', =09'failsafe_eal.c', diff --git a/drivers/net/fm10k/Makefile b/drivers/net/fm10k/Makefile index 29e659da8a..d486389928 100644 --- a/drivers/net/fm10k/Makefile +++ b/drivers/net/fm10k/Makefile @@ -10,7 +10,6 @@ LIB =3D librte_pmd_fm10k.a =20 CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 EXPORT_MAP :=3D rte_pmd_fm10k_version.map =20 diff --git a/drivers/net/fm10k/base/meson.build b/drivers/net/fm10k/base/me= son.build index 40d9b730a3..6ac11b2012 100644 --- a/drivers/net/fm10k/base/meson.build +++ b/drivers/net/fm10k/base/meson.build @@ -16,9 +16,6 @@ error_cflags =3D ['-Wno-unused-parameter', '-Wno-unused-v= alue', =09'-Wno-implicit-fallthrough' ] c_args =3D cflags -if allow_experimental_apis -=09c_args +=3D '-DALLOW_EXPERIMENTAL_API' -endif foreach flag: error_cflags =09if cc.has_argument(flag) =09=09c_args +=3D flag diff --git a/drivers/net/fm10k/meson.build b/drivers/net/fm10k/meson.build index 8f6e423922..2772ea4dfc 100644 --- a/drivers/net/fm10k/meson.build +++ b/drivers/net/fm10k/meson.build @@ -1,8 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation =20 -allow_experimental_apis =3D true - subdir('base') objs =3D [base_objs] =20 diff --git a/drivers/net/hns3/Makefile b/drivers/net/hns3/Makefile index ae0ee7e931..d7798a4706 100644 --- a/drivers/net/hns3/Makefile +++ b/drivers/net/hns3/Makefile @@ -10,7 +10,6 @@ LIB =3D librte_pmd_hns3.a =20 CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API # Experimantal APIs: # - rte_mp_action_register # - rte_mp_action_unregister diff --git a/drivers/net/hns3/meson.build b/drivers/net/hns3/meson.build index 1a350fc8c6..e01e6ce60b 100644 --- a/drivers/net/hns3/meson.build +++ b/drivers/net/hns3/meson.build @@ -27,11 +27,4 @@ sources =3D files('hns3_cmd.c', =09'hns3_stats.c', =09'hns3_mp.c') =20 -allow_experimental_apis =3D true -# Experimantal APIs: -# - rte_mp_action_register -# - rte_mp_action_unregister -# - rte_mp_reply -# - rte_mp_request_sync - deps +=3D ['hash'] diff --git a/drivers/net/i40e/Makefile b/drivers/net/i40e/Makefile index 819473abac..7ec8d95331 100644 --- a/drivers/net/i40e/Makefile +++ b/drivers/net/i40e/Makefile @@ -11,7 +11,6 @@ LIB =3D librte_pmd_i40e.a CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -DPF_DRIVER -DVF_DRIVER -DINTEGRATED_VF CFLAGS +=3D -DX722_A0_SUPPORT -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 LDLIBS +=3D -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring LDLIBS +=3D -lrte_ethdev -lrte_net -lrte_kvargs -lrte_hash diff --git a/drivers/net/i40e/base/meson.build b/drivers/net/i40e/base/meso= n.build index 3dee8c9754..db0c830dc2 100644 --- a/drivers/net/i40e/base/meson.build +++ b/drivers/net/i40e/base/meson.build @@ -18,9 +18,6 @@ error_cflags =3D ['-Wno-sign-compare', '-Wno-unused-value= ', =09=09'-Wno-unused-parameter', ] c_args =3D cflags -if allow_experimental_apis -=09c_args +=3D '-DALLOW_EXPERIMENTAL_API' -endif foreach flag: error_cflags =09if cc.has_argument(flag) =09=09c_args +=3D flag diff --git a/drivers/net/i40e/meson.build b/drivers/net/i40e/meson.build index b01babba1f..886e8da664 100644 --- a/drivers/net/i40e/meson.build +++ b/drivers/net/i40e/meson.build @@ -4,8 +4,7 @@ cflags +=3D ['-DPF_DRIVER', =09'-DVF_DRIVER', =09'-DINTEGRATED_VF', -=09'-DX722_A0_SUPPORT', -=09'-DALLOW_EXPERIMENTAL_API'] +=09'-DX722_A0_SUPPORT'] =20 subdir('base') objs =3D [base_objs] diff --git a/drivers/net/iavf/Makefile b/drivers/net/iavf/Makefile index 514073d76e..399682594e 100644 --- a/drivers/net/iavf/Makefile +++ b/drivers/net/iavf/Makefile @@ -9,7 +9,7 @@ include $(RTE_SDK)/mk/rte.vars.mk LIB =3D librte_pmd_iavf.a =20 CFLAGS +=3D -I$(RTE_SDK)/drivers/common/iavf -CFLAGS +=3D -O3 $(WERROR_FLAGS) -Wno-strict-aliasing -DALLOW_EXPERIMENTAL_= API +CFLAGS +=3D -O3 $(WERROR_FLAGS) -Wno-strict-aliasing LDLIBS +=3D -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring LDLIBS +=3D -lrte_ethdev -lrte_net -lrte_kvargs -lrte_hash LDLIBS +=3D -lrte_bus_pci diff --git a/drivers/net/iavf/meson.build b/drivers/net/iavf/meson.build index dbd0b01db5..7bf3a33043 100644 --- a/drivers/net/iavf/meson.build +++ b/drivers/net/iavf/meson.build @@ -3,8 +3,6 @@ =20 cflags +=3D ['-Wno-strict-aliasing'] =20 -allow_experimental_apis =3D true - includes +=3D include_directories('../../common/iavf') deps +=3D ['common_iavf'] =20 diff --git a/drivers/net/ice/Makefile b/drivers/net/ice/Makefile index 6c4d155268..54a90a86f9 100644 --- a/drivers/net/ice/Makefile +++ b/drivers/net/ice/Makefile @@ -10,7 +10,6 @@ LIB =3D librte_pmd_ice.a =20 CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 LDLIBS +=3D -lrte_eal -lrte_mbuf -lrte_ethdev -lrte_kvargs LDLIBS +=3D -lrte_bus_pci -lrte_mempool -lrte_hash diff --git a/drivers/net/ice/meson.build b/drivers/net/ice/meson.build index f9e897bbc2..617b2c815d 100644 --- a/drivers/net/ice/meson.build +++ b/drivers/net/ice/meson.build @@ -1,8 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Intel Corporation =20 -allow_experimental_apis =3D true - subdir('base') objs =3D [base_objs] =20 diff --git a/drivers/net/ionic/Makefile b/drivers/net/ionic/Makefile index f74ac2d34f..7442e2c5cb 100644 --- a/drivers/net/ionic/Makefile +++ b/drivers/net/ionic/Makefile @@ -8,9 +8,6 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB =3D librte_pmd_ionic.a =20 -# Required to use rte_eth_dev_create and rte_eth_dev_destroy -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API - CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) =20 diff --git a/drivers/net/ipn3ke/Makefile b/drivers/net/ipn3ke/Makefile index 2c7ef0a1d8..40696dbde8 100644 --- a/drivers/net/ipn3ke/Makefile +++ b/drivers/net/ipn3ke/Makefile @@ -15,7 +15,6 @@ LIB =3D librte_pmd_ipn3ke.a # rte_eth_dev_destroy() # rte_eth_switch_domain_free() # -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) CFLAGS +=3D -I$(RTE_SDK)/drivers/bus/ifpga diff --git a/drivers/net/ipn3ke/meson.build b/drivers/net/ipn3ke/meson.buil= d index f19083af15..ec9cb7daf0 100644 --- a/drivers/net/ipn3ke/meson.build +++ b/drivers/net/ipn3ke/meson.build @@ -19,8 +19,6 @@ if not dep.found() =09subdir_done() endif =20 -allow_experimental_apis =3D true - includes +=3D include_directories('../../raw/ifpga') =20 sources +=3D files('ipn3ke_ethdev.c', diff --git a/drivers/net/ixgbe/Makefile b/drivers/net/ixgbe/Makefile index aec56a6807..0f0bcf1d66 100644 --- a/drivers/net/ixgbe/Makefile +++ b/drivers/net/ixgbe/Makefile @@ -8,7 +8,6 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB =3D librte_pmd_ixgbe.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) =20 diff --git a/drivers/net/ixgbe/base/meson.build b/drivers/net/ixgbe/base/me= son.build index bbd0f51ea5..da3887560d 100644 --- a/drivers/net/ixgbe/base/meson.build +++ b/drivers/net/ixgbe/base/meson.build @@ -22,9 +22,6 @@ error_cflags =3D ['-Wno-unused-value', =09=09'-Wno-unused-parameter', =09=09] c_args =3D cflags -if allow_experimental_apis -=09c_args +=3D '-DALLOW_EXPERIMENTAL_API' -endif foreach flag: error_cflags =09if cc.has_argument(flag) =09=09c_args +=3D flag diff --git a/drivers/net/ixgbe/meson.build b/drivers/net/ixgbe/meson.build index 06cf42a4aa..949075eb22 100644 --- a/drivers/net/ixgbe/meson.build +++ b/drivers/net/ixgbe/meson.build @@ -3,8 +3,6 @@ =20 cflags +=3D ['-DRTE_LIBRTE_IXGBE_BYPASS'] =20 -allow_experimental_apis =3D true - subdir('base') objs =3D [base_objs] =20 diff --git a/drivers/net/memif/Makefile b/drivers/net/memif/Makefile index 959b36bcbd..3bf4ddce4c 100644 --- a/drivers/net/memif/Makefile +++ b/drivers/net/memif/Makefile @@ -12,13 +12,6 @@ EXPORT_MAP :=3D rte_pmd_memif_version.map =20 CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API -# Experimantal APIs: -# - rte_intr_callback_unregister_pending -# - rte_mp_action_register -# - rte_mp_reply -# - rte_mp_request_sync -# - rte_mcfg_get_single_file_segments LDLIBS +=3D -lrte_eal -lrte_mbuf -lrte_mempool LDLIBS +=3D -lrte_ethdev -lrte_kvargs -lrte_net LDLIBS +=3D -lrte_hash diff --git a/drivers/net/memif/meson.build b/drivers/net/memif/meson.build index 4c1c647f64..9c3ba432d0 100644 --- a/drivers/net/memif/meson.build +++ b/drivers/net/memif/meson.build @@ -9,12 +9,4 @@ endif sources =3D files('rte_eth_memif.c', =09=09'memif_socket.c') =20 -allow_experimental_apis =3D true -# Experimantal APIs: -# - rte_intr_callback_unregister_pending -# - rte_mp_action_register -# - rte_mp_reply -# - rte_mp_request_sync -# - rte_mcfg_get_single_file_segments - deps +=3D ['hash'] diff --git a/drivers/net/mlx4/Makefile b/drivers/net/mlx4/Makefile index c5543ed3da..02e9b2ec07 100644 --- a/drivers/net/mlx4/Makefile +++ b/drivers/net/mlx4/Makefile @@ -38,7 +38,6 @@ CFLAGS +=3D -D_BSD_SOURCE CFLAGS +=3D -D_DEFAULT_SOURCE CFLAGS +=3D -D_XOPEN_SOURCE=3D600 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API ifeq ($(CONFIG_RTE_IBVERBS_LINK_DLOPEN),y) CFLAGS +=3D -DMLX4_GLUE=3D'"$(LIB_GLUE)"' CFLAGS +=3D -DMLX4_GLUE_VERSION=3D'"$(LIB_GLUE_VERSION)"' diff --git a/drivers/net/mlx4/meson.build b/drivers/net/mlx4/meson.build index c598745730..5a25e11a7b 100644 --- a/drivers/net/mlx4/meson.build +++ b/drivers/net/mlx4/meson.build @@ -50,7 +50,6 @@ if static_ibverbs =09ext_deps +=3D declare_dependency(link_args:ibv_ldflags.split()) endif =20 -allow_experimental_apis =3D true sources =3D files( =09'mlx4.c', =09'mlx4_ethdev.c', diff --git a/drivers/net/mlx5/Makefile b/drivers/net/mlx5/Makefile index e8ba6244d6..2577ee5e5c 100644 --- a/drivers/net/mlx5/Makefile +++ b/drivers/net/mlx5/Makefile @@ -56,9 +56,6 @@ CFLAGS +=3D -Wno-error=3Dcast-qual =20 EXPORT_MAP :=3D rte_pmd_mlx5_version.map =20 -# memseg walk is not part of stable API -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API - # DEBUG which is usually provided on the command-line may enable # CONFIG_RTE_LIBRTE_MLX5_DEBUG. ifeq ($(DEBUG),1) diff --git a/drivers/net/mlx5/meson.build b/drivers/net/mlx5/meson.build index d418d26ba9..928663af7e 100644 --- a/drivers/net/mlx5/meson.build +++ b/drivers/net/mlx5/meson.build @@ -8,7 +8,6 @@ if not is_linux =09subdir_done() endif =20 -allow_experimental_apis =3D true deps +=3D ['hash', 'common_mlx5'] sources =3D files( =09'mlx5.c', diff --git a/drivers/net/netvsc/Makefile b/drivers/net/netvsc/Makefile index 45526e2a8e..da8991584a 100644 --- a/drivers/net/netvsc/Makefile +++ b/drivers/net/netvsc/Makefile @@ -5,7 +5,6 @@ include $(RTE_SDK)/mk/rte.vars.mk LIB =3D librte_pmd_netvsc.a =20 CFLAGS +=3D -O3 $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 EXPORT_MAP :=3D rte_pmd_netvsc_version.map =20 diff --git a/drivers/net/netvsc/meson.build b/drivers/net/netvsc/meson.buil= d index 131dd2866e..e7f4493028 100644 --- a/drivers/net/netvsc/meson.build +++ b/drivers/net/netvsc/meson.build @@ -6,5 +6,3 @@ reason =3D 'missing dependency, DPDK VMBus driver' sources =3D files('hn_ethdev.c', 'hn_rxtx.c', 'hn_rndis.c', 'hn_nvs.c', 'h= n_vf.c') =20 deps +=3D ['bus_vmbus' ] - -allow_experimental_apis =3D true diff --git a/drivers/net/nfp/Makefile b/drivers/net/nfp/Makefile index aa720d6698..289b3a60e3 100644 --- a/drivers/net/nfp/Makefile +++ b/drivers/net/nfp/Makefile @@ -10,7 +10,6 @@ LIB =3D librte_pmd_nfp.a =20 CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 LDLIBS +=3D -lm LDLIBS +=3D -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring diff --git a/drivers/net/nfp/meson.build b/drivers/net/nfp/meson.build index b487cdffdf..24a9a6da9c 100644 --- a/drivers/net/nfp/meson.build +++ b/drivers/net/nfp/meson.build @@ -18,5 +18,3 @@ sources =3D files('nfpcore/nfp_cpp_pcie_ops.c', =09'nfpcore/nfp_nsp_eth.c', =09'nfpcore/nfp_hwinfo.c', =09'nfp_net.c') - -allow_experimental_apis =3D true diff --git a/drivers/net/octeontx/Makefile b/drivers/net/octeontx/Makefile index 8ddfc30894..49ef8f3742 100644 --- a/drivers/net/octeontx/Makefile +++ b/drivers/net/octeontx/Makefile @@ -42,8 +42,6 @@ else CFLAGS_octeontx_rxtx.o +=3D -O3 -Ofast endif =20 -CFLAGS_octeontx_ethdev.o +=3D -DALLOW_EXPERIMENTAL_API - LDLIBS +=3D -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring LDLIBS +=3D -lrte_ethdev -lrte_net -lrte_kvargs -lrte_common_octeontx LDLIBS +=3D -lrte_mempool_octeontx diff --git a/drivers/net/octeontx/base/meson.build b/drivers/net/octeontx/b= ase/meson.build index a06a2c89c9..b72104170e 100644 --- a/drivers/net/octeontx/base/meson.build +++ b/drivers/net/octeontx/base/meson.build @@ -14,9 +14,6 @@ foreach d: depends endforeach =20 c_args =3D cflags -if allow_experimental_apis -=09c_args +=3D '-DALLOW_EXPERIMENTAL_API' -endif base_lib =3D static_library('octeontx_base', sources, =09c_args: c_args, =09dependencies: static_objs, diff --git a/drivers/net/octeontx/meson.build b/drivers/net/octeontx/meson.= build index 0e249eb98d..ef789eaa90 100644 --- a/drivers/net/octeontx/meson.build +++ b/drivers/net/octeontx/meson.build @@ -8,8 +8,6 @@ sources =3D files('octeontx_rxtx.c', =09=09'octeontx_ethdev.c' =09=09) =20 -allow_experimental_apis =3D true - deps +=3D ['mempool_octeontx', 'eventdev'] =20 includes +=3D include_directories('base') diff --git a/drivers/net/pfe/Makefile b/drivers/net/pfe/Makefile index 20a3839e7a..75d30b01aa 100644 --- a/drivers/net/pfe/Makefile +++ b/drivers/net/pfe/Makefile @@ -15,10 +15,6 @@ CFLAGS +=3D -I$(RTE_SDK)/drivers/net/pfe/base/ CFLAGS +=3D -I$(RTE_SDK)/drivers/common/dpaax =20 EXPORT_MAP :=3D rte_pmd_pfe_version.map -# Driver uses below experimental APIs -# rte_mem_iova2virt -# rte_mem_virt2memseg -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 # Interfaces with DPDK SRCS-$(CONFIG_RTE_LIBRTE_PFE_PMD) +=3D pfe_ethdev.c diff --git a/drivers/net/pfe/meson.build b/drivers/net/pfe/meson.build index 678ce49a9d..3e1a228a3f 100644 --- a/drivers/net/pfe/meson.build +++ b/drivers/net/pfe/meson.build @@ -15,9 +15,4 @@ if cc.has_argument('-Wno-pointer-arith') =09cflags +=3D '-Wno-pointer-arith' endif =20 -# Driver uses below experimental APIs -# rte_mem_iova2virt -# rte_mem_virt2memseg -allow_experimental_apis =3D true - includes +=3D include_directories('base') diff --git a/drivers/net/qede/Makefile b/drivers/net/qede/Makefile index ada33800c4..5810b4d49a 100644 --- a/drivers/net/qede/Makefile +++ b/drivers/net/qede/Makefile @@ -12,7 +12,6 @@ LIB =3D librte_pmd_qede.a =20 CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API LDLIBS +=3D -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring LDLIBS +=3D -lrte_ethdev -lrte_net -lrte_kvargs LDLIBS +=3D -lrte_bus_pci diff --git a/drivers/net/qede/base/meson.build b/drivers/net/qede/base/meso= n.build index 71b89737df..59b41c895d 100644 --- a/drivers/net/qede/base/meson.build +++ b/drivers/net/qede/base/meson.build @@ -45,9 +45,6 @@ error_cflags =3D [ =09'-Wno-pointer-bool-conversion', ] c_args =3D cflags -if allow_experimental_apis -=09c_args +=3D '-DALLOW_EXPERIMENTAL_API' -endif foreach flag: error_cflags if cc.has_argument(flag) c_args +=3D flag diff --git a/drivers/net/qede/meson.build b/drivers/net/qede/meson.build index 1755719f0a..12388a680e 100644 --- a/drivers/net/qede/meson.build +++ b/drivers/net/qede/meson.build @@ -1,8 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Luca Boccassi =20 -allow_experimental_apis =3D true - subdir('base') objs =3D [base_objs] =20 diff --git a/drivers/net/sfc/Makefile b/drivers/net/sfc/Makefile index 1f9c0bc3e0..921771db76 100644 --- a/drivers/net/sfc/Makefile +++ b/drivers/net/sfc/Makefile @@ -13,7 +13,6 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB =3D librte_pmd_sfc_efx.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -I$(SRCDIR)/base/ CFLAGS +=3D -I$(SRCDIR) CFLAGS +=3D -O3 diff --git a/drivers/net/sfc/base/meson.build b/drivers/net/sfc/base/meson.= build index 074112f169..bc7bc86cdb 100644 --- a/drivers/net/sfc/base/meson.build +++ b/drivers/net/sfc/base/meson.build @@ -63,9 +63,6 @@ extra_flags =3D [ ] =20 c_args =3D cflags -if allow_experimental_apis -=09c_args +=3D '-DALLOW_EXPERIMENTAL_API' -endif foreach flag: extra_flags =09if cc.has_argument(flag) =09=09c_args +=3D flag diff --git a/drivers/net/sfc/meson.build b/drivers/net/sfc/meson.build index 8c54f9d548..c2f6af7579 100644 --- a/drivers/net/sfc/meson.build +++ b/drivers/net/sfc/meson.build @@ -11,8 +11,6 @@ if arch_subdir !=3D 'x86' or not dpdk_conf.get('RTE_ARCH_= 64') =09reason =3D 'only supported on x86_64' endif =20 -allow_experimental_apis =3D true - extra_flags =3D [] =20 # Strict-aliasing rules are violated by rte_eth_link to uint64_t casts diff --git a/drivers/net/softnic/Makefile b/drivers/net/softnic/Makefile index 5068ffa18a..dabbe13a5f 100644 --- a/drivers/net/softnic/Makefile +++ b/drivers/net/softnic/Makefile @@ -8,7 +8,6 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB =3D librte_pmd_softnic.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) LDLIBS +=3D -lrte_pipeline -lrte_port -lrte_table diff --git a/drivers/net/softnic/meson.build b/drivers/net/softnic/meson.bu= ild index 9c10c2ec80..96c003e157 100644 --- a/drivers/net/softnic/meson.build +++ b/drivers/net/softnic/meson.build @@ -5,7 +5,6 @@ if not is_linux =09build =3D false =09reason =3D 'only supported on linux' endif -allow_experimental_apis =3D true install_headers('rte_eth_softnic.h') sources =3D files('rte_eth_softnic_tm.c', =09'rte_eth_softnic.c', diff --git a/drivers/net/tap/Makefile b/drivers/net/tap/Makefile index 088fa8f9a9..cbf87af401 100644 --- a/drivers/net/tap/Makefile +++ b/drivers/net/tap/Makefile @@ -20,7 +20,6 @@ CFLAGS +=3D -O3 CFLAGS +=3D -I$(SRCDIR) CFLAGS +=3D -I. CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API LDLIBS +=3D -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring LDLIBS +=3D -lrte_ethdev -lrte_net -lrte_kvargs -lrte_hash LDLIBS +=3D -lrte_bus_vdev -lrte_gso diff --git a/drivers/net/tap/meson.build b/drivers/net/tap/meson.build index baa70f7564..c1cdf9e673 100644 --- a/drivers/net/tap/meson.build +++ b/drivers/net/tap/meson.build @@ -39,7 +39,6 @@ args =3D [ =09 'TCA_ACT_BPF_FD' ], ] config =3D configuration_data() -allow_experimental_apis =3D true foreach arg:args =09config.set(arg[0], cc.has_header_symbol(arg[1], arg[2])) endforeach diff --git a/drivers/net/thunderx/Makefile b/drivers/net/thunderx/Makefile index 969338a189..149638a499 100644 --- a/drivers/net/thunderx/Makefile +++ b/drivers/net/thunderx/Makefile @@ -10,7 +10,6 @@ include $(RTE_SDK)/mk/rte.vars.mk LIB =3D librte_pmd_thunderx_nicvf.a =20 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 LDLIBS +=3D -lm LDLIBS +=3D -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring diff --git a/drivers/net/thunderx/base/meson.build b/drivers/net/thunderx/b= ase/meson.build index bf4e8608ad..8998264a3a 100644 --- a/drivers/net/thunderx/base/meson.build +++ b/drivers/net/thunderx/base/meson.build @@ -8,9 +8,6 @@ sources =3D [ ] =20 c_args =3D cflags -if allow_experimental_apis -=09c_args +=3D '-DALLOW_EXPERIMENTAL_API' -endif base_lib =3D static_library('nicvf_base', sources, =09c_args: c_args, =09dependencies: static_rte_ethdev diff --git a/drivers/net/thunderx/meson.build b/drivers/net/thunderx/meson.= build index 23d9458115..69819a97fa 100644 --- a/drivers/net/thunderx/meson.build +++ b/drivers/net/thunderx/meson.build @@ -4,7 +4,6 @@ subdir('base') objs =3D [base_objs] =20 -allow_experimental_apis =3D true sources =3D files('nicvf_rxtx.c', =09=09'nicvf_ethdev.c', =09=09'nicvf_svf.c' diff --git a/drivers/net/vdev_netvsc/Makefile b/drivers/net/vdev_netvsc/Mak= efile index 9cd81225b3..01d26fb798 100644 --- a/drivers/net/vdev_netvsc/Makefile +++ b/drivers/net/vdev_netvsc/Makefile @@ -9,7 +9,6 @@ LIB =3D librte_pmd_vdev_netvsc.a EXPORT_MAP :=3D rte_pmd_vdev_netvsc_version.map =20 # Additional compilation flags. -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D -g CFLAGS +=3D -Wall -Wextra diff --git a/drivers/net/vdev_netvsc/meson.build b/drivers/net/vdev_netvsc/= meson.build index bf62edb7a3..58b0012ed9 100644 --- a/drivers/net/vdev_netvsc/meson.build +++ b/drivers/net/vdev_netvsc/meson.build @@ -7,8 +7,6 @@ if not is_linux endif sources =3D files('vdev_netvsc.c') =20 -allow_experimental_apis =3D true - cflags_options =3D [ '-D_BSD_SOURCE', '-D_DEFAULT_SOURCE', diff --git a/drivers/net/virtio/Makefile b/drivers/net/virtio/Makefile index efdcb0d93f..c9edb84eeb 100644 --- a/drivers/net/virtio/Makefile +++ b/drivers/net/virtio/Makefile @@ -8,7 +8,6 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB =3D librte_pmd_virtio.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) LDLIBS +=3D -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring diff --git a/drivers/net/virtio/meson.build b/drivers/net/virtio/meson.buil= d index 5e7ca855c8..15150eea17 100644 --- a/drivers/net/virtio/meson.build +++ b/drivers/net/virtio/meson.build @@ -1,7 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Intel Corporation =20 -allow_experimental_apis =3D true sources +=3D files('virtio_ethdev.c', =09'virtio_pci.c', =09'virtio_rxtx.c', diff --git a/drivers/net/vmxnet3/Makefile b/drivers/net/vmxnet3/Makefile index 3a63cf2e91..4390fedee0 100644 --- a/drivers/net/vmxnet3/Makefile +++ b/drivers/net/vmxnet3/Makefile @@ -8,7 +8,6 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB =3D librte_pmd_vmxnet3_uio.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) =20 diff --git a/drivers/net/vmxnet3/meson.build b/drivers/net/vmxnet3/meson.bu= ild index a92bd28680..0641f776ff 100644 --- a/drivers/net/vmxnet3/meson.build +++ b/drivers/net/vmxnet3/meson.build @@ -1,7 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Luca Boccassi =20 -allow_experimental_apis =3D true sources +=3D files( =09'vmxnet3_ethdev.c', =09'vmxnet3_rxtx.c', diff --git a/drivers/raw/dpaa2_cmdif/Makefile b/drivers/raw/dpaa2_cmdif/Mak= efile index f671a30ccf..227ec4896e 100644 --- a/drivers/raw/dpaa2_cmdif/Makefile +++ b/drivers/raw/dpaa2_cmdif/Makefile @@ -8,7 +8,6 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB =3D librte_rawdev_dpaa2_cmdif.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) =20 diff --git a/drivers/raw/dpaa2_cmdif/meson.build b/drivers/raw/dpaa2_cmdif/= meson.build index 70247622bc..e7656a3cda 100644 --- a/drivers/raw/dpaa2_cmdif/meson.build +++ b/drivers/raw/dpaa2_cmdif/meson.build @@ -6,6 +6,4 @@ reason =3D 'missing dependency, DPDK DPAA2 mempool driver' deps +=3D ['rawdev', 'mempool_dpaa2', 'bus_vdev'] sources =3D files('dpaa2_cmdif.c') =20 -allow_experimental_apis =3D true - install_headers('rte_pmd_dpaa2_cmdif.h') diff --git a/drivers/raw/dpaa2_qdma/Makefile b/drivers/raw/dpaa2_qdma/Makef= ile index fc5b3435b0..7b2abdddb4 100644 --- a/drivers/raw/dpaa2_qdma/Makefile +++ b/drivers/raw/dpaa2_qdma/Makefile @@ -8,7 +8,6 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB =3D librte_rawdev_dpaa2_qdma.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) =20 diff --git a/drivers/raw/dpaa2_qdma/meson.build b/drivers/raw/dpaa2_qdma/me= son.build index fe166d9183..b9b08153ac 100644 --- a/drivers/raw/dpaa2_qdma/meson.build +++ b/drivers/raw/dpaa2_qdma/meson.build @@ -6,6 +6,4 @@ reason =3D 'missing dependency, DPDK DPAA2 mempool driver' deps +=3D ['rawdev', 'mempool_dpaa2', 'ring', 'kvargs'] sources =3D files('dpaa2_qdma.c') =20 -allow_experimental_apis =3D true - install_headers('rte_pmd_dpaa2_qdma.h') diff --git a/drivers/raw/ifpga/Makefile b/drivers/raw/ifpga/Makefile index eb03a856c0..371e127f19 100644 --- a/drivers/raw/ifpga/Makefile +++ b/drivers/raw/ifpga/Makefile @@ -8,7 +8,6 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB =3D librte_rawdev_ifpga.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) CFLAGS +=3D -I$(RTE_SDK)/drivers/bus/ifpga diff --git a/drivers/raw/ifpga/meson.build b/drivers/raw/ifpga/meson.build index e2a4b8cccb..05a1711b5d 100644 --- a/drivers/raw/ifpga/meson.build +++ b/drivers/raw/ifpga/meson.build @@ -23,5 +23,3 @@ sources =3D files('ifpga_rawdev.c') includes +=3D include_directories('base') includes +=3D include_directories('../../net/ipn3ke') includes +=3D include_directories('../../net/i40e') - -allow_experimental_apis =3D true diff --git a/drivers/raw/ntb/Makefile b/drivers/raw/ntb/Makefile index d69b4306bc..8f0bff9b02 100644 --- a/drivers/raw/ntb/Makefile +++ b/drivers/raw/ntb/Makefile @@ -8,7 +8,6 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB =3D librte_rawdev_ntb.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) LDLIBS +=3D -lrte_eal -lrte_mbuf -lrte_mempool diff --git a/drivers/raw/ntb/meson.build b/drivers/raw/ntb/meson.build index 7a7d261263..2926193a0a 100644 --- a/drivers/raw/ntb/meson.build +++ b/drivers/raw/ntb/meson.build @@ -6,4 +6,3 @@ deps +=3D ['rawdev', 'mbuf', 'mempool', sources =3D files('ntb.c', 'ntb_hw_intel.c') install_headers('rte_pmd_ntb.h') -allow_experimental_apis =3D true diff --git a/drivers/vdpa/ifc/Makefile b/drivers/vdpa/ifc/Makefile index fe227b8110..b468bfdbdd 100644 --- a/drivers/vdpa/ifc/Makefile +++ b/drivers/vdpa/ifc/Makefile @@ -14,7 +14,6 @@ LDLIBS +=3D -lrte_kvargs =20 CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 # # Add extra flags for base driver source files to disable warnings in them diff --git a/drivers/vdpa/ifc/meson.build b/drivers/vdpa/ifc/meson.build index adc9ed9ff0..b179987f98 100644 --- a/drivers/vdpa/ifc/meson.build +++ b/drivers/vdpa/ifc/meson.build @@ -3,7 +3,6 @@ =20 build =3D dpdk_conf.has('RTE_LIBRTE_VHOST') reason =3D 'missing dependency, DPDK vhost library' -allow_experimental_apis =3D true sources =3D files('ifcvf_vdpa.c', 'base/ifcvf.c') includes +=3D include_directories('base') deps +=3D 'vhost' diff --git a/drivers/vdpa/mlx5/Makefile b/drivers/vdpa/mlx5/Makefile index 71532174e2..ef34c0b880 100644 --- a/drivers/vdpa/mlx5/Makefile +++ b/drivers/vdpa/mlx5/Makefile @@ -35,8 +35,6 @@ LDLIBS +=3D -lrte_eal -lrte_vhost -lrte_kvargs -lrte_pci = -lrte_bus_pci -lrte_sched CFLAGS +=3D -Wno-error=3Dcast-qual =20 EXPORT_MAP :=3D rte_pmd_mlx5_vdpa_version.map -# memseg walk is not part of stable API -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 # DEBUG which is usually provided on the command-line may enable # CONFIG_RTE_LIBRTE_MLX5_DEBUG. diff --git a/drivers/vdpa/mlx5/meson.build b/drivers/vdpa/mlx5/meson.build index 9c152e5469..2963aad711 100644 --- a/drivers/vdpa/mlx5/meson.build +++ b/drivers/vdpa/mlx5/meson.build @@ -8,7 +8,6 @@ if not is_linux endif =20 fmt_name =3D 'mlx5_vdpa' -allow_experimental_apis =3D true deps +=3D ['hash', 'common_mlx5', 'vhost', 'pci', 'bus_pci', 'eal', 'sched= '] sources =3D files( =09'mlx5_vdpa.c', diff --git a/lib/librte_bbdev/Makefile b/lib/librte_bbdev/Makefile index cdabf64f47..9d7576b358 100644 --- a/lib/librte_bbdev/Makefile +++ b/lib/librte_bbdev/Makefile @@ -7,7 +7,6 @@ include $(RTE_SDK)/mk/rte.vars.mk LIB =3D librte_bbdev.a =20 # build flags -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) LDLIBS +=3D -lrte_eal -lrte_mempool -lrte_mbuf diff --git a/lib/librte_bbdev/meson.build b/lib/librte_bbdev/meson.build index f6ca0ad7a2..1267782203 100644 --- a/lib/librte_bbdev/meson.build +++ b/lib/librte_bbdev/meson.build @@ -1,7 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation =20 -allow_experimental_apis =3D true sources =3D files('rte_bbdev.c') headers =3D files('rte_bbdev.h', =09=09'rte_bbdev_pmd.h', diff --git a/lib/librte_bpf/Makefile b/lib/librte_bpf/Makefile index 3a20f95e74..3be6750432 100644 --- a/lib/librte_bpf/Makefile +++ b/lib/librte_bpf/Makefile @@ -8,7 +8,6 @@ LIB =3D librte_bpf.a =20 CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -I$(SRCDIR) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API LDLIBS +=3D -lrte_net -lrte_eal LDLIBS +=3D -lrte_mempool -lrte_ring LDLIBS +=3D -lrte_mbuf -lrte_ethdev diff --git a/lib/librte_bpf/meson.build b/lib/librte_bpf/meson.build index 52cfaf9ac2..6070898cb6 100644 --- a/lib/librte_bpf/meson.build +++ b/lib/librte_bpf/meson.build @@ -1,7 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Intel Corporation =20 -allow_experimental_apis =3D true sources =3D files('bpf.c', =09=09'bpf_exec.c', =09=09'bpf_load.c', diff --git a/lib/librte_cmdline/Makefile b/lib/librte_cmdline/Makefile index 5bcaecc338..619d9a2426 100644 --- a/lib/librte_cmdline/Makefile +++ b/lib/librte_cmdline/Makefile @@ -7,7 +7,6 @@ include $(RTE_SDK)/mk/rte.vars.mk LIB =3D librte_cmdline.a =20 CFLAGS +=3D $(WERROR_FLAGS) -I$(SRCDIR) -O3 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 EXPORT_MAP :=3D rte_cmdline_version.map =20 diff --git a/lib/librte_cmdline/meson.build b/lib/librte_cmdline/meson.buil= d index a7dd319664..7fc54ff1ab 100644 --- a/lib/librte_cmdline/meson.build +++ b/lib/librte_cmdline/meson.build @@ -1,7 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation =20 -allow_experimental_apis =3D true sources =3D files('cmdline.c', =09'cmdline_cirbuf.c', =09'cmdline_parse.c', diff --git a/lib/librte_compressdev/Makefile b/lib/librte_compressdev/Makef= ile index 112cdc5b28..53679d69b8 100644 --- a/lib/librte_compressdev/Makefile +++ b/lib/librte_compressdev/Makefile @@ -9,7 +9,6 @@ LIB =3D librte_compressdev.a # build flags CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API LDLIBS +=3D -lrte_eal -lrte_mempool -lrte_kvargs =20 # library source files diff --git a/lib/librte_compressdev/meson.build b/lib/librte_compressdev/me= son.build index 5416571c9d..7d95cd4f30 100644 --- a/lib/librte_compressdev/meson.build +++ b/lib/librte_compressdev/meson.build @@ -1,7 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Intel Corporation =20 -allow_experimental_apis =3D true sources =3D files('rte_compressdev.c', =09'rte_compressdev_pmd.c', =09'rte_comp.c') diff --git a/lib/librte_cryptodev/Makefile b/lib/librte_cryptodev/Makefile index 7fac49afa3..2ba0dbeecc 100644 --- a/lib/librte_cryptodev/Makefile +++ b/lib/librte_cryptodev/Makefile @@ -9,7 +9,6 @@ LIB =3D librte_cryptodev.a # build flags CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API LDLIBS +=3D -lrte_eal -lrte_mempool -lrte_ring -lrte_mbuf LDLIBS +=3D -lrte_kvargs =20 diff --git a/lib/librte_cryptodev/meson.build b/lib/librte_cryptodev/meson.= build index 49bae03a88..42825a8107 100644 --- a/lib/librte_cryptodev/meson.build +++ b/lib/librte_cryptodev/meson.build @@ -1,7 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017-2019 Intel Corporation =20 -allow_experimental_apis =3D true sources =3D files('rte_cryptodev.c', 'rte_cryptodev_pmd.c') headers =3D files('rte_cryptodev.h', =09'rte_cryptodev_pmd.h', diff --git a/lib/librte_eal/freebsd/Makefile b/lib/librte_eal/freebsd/Makef= ile index e5d4d8ff26..2d53ce9eef 100644 --- a/lib/librte_eal/freebsd/Makefile +++ b/lib/librte_eal/freebsd/Makefile @@ -9,7 +9,6 @@ ARCH_DIR ?=3D $(RTE_ARCH) VPATH +=3D $(RTE_SDK)/lib/librte_eal/$(ARCH_DIR) VPATH +=3D $(RTE_SDK)/lib/librte_eal/common =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -I$(SRCDIR)/include CFLAGS +=3D -I$(RTE_SDK)/lib/librte_eal/common CFLAGS +=3D -I$(RTE_SDK)/lib/librte_eal/include diff --git a/lib/librte_eal/linux/Makefile b/lib/librte_eal/linux/Makefile index e5f44959c6..fc2316667a 100644 --- a/lib/librte_eal/linux/Makefile +++ b/lib/librte_eal/linux/Makefile @@ -9,7 +9,6 @@ ARCH_DIR ?=3D $(RTE_ARCH) VPATH +=3D $(RTE_SDK)/lib/librte_eal/$(ARCH_DIR) VPATH +=3D $(RTE_SDK)/lib/librte_eal/common =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -I$(SRCDIR)/include CFLAGS +=3D -I$(RTE_SDK)/lib/librte_eal/common CFLAGS +=3D -I$(RTE_SDK)/lib/librte_eal/include diff --git a/lib/librte_eal/meson.build b/lib/librte_eal/meson.build index 9d219a0e6e..0267c3b9d8 100644 --- a/lib/librte_eal/meson.build +++ b/lib/librte_eal/meson.build @@ -11,7 +11,6 @@ subdir(exec_env) =20 subdir(arch_subdir) =20 -allow_experimental_apis =3D true deps +=3D 'kvargs' if dpdk_conf.has('RTE_USE_LIBBSD') =09ext_deps +=3D libbsd diff --git a/lib/librte_ethdev/Makefile b/lib/librte_ethdev/Makefile index b627e4e23b..943fb8c877 100644 --- a/lib/librte_ethdev/Makefile +++ b/lib/librte_ethdev/Makefile @@ -8,7 +8,6 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB =3D librte_ethdev.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) LDLIBS +=3D -lrte_net -lrte_eal -lrte_mempool -lrte_ring diff --git a/lib/librte_ethdev/meson.build b/lib/librte_ethdev/meson.build index 3537f22f59..ab341d9c04 100644 --- a/lib/librte_ethdev/meson.build +++ b/lib/librte_ethdev/meson.build @@ -2,7 +2,6 @@ # Copyright(c) 2017 Intel Corporation =20 name =3D 'ethdev' -allow_experimental_apis =3D true sources =3D files('ethdev_private.c', =09'ethdev_profile.c', =09'rte_class_eth.c', diff --git a/lib/librte_eventdev/Makefile b/lib/librte_eventdev/Makefile index 1052ccdbb5..c85c0d3cfb 100644 --- a/lib/librte_eventdev/Makefile +++ b/lib/librte_eventdev/Makefile @@ -8,7 +8,6 @@ include $(RTE_SDK)/mk/rte.vars.mk LIB =3D librte_eventdev.a =20 # build flags -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) ifeq ($(CONFIG_RTE_EXEC_ENV_LINUX),y) diff --git a/lib/librte_eventdev/meson.build b/lib/librte_eventdev/meson.bu= ild index 02ac61ad2c..16d8240e94 100644 --- a/lib/librte_eventdev/meson.build +++ b/lib/librte_eventdev/meson.build @@ -1,8 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation =20 -allow_experimental_apis =3D true - if is_linux =09cflags +=3D '-DLINUX' else diff --git a/lib/librte_fib/Makefile b/lib/librte_fib/Makefile index 7773427d19..1dd2a495b1 100644 --- a/lib/librte_fib/Makefile +++ b/lib/librte_fib/Makefile @@ -9,7 +9,6 @@ LIB =3D librte_fib.a =20 CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -I$(SRCDIR) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API LDLIBS +=3D -lrte_eal -lrte_rib =20 EXPORT_MAP :=3D rte_fib_version.map diff --git a/lib/librte_fib/meson.build b/lib/librte_fib/meson.build index e2c6f44a76..771828fbed 100644 --- a/lib/librte_fib/meson.build +++ b/lib/librte_fib/meson.build @@ -2,7 +2,6 @@ # Copyright(c) 2018 Vladimir Medvedkin # Copyright(c) 2019 Intel Corporation =20 -allow_experimental_apis =3D true sources =3D files('rte_fib.c', 'rte_fib6.c', 'dir24_8.c', 'trie.c') headers =3D files('rte_fib.h', 'rte_fib6.h') deps +=3D ['rib'] diff --git a/lib/librte_flow_classify/Makefile b/lib/librte_flow_classify/M= akefile index 34298af1a4..ca3cae82dd 100644 --- a/lib/librte_flow_classify/Makefile +++ b/lib/librte_flow_classify/Makefile @@ -6,7 +6,6 @@ include $(RTE_SDK)/mk/rte.vars.mk # library name LIB =3D librte_flow_classify.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -I$(SRCDIR) =20 diff --git a/lib/librte_flow_classify/meson.build b/lib/librte_flow_classif= y/meson.build index d7e487475f..a7a5b3d577 100644 --- a/lib/librte_flow_classify/meson.build +++ b/lib/librte_flow_classify/meson.build @@ -1,7 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation =20 -allow_experimental_apis =3D true sources =3D files('rte_flow_classify.c', 'rte_flow_classify_parse.c') headers =3D files('rte_flow_classify.h') deps +=3D ['net', 'table'] diff --git a/lib/librte_hash/Makefile b/lib/librte_hash/Makefile index 9b36097f47..ec9f864992 100644 --- a/lib/librte_hash/Makefile +++ b/lib/librte_hash/Makefile @@ -6,7 +6,7 @@ include $(RTE_SDK)/mk/rte.vars.mk # library name LIB =3D librte_hash.a =20 -CFLAGS +=3D -O3 -DALLOW_EXPERIMENTAL_API +CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -I$(SRCDIR) LDLIBS +=3D -lrte_eal -lrte_ring =20 diff --git a/lib/librte_hash/meson.build b/lib/librte_hash/meson.build index bce11ad9e0..6ab46ae9d7 100644 --- a/lib/librte_hash/meson.build +++ b/lib/librte_hash/meson.build @@ -10,6 +10,3 @@ headers =3D files('rte_crc_arm64.h', =20 sources =3D files('rte_cuckoo_hash.c', 'rte_fbk_hash.c') deps +=3D ['ring'] - -# rte ring reset is not yet part of stable API -allow_experimental_apis =3D true diff --git a/lib/librte_ipsec/Makefile b/lib/librte_ipsec/Makefile index f74e8a9045..e4c69646b0 100644 --- a/lib/librte_ipsec/Makefile +++ b/lib/librte_ipsec/Makefile @@ -8,7 +8,6 @@ LIB =3D librte_ipsec.a =20 CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -I$(SRCDIR) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API LDLIBS +=3D -lrte_eal -lrte_mempool -lrte_mbuf -lrte_net LDLIBS +=3D -lrte_cryptodev -lrte_security -lrte_hash =20 diff --git a/lib/librte_ipsec/meson.build b/lib/librte_ipsec/meson.build index 70358526b0..fc69970ec5 100644 --- a/lib/librte_ipsec/meson.build +++ b/lib/librte_ipsec/meson.build @@ -1,8 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Intel Corporation =20 -allow_experimental_apis =3D true - sources =3D files('esp_inb.c', 'esp_outb.c', 'sa.c', 'ses.c', 'ipsec_sad.c= ') =20 headers =3D files('rte_ipsec.h', 'rte_ipsec_group.h', 'rte_ipsec_sa.h', 'r= te_ipsec_sad.h') diff --git a/lib/librte_mbuf/Makefile b/lib/librte_mbuf/Makefile index 9f6e6387f9..41ea5496e3 100644 --- a/lib/librte_mbuf/Makefile +++ b/lib/librte_mbuf/Makefile @@ -7,7 +7,6 @@ include $(RTE_SDK)/mk/rte.vars.mk LIB =3D librte_mbuf.a =20 CFLAGS +=3D $(WERROR_FLAGS) -I$(SRCDIR) -O3 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 LDLIBS +=3D -lrte_eal -lrte_mempool =20 diff --git a/lib/librte_mbuf/meson.build b/lib/librte_mbuf/meson.build index d9b53b6ae3..e95c770e5a 100644 --- a/lib/librte_mbuf/meson.build +++ b/lib/librte_mbuf/meson.build @@ -7,5 +7,3 @@ headers =3D files('rte_mbuf.h', 'rte_mbuf_core.h', =09=09'rte_mbuf_ptype.h', 'rte_mbuf_pool_ops.h', =09=09'rte_mbuf_dyn.h') deps +=3D ['mempool'] - -allow_experimental_apis =3D true diff --git a/lib/librte_mempool/Makefile b/lib/librte_mempool/Makefile index a5649050b1..84aae66043 100644 --- a/lib/librte_mempool/Makefile +++ b/lib/librte_mempool/Makefile @@ -7,14 +7,10 @@ include $(RTE_SDK)/mk/rte.vars.mk LIB =3D librte_mempool.a =20 CFLAGS +=3D $(WERROR_FLAGS) -I$(SRCDIR) -O3 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API LDLIBS +=3D -lrte_eal -lrte_ring =20 EXPORT_MAP :=3D rte_mempool_version.map =20 -# memseg walk is not yet part of stable API -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API - # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_MEMPOOL) +=3D rte_mempool.c SRCS-$(CONFIG_RTE_LIBRTE_MEMPOOL) +=3D rte_mempool_ops.c diff --git a/lib/librte_mempool/meson.build b/lib/librte_mempool/meson.buil= d index f8710b61bc..45e0cb7ea3 100644 --- a/lib/librte_mempool/meson.build +++ b/lib/librte_mempool/meson.build @@ -1,8 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation =20 -allow_experimental_apis =3D true - extra_flags =3D [] =20 foreach flag: extra_flags @@ -15,6 +13,3 @@ sources =3D files('rte_mempool.c', 'rte_mempool_ops.c', =09=09'rte_mempool_ops_default.c') headers =3D files('rte_mempool.h') deps +=3D ['ring'] - -# memseg walk is not yet part of stable API -allow_experimental_apis =3D true diff --git a/lib/librte_net/Makefile b/lib/librte_net/Makefile index aabdf4879d..aa1d6fed5a 100644 --- a/lib/librte_net/Makefile +++ b/lib/librte_net/Makefile @@ -5,7 +5,6 @@ include $(RTE_SDK)/mk/rte.vars.mk =20 LIB =3D librte_net.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D $(WERROR_FLAGS) -I$(SRCDIR) -O3 LDLIBS +=3D -lrte_mbuf -lrte_eal -lrte_mempool =20 diff --git a/lib/librte_net/meson.build b/lib/librte_net/meson.build index 208eee2dc2..f799349b3e 100644 --- a/lib/librte_net/meson.build +++ b/lib/librte_net/meson.build @@ -1,7 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation =20 -allow_experimental_apis =3D true headers =3D files('rte_ip.h', =09'rte_tcp.h', =09'rte_udp.h', diff --git a/lib/librte_pdump/Makefile b/lib/librte_pdump/Makefile index fde8ac92b8..ece8aaacc1 100644 --- a/lib/librte_pdump/Makefile +++ b/lib/librte_pdump/Makefile @@ -6,7 +6,6 @@ include $(RTE_SDK)/mk/rte.vars.mk # library name LIB =3D librte_pdump.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D $(WERROR_FLAGS) -I$(SRCDIR) -O3 LDLIBS +=3D -lrte_eal -lrte_mempool -lrte_mbuf -lrte_ethdev =20 diff --git a/lib/librte_pdump/meson.build b/lib/librte_pdump/meson.build index 1173cdea34..3a95eabde6 100644 --- a/lib/librte_pdump/meson.build +++ b/lib/librte_pdump/meson.build @@ -3,5 +3,4 @@ =20 sources =3D files('rte_pdump.c') headers =3D files('rte_pdump.h') -allow_experimental_apis =3D true deps +=3D ['ethdev'] diff --git a/lib/librte_pipeline/Makefile b/lib/librte_pipeline/Makefile index d2abb5f3ff..cfbbd18282 100644 --- a/lib/librte_pipeline/Makefile +++ b/lib/librte_pipeline/Makefile @@ -8,7 +8,6 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB =3D librte_pipeline.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) LDLIBS +=3D -lrte_eal -lrte_mempool -lrte_mbuf -lrte_table diff --git a/lib/librte_pipeline/meson.build b/lib/librte_pipeline/meson.bu= ild index be8a3536af..d70b1a023b 100644 --- a/lib/librte_pipeline/meson.build +++ b/lib/librte_pipeline/meson.build @@ -1,7 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation =20 -allow_experimental_apis =3D true sources =3D files('rte_pipeline.c', 'rte_port_in_action.c', 'rte_table_act= ion.c') headers =3D files('rte_pipeline.h', 'rte_port_in_action.h', 'rte_table_act= ion.h') deps +=3D ['port', 'table', 'meter', 'sched', 'cryptodev'] diff --git a/lib/librte_power/Makefile b/lib/librte_power/Makefile index 9a6db07e5f..087d643ee5 100644 --- a/lib/librte_power/Makefile +++ b/lib/librte_power/Makefile @@ -6,7 +6,6 @@ include $(RTE_SDK)/mk/rte.vars.mk # library name LIB =3D librte_power.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D $(WERROR_FLAGS) -I$(SRCDIR) -O3 -fno-strict-aliasing LDLIBS +=3D -lrte_eal -lrte_timer =20 diff --git a/lib/librte_rcu/Makefile b/lib/librte_rcu/Makefile index c4bb28d779..728669975a 100644 --- a/lib/librte_rcu/Makefile +++ b/lib/librte_rcu/Makefile @@ -6,7 +6,6 @@ include $(RTE_SDK)/mk/rte.vars.mk # library name LIB =3D librte_rcu.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D $(WERROR_FLAGS) -I$(SRCDIR) -O3 LDLIBS +=3D -lrte_eal =20 diff --git a/lib/librte_rcu/meson.build b/lib/librte_rcu/meson.build index 62920ba02c..5929bd3a70 100644 --- a/lib/librte_rcu/meson.build +++ b/lib/librte_rcu/meson.build @@ -1,8 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Arm Limited =20 -allow_experimental_apis =3D true - sources =3D files('rte_rcu_qsbr.c') headers =3D files('rte_rcu_qsbr.h') =20 diff --git a/lib/librte_rib/Makefile b/lib/librte_rib/Makefile index 4a1df4e06a..be80ce5d3f 100644 --- a/lib/librte_rib/Makefile +++ b/lib/librte_rib/Makefile @@ -9,7 +9,6 @@ LIB =3D librte_rib.a =20 CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -I$(SRCDIR) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API LDLIBS +=3D -lrte_eal -lrte_mempool =20 EXPORT_MAP :=3D rte_rib_version.map diff --git a/lib/librte_rib/meson.build b/lib/librte_rib/meson.build index 46a1c0c906..7bacbb4535 100644 --- a/lib/librte_rib/meson.build +++ b/lib/librte_rib/meson.build @@ -2,7 +2,6 @@ # Copyright(c) 2018 Vladimir Medvedkin # Copyright(c) 2019 Intel Corporation =20 -allow_experimental_apis =3D true sources =3D files('rte_rib.c', 'rte_rib6.c') headers =3D files('rte_rib.h', 'rte_rib6.h') deps +=3D ['mempool'] diff --git a/lib/librte_ring/Makefile b/lib/librte_ring/Makefile index 917c560ad0..28368e6d10 100644 --- a/lib/librte_ring/Makefile +++ b/lib/librte_ring/Makefile @@ -6,7 +6,7 @@ include $(RTE_SDK)/mk/rte.vars.mk # library name LIB =3D librte_ring.a =20 -CFLAGS +=3D $(WERROR_FLAGS) -I$(SRCDIR) -O3 -DALLOW_EXPERIMENTAL_API +CFLAGS +=3D $(WERROR_FLAGS) -I$(SRCDIR) -O3 LDLIBS +=3D -lrte_eal =20 EXPORT_MAP :=3D rte_ring_version.map diff --git a/lib/librte_ring/meson.build b/lib/librte_ring/meson.build index f2f3ccc88b..05402e4f0c 100644 --- a/lib/librte_ring/meson.build +++ b/lib/librte_ring/meson.build @@ -6,6 +6,3 @@ headers =3D files('rte_ring.h', =09=09'rte_ring_elem.h', =09=09'rte_ring_c11_mem.h', =09=09'rte_ring_generic.h') - -# rte_ring_create_elem and rte_ring_get_memsize_elem are experimental -allow_experimental_apis =3D true diff --git a/lib/librte_stack/Makefile b/lib/librte_stack/Makefile index 94ee48d4b3..020ef102b5 100644 --- a/lib/librte_stack/Makefile +++ b/lib/librte_stack/Makefile @@ -7,7 +7,6 @@ include $(RTE_SDK)/mk/rte.vars.mk LIB =3D librte_stack.a =20 CFLAGS +=3D $(WERROR_FLAGS) -I$(SRCDIR) -O3 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API LDLIBS +=3D -lrte_eal =20 EXPORT_MAP :=3D rte_stack_version.map diff --git a/lib/librte_stack/meson.build b/lib/librte_stack/meson.build index f420a5c223..8f82a40ec2 100644 --- a/lib/librte_stack/meson.build +++ b/lib/librte_stack/meson.build @@ -1,8 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2019 Intel Corporation =20 -allow_experimental_apis =3D true - sources =3D files('rte_stack.c', 'rte_stack_std.c', 'rte_stack_lf.c') headers =3D files('rte_stack.h', =09=09'rte_stack_std.h', diff --git a/lib/librte_telemetry/Makefile b/lib/librte_telemetry/Makefile index f364548556..12009b9a7c 100644 --- a/lib/librte_telemetry/Makefile +++ b/lib/librte_telemetry/Makefile @@ -8,7 +8,6 @@ LIB =3D librte_telemetry.a =20 CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) -I$(SRCDIR) -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API =20 LDLIBS +=3D -lrte_eal -lrte_ethdev LDLIBS +=3D -lrte_metrics diff --git a/lib/librte_telemetry/meson.build b/lib/librte_telemetry/meson.= build index 26a331140b..1bdf128c1a 100644 --- a/lib/librte_telemetry/meson.build +++ b/lib/librte_telemetry/meson.build @@ -4,7 +4,6 @@ sources =3D files('rte_telemetry.c', 'rte_telemetry_parser.c', 'rte_teleme= try_parser_test.c') headers =3D files('rte_telemetry.h', 'rte_telemetry_internal.h', 'rte_tele= metry_parser.h') deps +=3D ['metrics', 'ethdev'] -cflags +=3D '-DALLOW_EXPERIMENTAL_API' =20 jansson =3D dependency('jansson', required: false) if jansson.found() diff --git a/lib/librte_timer/Makefile b/lib/librte_timer/Makefile index 1c290b4c2d..7e95d120c0 100644 --- a/lib/librte_timer/Makefile +++ b/lib/librte_timer/Makefile @@ -6,7 +6,6 @@ include $(RTE_SDK)/mk/rte.vars.mk # library name LIB =3D librte_timer.a =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D $(WERROR_FLAGS) -I$(SRCDIR) -O3 LDLIBS +=3D -lrte_eal =20 diff --git a/lib/librte_timer/meson.build b/lib/librte_timer/meson.build index d3b828ce9d..89b17e0397 100644 --- a/lib/librte_timer/meson.build +++ b/lib/librte_timer/meson.build @@ -3,4 +3,3 @@ =20 sources =3D files('rte_timer.c') headers =3D files('rte_timer.h') -allow_experimental_apis =3D true diff --git a/lib/librte_vhost/Makefile b/lib/librte_vhost/Makefile index c5cf6632d7..e592795f22 100644 --- a/lib/librte_vhost/Makefile +++ b/lib/librte_vhost/Makefile @@ -8,7 +8,6 @@ LIB =3D librte_vhost.a =20 EXPORT_MAP :=3D rte_vhost_version.map =20 -CFLAGS +=3D -DALLOW_EXPERIMENTAL_API CFLAGS +=3D $(WERROR_FLAGS) -I$(SRCDIR) -O3 CFLAGS +=3D -I vhost_user CFLAGS +=3D -fno-strict-aliasing diff --git a/lib/librte_vhost/meson.build b/lib/librte_vhost/meson.build index ef7a5bced4..f80632848c 100644 --- a/lib/librte_vhost/meson.build +++ b/lib/librte_vhost/meson.build @@ -17,7 +17,6 @@ elif (toolchain =3D=3D 'icc' and cc.version().version_com= pare('>=3D16.0.0')) endif dpdk_conf.set('RTE_LIBRTE_VHOST_POSTCOPY', =09 cc.has_header('linux/userfaultfd.h')) -allow_experimental_apis =3D true cflags +=3D '-fno-strict-aliasing' sources =3D files('fd_man.c', 'iotlb.c', 'socket.c', 'vdpa.c', =09=09'vhost.c', 'vhost_user.c', diff --git a/lib/meson.build b/lib/meson.build index 9c3cc55d5e..63c17ee75e 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -36,7 +36,7 @@ if is_windows =09libraries =3D ['kvargs','eal'] # only supported libraries for windows endif =20 -default_cflags =3D machine_args +default_cflags =3D machine_args + ['-DALLOW_EXPERIMENTAL_API'] if cc.has_argument('-Wno-format-truncation') =09default_cflags +=3D '-Wno-format-truncation' endif @@ -47,7 +47,6 @@ foreach l:libraries =09build =3D true =09reason =3D '' # set if build =3D=3D false to explain wh= y =09name =3D l -=09allow_experimental_apis =3D false =09use_function_versioning =3D false =09sources =3D [] =09headers =3D [] @@ -98,9 +97,6 @@ foreach l:libraries =09=09=09static_dep =3D shared_dep =09=09else =20 -=09=09=09if allow_experimental_apis -=09=09=09=09cflags +=3D '-DALLOW_EXPERIMENTAL_API' -=09=09=09endif =09=09=09if use_function_versioning =09=09=09=09cflags +=3D '-DRTE_USE_FUNCTION_VERSIONING' =09=09=09endif diff --git a/mk/target/generic/rte.vars.mk b/mk/target/generic/rte.vars.mk index 374722173d..ec26728970 100644 --- a/mk/target/generic/rte.vars.mk +++ b/mk/target/generic/rte.vars.mk @@ -105,6 +105,7 @@ CFLAGS +=3D -DRTE_USE_FUNCTION_VERSIONING ifeq ($(BUILDING_RTE_SDK),1) # building sdk CFLAGS +=3D -include $(RTE_OUTPUT)/include/rte_config.h +CFLAGS +=3D -DALLOW_EXPERIMENTAL_API else # if we are building an external application, include SDK's lib and # includes too --=20 2.23.0