Skip to contentSkip to conversation

ethdev: remove experimental flag of ports enumeration

PATCH Applied Thomas Monjalon 3 participants 7 messages Apr 24, 2018 – Apr 25, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ethdev: remove experimental flag of ports enumeration

The basic operations for ports enumeration should not be considered as experimental in DPDK 18.05.

The iterator RTE_ETH_FOREACH_DEV was introduced in DPDK 17.05. It uses the function the rte_eth_find_next_owned_by() to get only ownerless ports. Its API can be considered stable.
So the flag experimental is removed from rte_eth_find_next_owned_by().

The flag experimental is removed from rte_eth_dev_count_avail() which is the new name of the old function rte_eth_dev_count().

The flag experimental is set to rte_eth_dev_count_total() in the .c file for consistency with the declaration in the .h file.

A lot of internal applications are fixed to not allow experimental API.

Fixes 8728ccf37615 ("fix ethdev ports enumeration")
Fixes d9a42a69febf ("ethdev: deprecate port count function")
Fixes e70e26861eaf ("net/mvpp2: fix build")

---

It was a really bad idea to keep the iterator macro and function as experimental.
And it was a real mistake of setting the new name of rte_eth_dev_count function as experimental.

I think this fix must be merged in 18.05-rc1, in order to avoid troubles when testing coming RC1.

---
 drivers/net/bonding/Makefile                               |  1 -
 drivers/net/bonding/meson.build                            |  2 --
 drivers/net/mvpp2/Makefile                                 |  1 -
 examples/bond/Makefile                                     |  3 ---
 examples/bond/meson.build                                  |  1 -
 examples/distributor/Makefile                              |  3 ---
 examples/distributor/meson.build                           |  1 -
 examples/ethtool/ethtool-app/Makefile                      |  1 -
 examples/exception_path/Makefile                           |  3 ---
 examples/exception_path/meson.build                        |  1 -
 examples/flow_filtering/Makefile                           |  3 ---
 examples/flow_filtering/meson.build                        |  1 -
 examples/ip_fragmentation/Makefile                         |  3 ---
 examples/ip_fragmentation/meson.build                      |  1 -
 examples/ip_reassembly/Makefile                            |  3 ---
 examples/ip_reassembly/meson.build                         |  1 -
 examples/ipv4_multicast/Makefile                           |  3 ---
 examples/ipv4_multicast/meson.build                        |  1 -
 examples/kni/Makefile                                      |  3 ---
 examples/kni/meson.build                                   |  1 -
 examples/l2fwd-cat/Makefile                                |  2 --
 examples/l2fwd-cat/meson.build                             |  1 -
 examples/l2fwd-crypto/Makefile                             |  3 ---
 examples/l2fwd-crypto/meson.build                          |  1 -
 examples/l2fwd-jobstats/Makefile                           |  4 +---
 examples/l2fwd-jobstats/meson.build                        |  1 -
 examples/l2fwd-keepalive/Makefile                          |  3 ---
 examples/l2fwd-keepalive/meson.build                       |  1 -
 examples/l2fwd/Makefile                                    |  3 ---
 examples/l2fwd/meson.build                                 |  1 -
 examples/l3fwd-acl/Makefile                                |  3 ---
 examples/l3fwd-acl/meson.build                             |  1 -
 examples/l3fwd-power/Makefile                              |  3 ---
 examples/l3fwd-power/meson.build                           |  1 -
 examples/l3fwd-vf/Makefile                                 |  3 ---
 examples/l3fwd-vf/meson.build                              |  1 -
 examples/l3fwd/Makefile                                    |  3 ---
 examples/l3fwd/meson.build                                 |  1 -
 examples/link_status_interrupt/Makefile                    |  3 ---
 examples/link_status_interrupt/meson.build                 |  1 -
 examples/multi_process/client_server_mp/mp_client/Makefile |  1 -
 examples/multi_process/l2fwd_fork/Makefile                 |  1 -
 examples/multi_process/symmetric_mp/Makefile               |  1 -
 examples/netmap_compat/bridge/Makefile                     |  1 -
 examples/packet_ordering/Makefile                          |  3 ---
 examples/packet_ordering/meson.build                       |  1 -
 examples/performance-thread/l3fwd-thread/Makefile          |  1 -
 examples/ptpclient/Makefile                                |  3 ---
 examples/ptpclient/meson.build                             |  1 -
 examples/qos_sched/Makefile                                |  3 ---
 examples/qos_sched/meson.build                             |  1 -
 examples/quota_watermark/qw/Makefile                       |  1 -
 examples/rxtx_callbacks/Makefile                           |  3 ---
 examples/rxtx_callbacks/meson.build                        |  1 -
 examples/server_node_efd/node/Makefile                     |  1 -
 examples/server_node_efd/server/Makefile                   |  1 -
 examples/skeleton/Makefile                                 |  3 ---
 examples/skeleton/meson.build                              |  3 ---
 examples/tep_termination/Makefile                          |  3 ---
 examples/tep_termination/meson.build                       |  1 -
 examples/vhost/Makefile                                    |  3 ---
 examples/vhost/meson.build                                 |  1 -
 examples/vm_power_manager/Makefile                         |  1 -
 examples/vmdq/Makefile                                     |  3 ---
 examples/vmdq/meson.build                                  |  1 -
 examples/vmdq_dcb/Makefile                                 |  3 ---
 examples/vmdq_dcb/meson.build                              |  1 -
 lib/librte_ether/rte_ethdev.c                              |  4 ++--
 lib/librte_ether/rte_ethdev.h                              |  7 ++-----
 lib/librte_ether/rte_ethdev_version.map                    | 10 ++++++++--
 lib/librte_latencystats/Makefile                           |  1 -
 lib/librte_latencystats/meson.build                        |  1 -
 72 files changed, 13 insertions(+), 134 deletions(-)
drivers/net/bonding/Makefile +0 -1
index 44353a1f8..4a6633ede 100644
@@ -8,7 +8,6 @@ include $(RTE_SDK)/mk/rte.vars.mk
 #
 LIB = librte_pmd_bond.a
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
drivers/net/bonding/meson.build +0 -2
index 98fdd37af..44d5fd8e7 100644
@@ -9,6 +9,4 @@ sources = files('rte_eth_bond_api.c', 'rte_eth_bond_pmd.c',
 deps += 'sched' # needed for rte_bitmap.h
 deps += ['ip_frag', 'cmdline']
 
-allow_experimental_apis = true
-
 install_headers('rte_eth_bond.h', 'rte_eth_bond_8023ad.h')
drivers/net/mvpp2/Makefile +0 -1
index f07029f4d..492aef977 100644
@@ -27,7 +27,6 @@ CFLAGS += -I$(LIBMUSDK_PATH)/include
 CFLAGS += -DMVCONF_TYPES_PUBLIC
 CFLAGS += -DMVCONF_DMA_PHYS_ADDR_T_PUBLIC
 CFLAGS += $(WERROR_FLAGS)
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3
 LDLIBS += -L$(LIBMUSDK_PATH)/lib
 LDLIBS += -lmusdk
examples/bond/Makefile +0 -3
index e7afce358..44d10d4f5 100644
@@ -25,8 +25,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -60,7 +58,6 @@ ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
 CFLAGS_main.o += -Wno-return-type
 endif
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3
 
 ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y)
examples/bond/meson.build +0 -1
index 82e355a49..8f65e4a8d 100644
@@ -7,7 +7,6 @@
 # DPDK instance, use 'make'
 
 deps += 'pmd_bond'
-allow_experimental_apis = true
 sources = files(
 	'main.c'
 )
examples/distributor/Makefile +0 -3
index cb1bd216d..05ea0bfec 100644
@@ -23,8 +23,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -50,7 +48,6 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += $(WERROR_FLAGS)
 
 # workaround for a gcc bug with noreturn attribute
examples/distributor/meson.build +0 -1
index d036ea0f6..88c001f56 100644
@@ -7,7 +7,6 @@
 # DPDK instance, use 'make'
 
 deps += 'distributor'
-allow_experimental_apis = true
 sources = files(
 	'main.c'
 )
examples/ethtool/ethtool-app/Makefile +0 -1
index 1d400f19b..4cd9efdd5 100644
@@ -16,7 +16,6 @@ APP = ethtool
 # all source are stored in SRCS-y
 SRCS-y := main.c ethapp.c
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3 -D_GNU_SOURCE -pthread -I$(SRCDIR)/../lib
 CFLAGS += $(WERROR_FLAGS)
 
examples/exception_path/Makefile +0 -3
index 88f709eff..ae74781ec 100644
@@ -23,8 +23,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -50,7 +48,6 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
 
examples/exception_path/meson.build +0 -1
index 2b0a25036..c34e11e36 100644
@@ -6,7 +6,6 @@
 # To build this example as a standalone application with an already-installed
 # DPDK instance, use 'make'
 
-allow_experimental_apis = true
 sources = files(
 	'main.c'
 )
examples/flow_filtering/Makefile +0 -3
index f41b368fa..01bb4cd81 100644
@@ -50,8 +50,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -77,7 +75,6 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
 
examples/flow_filtering/meson.build +0 -1
index 949493300..407795c42 100644
@@ -9,4 +9,3 @@
 sources = files(
 	'main.c',
 )
-allow_experimental_apis = true
examples/ip_fragmentation/Makefile +0 -3
index 3b58ced54..9e89e744c 100644
@@ -24,8 +24,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -51,7 +49,6 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
 
examples/ip_fragmentation/meson.build +0 -1
index 9782a6a7b..304203eed 100644
@@ -7,7 +7,6 @@
 # DPDK instance, use 'make'
 
 deps +=  ['ip_frag', 'lpm']
-allow_experimental_apis = true
 sources = files(
 	'main.c'
 )
examples/ip_reassembly/Makefile +0 -3
index 6438d977e..1e81315f2 100644
@@ -24,8 +24,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -51,7 +49,6 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
 
examples/ip_reassembly/meson.build +0 -1
index 8a667c265..8ebd48291 100644
@@ -7,7 +7,6 @@
 # DPDK instance, use 'make'
 
 deps += ['lpm', 'ip_frag']
-allow_experimental_apis = true
 sources = files(
 	'main.c'
 )
examples/ipv4_multicast/Makefile +0 -3
index 236e706b3..a16c62333 100644
@@ -24,8 +24,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -51,7 +49,6 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
 
examples/ipv4_multicast/meson.build +0 -1
index 6969e2c54..d9e4c7c21 100644
@@ -7,7 +7,6 @@
 # DPDK instance, use 'make'
 
 deps += 'hash'
-allow_experimental_apis = true
 sources = files(
 	'main.c'
 )
examples/kni/Makefile +0 -3
index 96ae2fc6f..562dc2741 100644
@@ -23,8 +23,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -55,7 +53,6 @@ $(error This application can only operate in a linuxapp environment, \
 please change the definition of the RTE_TARGET environment variable)
 endif
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
 
examples/kni/meson.build +0 -1
index a69f0df42..0443ab99b 100644
@@ -10,7 +10,6 @@ if host_machine.system() != 'linux'
 	build = false
 endif
 deps += ['kni', 'bus_pci']
-allow_experimental_apis = true
 sources = files(
 	'main.c'
 )
examples/l2fwd-cat/Makefile +0 -2
index fe0f20073..aec770c28 100644
@@ -23,7 +23,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -D_GNU_SOURCE
 LDFLAGS += -lpqos
 
@@ -56,7 +55,6 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += $(WERROR_FLAGS)
 
 # workaround for a gcc bug with noreturn attribute
examples/l2fwd-cat/meson.build +0 -1
index d8ef0c99b..1234e7b55 100644
@@ -9,7 +9,6 @@
 pqos = cc.find_library('pqos', required: false)
 build = pqos.found()
 ext_deps += pqos
-allow_experimental_apis = true
 cflags += '-D_GNU_SOURCE'
 cflags += '-I/usr/local/include' # assume pqos lib installed in /usr/local
 sources = files(
examples/l2fwd-crypto/Makefile +0 -3
index 99afdd2e3..a67f087b2 100644
@@ -23,8 +23,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -50,7 +48,6 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
 
examples/l2fwd-crypto/meson.build +0 -1
index 6c852ad19..09438a6a0 100644
@@ -7,7 +7,6 @@
 # DPDK instance, use 'make'
 
 deps += 'cryptodev'
-allow_experimental_apis = true
 sources = files(
 	'main.c'
 )
examples/l2fwd-jobstats/Makefile +1 -3
index a9315d475..696a8b21a 100644
@@ -23,8 +23,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -50,7 +48,7 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
+
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
 
examples/l2fwd-jobstats/meson.build +0 -1
index 3653aa7ec..1ffd484e2 100644
@@ -7,7 +7,6 @@
 # DPDK instance, use 'make'
 
 deps += ['jobstats', 'timer']
-allow_experimental_apis = true
 sources = files(
 	'main.c'
 )
examples/l2fwd-keepalive/Makefile +0 -3
index af2895668..4ab67db44 100644
@@ -25,8 +25,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -52,7 +50,6 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
 LDFLAGS += -lrt
examples/l2fwd-keepalive/meson.build +0 -1
index 2dffffaaa..6f7b007e1 100644
@@ -8,7 +8,6 @@
 
 ext_deps += cc.find_library('rt')
 deps += 'timer'
-allow_experimental_apis = true
 sources = files(
 	'main.c', 'shm.c'
 )
examples/l2fwd/Makefile +0 -3
index 1d7760de9..a8a47ad4e 100644
@@ -23,8 +23,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -50,7 +48,6 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
 
examples/l2fwd/meson.build +0 -1
index 2b0a25036..c34e11e36 100644
@@ -6,7 +6,6 @@
 # To build this example as a standalone application with an already-installed
 # DPDK instance, use 'make'
 
-allow_experimental_apis = true
 sources = files(
 	'main.c'
 )
examples/l3fwd-acl/Makefile +0 -3
index eabca1ed7..285683f83 100644
@@ -23,8 +23,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -50,7 +48,6 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
 
examples/l3fwd-acl/meson.build +0 -1
index 68cebd6ce..7096e00c1 100644
@@ -7,7 +7,6 @@
 # DPDK instance, use 'make'
 
 deps += ['acl', 'lpm', 'hash']
-allow_experimental_apis = true
 sources = files(
 	'main.c'
 )
examples/l3fwd-power/Makefile +0 -3
index d4e1ac64f..390b7d6b6 100644
@@ -23,8 +23,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -56,7 +54,6 @@ please change the definition of the RTE_TARGET environment variable)
 all:
 else
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
 
examples/l3fwd-power/meson.build +0 -1
index 69251242b..f633a0f17 100644
@@ -10,7 +10,6 @@ if host_machine.system() != 'linux'
 	build = false
 endif
 deps += ['power', 'timer', 'lpm', 'hash']
-allow_experimental_apis = true
 sources = files(
 	'main.c'
 )
examples/l3fwd-vf/Makefile +0 -3
index d776689fa..dfb1d52d3 100644
@@ -23,8 +23,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -50,7 +48,6 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3 $(USER_FLAGS)
 CFLAGS += $(WERROR_FLAGS)
 
examples/l3fwd-vf/meson.build +0 -1
index 00f3c38f4..226286e74 100644
@@ -7,7 +7,6 @@
 # DPDK instance, use 'make'
 
 deps += ['lpm', 'hash']
-allow_experimental_apis = true
 sources = files(
 	'main.c'
 )
examples/l3fwd/Makefile +0 -3
index 8cc8f6aaa..cccdd9dfa 100644
@@ -23,8 +23,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -50,7 +48,6 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -I$(SRCDIR)
 CFLAGS += -O3 $(USER_FLAGS)
 CFLAGS += $(WERROR_FLAGS)
examples/l3fwd/meson.build +0 -1
index cbef07f4f..6dd4b9022 100644
@@ -7,7 +7,6 @@
 # DPDK instance, use 'make'
 
 deps += ['hash', 'lpm']
-allow_experimental_apis = true
 sources = files(
 	'l3fwd_em.c', 'l3fwd_lpm.c', 'main.c'
 )
examples/link_status_interrupt/Makefile +0 -3
index d778fcbbf..160682123 100644
@@ -23,8 +23,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -50,7 +48,6 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
 
examples/link_status_interrupt/meson.build +0 -1
index 2b0a25036..c34e11e36 100644
@@ -6,7 +6,6 @@
 # To build this example as a standalone application with an already-installed
 # DPDK instance, use 'make'
 
-allow_experimental_apis = true
 sources = files(
 	'main.c'
 )
examples/multi_process/client_server_mp/mp_client/Makefile +0 -1
index 3bfcd75c5..298e1b020 100644
@@ -14,7 +14,6 @@ APP = mp_client
 # all source are stored in SRCS-y
 SRCS-y := client.c
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += $(WERROR_FLAGS) -O3
 CFLAGS += -I$(SRCDIR)/../shared
 
examples/multi_process/l2fwd_fork/Makefile +0 -1
index 79d506862..b65582ef1 100644
@@ -16,7 +16,6 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
 
examples/multi_process/symmetric_mp/Makefile +0 -1
index 6c0fcb55b..6fb9cc366 100644
@@ -16,7 +16,6 @@ APP = symmetric_mp
 # all source are stored in SRCS-y
 SRCS-y := main.c
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
 
examples/netmap_compat/bridge/Makefile +0 -1
index 071c09dd3..a7c9c14a8 100644
@@ -27,7 +27,6 @@ VPATH := $(SRCDIR)/../lib
 SRCS-y := bridge.c
 SRCS-y += compat_netmap.c
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3 -I$(SRCDIR)/../lib -I$(SRCDIR)/../netmap
 CFLAGS += $(WERROR_FLAGS)
 
examples/packet_ordering/Makefile +0 -3
index 5eb503c25..3cf1ee1dc 100644
@@ -23,8 +23,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -50,7 +48,6 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
 
examples/packet_ordering/meson.build +0 -1
index a3776946f..6c2fccdcb 100644
@@ -7,7 +7,6 @@
 # DPDK instance, use 'make'
 
 deps += 'reorder'
-allow_experimental_apis = true
 sources = files(
 	'main.c'
 )
examples/performance-thread/l3fwd-thread/Makefile +0 -1
index 5ac543645..5558043f2 100644
@@ -18,7 +18,6 @@ SRCS-y := main.c
 
 include $(RTE_SDK)/examples/performance-thread/common/common.mk
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3 -g $(USER_FLAGS) $(INCLUDES) $(WERROR_FLAGS)
 
 # workaround for a gcc bug with noreturn attribute
examples/ptpclient/Makefile +0 -3
index 1c1d9cdbb..989e2dd40 100644
@@ -23,8 +23,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -50,7 +48,6 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
 
examples/ptpclient/meson.build +0 -1
index d4171a218..fa0cbe93c 100644
@@ -6,7 +6,6 @@
 # To build this example as a standalone application with an already-installed
 # DPDK instance, use 'make'
 
-allow_experimental_apis = true
 sources = files(
 	'ptpclient.c'
 )
examples/qos_sched/Makefile +0 -3
index e6dfbef1f..0f0a31ff2 100644
@@ -23,8 +23,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -57,7 +55,6 @@ all:
 clean:
 else
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
 CFLAGS_args.o := -D_GNU_SOURCE
examples/qos_sched/meson.build +0 -1
index 5101652af..289b81ce8 100644
@@ -7,7 +7,6 @@
 # DPDK instance, use 'make'
 
 deps += ['sched', 'cfgfile']
-allow_experimental_apis = true
 sources = files(
 	'app_thread.c', 'args.c', 'cfg_file.c', 'cmdline.c',
 	'init.c', 'main.c', 'stats.c'
examples/quota_watermark/qw/Makefile +0 -1
index d0a9b3cf4..84299e594 100644
@@ -16,7 +16,6 @@ APP = qw
 # all source are stored in SRCS-y
 SRCS-y := args.c init.c main.c
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3 -DQW_SOFTWARE_FC
 CFLAGS += $(WERROR_FLAGS)
 
examples/rxtx_callbacks/Makefile +0 -3
index c72ba66d6..e9d30d56f 100644
@@ -23,8 +23,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -50,7 +48,6 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += $(WERROR_FLAGS)
 
 # workaround for a gcc bug with noreturn attribute
examples/rxtx_callbacks/meson.build +0 -1
index 2b0a25036..c34e11e36 100644
@@ -6,7 +6,6 @@
 # To build this example as a standalone application with an already-installed
 # DPDK instance, use 'make'
 
-allow_experimental_apis = true
 sources = files(
 	'main.c'
 )
examples/server_node_efd/node/Makefile +0 -1
index dc3191a5b..fffbe3576 100644
@@ -14,7 +14,6 @@ APP = node
 # all source are stored in SRCS-y
 SRCS-y := node.c
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += $(WERROR_FLAGS) -O3
 CFLAGS += -I$(SRCDIR)/../shared
 
examples/server_node_efd/server/Makefile +0 -1
index d5456f920..cbb91ebe8 100644
@@ -23,7 +23,6 @@ SRCS-y := main.c init.c args.c
 
 INC := $(sort $(wildcard *.h))
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += $(WERROR_FLAGS) -O3
 CFLAGS += -I$(SRCDIR)/../shared
 
examples/skeleton/Makefile +0 -3
index a4a1860cb..bd980ec9b 100644
@@ -23,8 +23,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -50,7 +48,6 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += $(WERROR_FLAGS)
 
 # workaround for a gcc bug with noreturn attribute
examples/skeleton/meson.build +0 -3
index 89ddba2ea..9bb9ec329 100644
@@ -6,9 +6,6 @@
 # To build this example as a standalone application with an already-installed
 # DPDK instance, use 'make'
 
-allow_experimental_apis = true
 sources = files(
 	'basicfwd.c'
 )
-
-allow_experimental_apis = true
examples/tep_termination/Makefile +0 -3
index 2b93446c0..d2c357a1c 100644
@@ -25,8 +25,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -57,7 +55,6 @@ $(error This application can only operate in a linuxapp environment, \
 please change the definition of the RTE_TARGET environment variable)
 endif
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
 CFLAGS += -D_GNU_SOURCE
examples/tep_termination/meson.build +0 -1
index 6d3636243..618a44a67 100644
@@ -10,7 +10,6 @@ if host_machine.system() != 'linux'
 	build = false
 endif
 deps += ['hash', 'vhost']
-allow_experimental_apis = true
 sources = files(
 	'main.c', 'vxlan.c', 'vxlan_setup.c'
 )
examples/vhost/Makefile +0 -3
index 67cc55b1b..2dc62ebf0 100644
@@ -25,8 +25,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -58,7 +56,6 @@ please change the definition of the RTE_TARGET environment variable)
 all:
 else
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O2 -D_FILE_OFFSET_BITS=64
 CFLAGS += $(WERROR_FLAGS)
 CFLAGS += -D_GNU_SOURCE
examples/vhost/meson.build +0 -1
index 7b498076c..853ecae7c 100644
@@ -10,7 +10,6 @@ if host_machine.system() != 'linux'
 	build = false
 endif
 deps += 'vhost'
-allow_experimental_apis = true
 sources = files(
 	'main.c', 'virtio_net.c'
 )
examples/vm_power_manager/Makefile +0 -1
index 608d0d9f4..ef2a9f959 100644
@@ -21,7 +21,6 @@ APP = vm_power_mgr
 SRCS-y := main.c vm_power_cli.c power_manager.c channel_manager.c
 SRCS-y += channel_monitor.c
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3 -I$(RTE_SDK)/lib/librte_power/
 CFLAGS += $(WERROR_FLAGS)
 
examples/vmdq/Makefile +0 -3
index e2d114919..87abeab93 100644
@@ -23,8 +23,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -50,7 +48,6 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += $(WERROR_FLAGS)
 
 EXTRA_CFLAGS += -O3
examples/vmdq/meson.build +0 -1
index 2b0a25036..c34e11e36 100644
@@ -6,7 +6,6 @@
 # To build this example as a standalone application with an already-installed
 # DPDK instance, use 'make'
 
-allow_experimental_apis = true
 sources = files(
 	'main.c'
 )
examples/vmdq_dcb/Makefile +0 -3
index 3bd80a023..bf161cb2b 100644
@@ -23,8 +23,6 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)
 LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
-
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
 	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)
 
@@ -50,7 +48,6 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += $(WERROR_FLAGS)
 
 # workaround for a gcc bug with noreturn attribute
examples/vmdq_dcb/meson.build +0 -1
index 2b0a25036..c34e11e36 100644
@@ -6,7 +6,6 @@
 # To build this example as a standalone application with an already-installed
 # DPDK instance, use 'make'
 
-allow_experimental_apis = true
 sources = files(
 	'main.c'
 )
lib/librte_ether/rte_ethdev.c +2 -2
index 7821a8883..e563fd811 100644
@@ -381,7 +381,7 @@ rte_eth_is_valid_owner_id(uint64_t owner_id)
 	return 1;
 }
 
-uint64_t __rte_experimental
+uint64_t
 rte_eth_find_next_owned_by(uint16_t port_id, const uint64_t owner_id)
 {
 	while (port_id < RTE_MAX_ETHPORTS &&
@@ -552,7 +552,7 @@ rte_eth_dev_count_avail(void)
 	return count;
 }
 
-uint16_t
+uint16_t __rte_experimental
 rte_eth_dev_count_total(void)
 {
 	uint16_t port, count = 0;
lib/librte_ether/rte_ethdev.h +2 -5
index b9eb8ae13..35b3cad9a 100644
@@ -1258,9 +1258,6 @@ struct rte_eth_dev_owner {
 #define RTE_ETH_DEV_INTR_RMV     0x0008
 
 /**
- * @warning
- * @b EXPERIMENTAL: this API may change without prior notice.
- *
  * Iterates over valid ethdev ports owned by a specific owner.
  *
  * @param port_id
@@ -1271,7 +1268,7 @@ struct rte_eth_dev_owner {
  * @return
  *   Next valid port id owned by owner_id, RTE_MAX_ETHPORTS if there is none.
  */
-uint64_t __rte_experimental rte_eth_find_next_owned_by(uint16_t port_id,
+uint64_t rte_eth_find_next_owned_by(uint16_t port_id,
 		const uint64_t owner_id);
 
 /**
@@ -1398,7 +1395,7 @@ uint16_t rte_eth_dev_count(void);
  * @return
  *   The count of available Ethernet devices.
  */
-uint16_t __rte_experimental rte_eth_dev_count_avail(void);
+uint16_t rte_eth_dev_count_avail(void);
 
 /**
  * Get the total number of ports which are allocated.
lib/librte_ether/rte_ethdev_version.map +8 -2
index 8fe07880f..e729b2e0a 100644
@@ -203,10 +203,17 @@ DPDK_18.02 {
 
 } DPDK_17.11;
 
-EXPERIMENTAL {
+DPDK_18.05 {
 	global:
 
 	rte_eth_dev_count_avail;
+	rte_eth_find_next_owned_by;
+
+} DPDK_18.02;
+
+EXPERIMENTAL {
+	global:
+
 	rte_eth_dev_count_total;
 	rte_eth_dev_is_removed;
 	rte_eth_dev_owner_delete;
@@ -216,7 +223,6 @@ EXPERIMENTAL {
 	rte_eth_dev_owner_unset;
 	rte_eth_dev_rx_offload_name;
 	rte_eth_dev_tx_offload_name;
-	rte_eth_find_next_owned_by;
 	rte_mtr_capabilities_get;
 	rte_mtr_create;
 	rte_mtr_destroy;
lib/librte_latencystats/Makefile +0 -1
index 8884045c0..ae0dbd8f0 100644
@@ -6,7 +6,6 @@ include $(RTE_SDK)/mk/rte.vars.mk
 # library name
 LIB = librte_latencystats.a
 
-CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3
 LDLIBS += -lm
 LDLIBS += -lpthread
lib/librte_latencystats/meson.build +0 -1
index 0c96e1287..286558dd7 100644
@@ -4,4 +4,3 @@
 sources = files('rte_latencystats.c')
 headers = files('rte_latencystats.h')
 deps += ['metrics', 'ethdev']
-allow_experimental_apis = true
Signature · 1 line
2.16.2
Tested-by on v1 1/1
#1 lore raw
Quoted 14 lines · Thomas Monjalon

The basic operations for ports enumeration should not be considered as experimental in DPDK 18.05.

The iterator RTE_ETH_FOREACH_DEV was introduced in DPDK 17.05. It uses the function the rte_eth_find_next_owned_by() to get only ownerless ports. Its API can be considered stable.
So the flag experimental is removed from rte_eth_find_next_owned_by().

The flag experimental is removed from rte_eth_dev_count_avail() which is the new name of the old function rte_eth_dev_count().

The flag experimental is set to rte_eth_dev_count_total() in the .c file for consistency with the declaration in the .h file.

Quoted 7 lines

A lot of internal applications are fixed to not allow experimental API.

Fixes 8728ccf37615 ("fix ethdev ports enumeration")
Fixes d9a42a69febf ("ethdev: deprecate port count function")
Fixes e70e26861eaf ("net/mvpp2: fix build")
Quoted 7 lines

It was a really bad idea to keep the iterator macro and function as experimental.
And it was a real mistake of setting the new name of rte_eth_dev_count function as experimental.

I think this fix must be merged in 18.05-rc1, in order to avoid troubles when testing coming RC1.

+1

Signature · 1 line
David Marchand
#3 lore raw
In reply to Thomas Monjalon
Quoted 23 lines · Thomas Monjalon

The basic operations for ports enumeration should not be considered as experimental in DPDK 18.05.

The iterator RTE_ETH_FOREACH_DEV was introduced in DPDK 17.05. It uses the function the rte_eth_find_next_owned_by() to get only ownerless ports. Its API can be considered stable.
So the flag experimental is removed from rte_eth_find_next_owned_by().

The flag experimental is removed from rte_eth_dev_count_avail() which is the new name of the old function rte_eth_dev_count().

The flag experimental is set to rte_eth_dev_count_total() in the .c file for consistency with the declaration in the .h file.

A lot of internal applications are fixed to not allow experimental API.

Fixes 8728ccf37615 ("fix ethdev ports enumeration")
Fixes d9a42a69febf ("ethdev: deprecate port count function")
Fixes e70e26861eaf ("net/mvpp2: fix build")

---

Quoted 7 lines

It was a really bad idea to keep the iterator macro and function as experimental.
And it was a real mistake of setting the new name of rte_eth_dev_count function as experimental.

I think this fix must be merged in 18.05-rc1, in order to avoid troubles when testing coming RC1.

Agree that these are very common functions and setting them experimental will cause almost all application allow experimental which will weaken the value of allow_experimental flag by hiding other experimental APIs because of these.

+1 to having this change for -rc1.

#4 lore raw
In reply to Thomas Monjalon
Quoted 14 lines · Thomas Monjalon

The basic operations for ports enumeration should not be considered as experimental in DPDK 18.05.

The iterator RTE_ETH_FOREACH_DEV was introduced in DPDK 17.05. It uses the function the rte_eth_find_next_owned_by() to get only ownerless ports. Its API can be considered stable.
So the flag experimental is removed from rte_eth_find_next_owned_by().

The flag experimental is removed from rte_eth_dev_count_avail() which is the new name of the old function rte_eth_dev_count().

The flag experimental is set to rte_eth_dev_count_total() in the .c file for consistency with the declaration in the .h file.

Quoted 7 lines

A lot of internal applications are fixed to not allow experimental API.

Fixes 8728ccf37615 ("fix ethdev ports enumeration")
Fixes d9a42a69febf ("ethdev: deprecate port count function")
Fixes e70e26861eaf ("net/mvpp2: fix build")

Getting some build errors [1], it seems some samples are using some other experimental APIs so that we can't remove the flag for them.

[1]
.../dpdk/examples/tep_termination/main.c: In function ‘main’:
.../dpdk/examples/tep_termination/main.c:1209:3: error: ‘rte_ctrl_thread_create’ is deprecated: Symbol is not yet part of stable ABI [-Werror=deprecated-declarations]
ret = rte_ctrl_thread_create(&tid, "print-stats", NULL,
^~~

.../dpdk/examples/vhost/main.c: In function ‘main’:
.../dpdk/examples/vhost/main.c:1497:3: error: ‘rte_ctrl_thread_create’ is
deprecated: Symbol is not yet part of stable ABI [-Werror=deprecated-declarations]
ret = rte_ctrl_thread_create(&tid, "print-stats", NULL,
^~~

#5 lore raw

25/04/2018 12:21, Ferruh Yigit:

Quoted 35 lines · Thomas Monjalon
Quoted 14 lines

The basic operations for ports enumeration should not be considered as experimental in DPDK 18.05.

The iterator RTE_ETH_FOREACH_DEV was introduced in DPDK 17.05. It uses the function the rte_eth_find_next_owned_by() to get only ownerless ports. Its API can be considered stable.
So the flag experimental is removed from rte_eth_find_next_owned_by().

The flag experimental is removed from rte_eth_dev_count_avail() which is the new name of the old function rte_eth_dev_count().

The flag experimental is set to rte_eth_dev_count_total() in the .c file for consistency with the declaration in the .h file.

Quoted 7 lines

A lot of internal applications are fixed to not allow experimental API.

Fixes 8728ccf37615 ("fix ethdev ports enumeration")
Fixes d9a42a69febf ("ethdev: deprecate port count function")
Fixes e70e26861eaf ("net/mvpp2: fix build")

Getting some build errors [1], it seems some samples are using some other experimental APIs so that we can't remove the flag for them.

[1]
.../dpdk/examples/tep_termination/main.c: In function ‘main’:
.../dpdk/examples/tep_termination/main.c:1209:3: error: ‘rte_ctrl_thread_create’ is deprecated: Symbol is not yet part of stable ABI [-Werror=deprecated-declarations]
ret = rte_ctrl_thread_create(&tid, "print-stats", NULL,
^~~

Quoted 5 lines

.../dpdk/examples/vhost/main.c: In function ‘main’:
.../dpdk/examples/vhost/main.c:1497:3: error: ‘rte_ctrl_thread_create’ is
deprecated: Symbol is not yet part of stable ABI [-Werror=deprecated-declarations]
ret = rte_ctrl_thread_create(&tid, "print-stats", NULL,
^~~

Ah sorry, I think it is due to a change in next-net. I have prepared this patch on master.

Please can you fix it when applying?

#6 lore raw
Quoted 42 lines · Thomas Monjalon

25/04/2018 12:21, Ferruh Yigit:

Quoted 35 lines · Thomas Monjalon
Quoted 14 lines

The basic operations for ports enumeration should not be considered as experimental in DPDK 18.05.

The iterator RTE_ETH_FOREACH_DEV was introduced in DPDK 17.05. It uses the function the rte_eth_find_next_owned_by() to get only ownerless ports. Its API can be considered stable.
So the flag experimental is removed from rte_eth_find_next_owned_by().

The flag experimental is removed from rte_eth_dev_count_avail() which is the new name of the old function rte_eth_dev_count().

The flag experimental is set to rte_eth_dev_count_total() in the .c file for consistency with the declaration in the .h file.

Quoted 7 lines

A lot of internal applications are fixed to not allow experimental API.

Fixes 8728ccf37615 ("fix ethdev ports enumeration")
Fixes d9a42a69febf ("ethdev: deprecate port count function")
Fixes e70e26861eaf ("net/mvpp2: fix build")

Getting some build errors [1], it seems some samples are using some other experimental APIs so that we can't remove the flag for them.

[1]
.../dpdk/examples/tep_termination/main.c: In function ‘main’:
.../dpdk/examples/tep_termination/main.c:1209:3: error: ‘rte_ctrl_thread_create’ is deprecated: Symbol is not yet part of stable ABI [-Werror=deprecated-declarations]
ret = rte_ctrl_thread_create(&tid, "print-stats", NULL,
^~~

Quoted 5 lines

.../dpdk/examples/vhost/main.c: In function ‘main’:
.../dpdk/examples/vhost/main.c:1497:3: error: ‘rte_ctrl_thread_create’ is
deprecated: Symbol is not yet part of stable ABI [-Werror=deprecated-declarations]
ret = rte_ctrl_thread_create(&tid, "print-stats", NULL,
^~~

Quoted 4 lines

Ah sorry, I think it is due to a change in next-net. I have prepared this patch on master.

Please can you fix it when applying?

OK, I will.

Applied
#2 lore raw
In reply to David Marchand
Quoted 17 lines · David Marchand
Quoted 16 lines · Thomas Monjalon

The basic operations for ports enumeration should not be considered as experimental in DPDK 18.05.

The iterator RTE_ETH_FOREACH_DEV was introduced in DPDK 17.05. It uses the function the rte_eth_find_next_owned_by() to get only ownerless ports. Its API can be considered stable.
So the flag experimental is removed from rte_eth_find_next_owned_by().

The flag experimental is removed from rte_eth_dev_count_avail() which is the new name of the old function rte_eth_dev_count().

The flag experimental is set to rte_eth_dev_count_total() in the .c file for consistency with the declaration in the .h file.

A lot of internal applications are fixed to not allow experimental API.

Quoted 7 lines
Quoted 5 lines
Fixes 8728ccf37615 ("fix ethdev ports enumeration")
Fixes d9a42a69febf ("ethdev: deprecate port count function")
Fixes e70e26861eaf ("net/mvpp2: fix build")

Applied to dpdk-next-net/master, thanks.

(Fixed tep_termination & vhost sample app build fix by adding -DALLOW_EXPERIMENTAL_API back)

Quoted 12 lines
Quoted 8 lines

It was a really bad idea to keep the iterator macro and function as experimental.
And it was a real mistake of setting the new name of rte_eth_dev_count function as experimental.

I think this fix must be merged in 18.05-rc1, in order to avoid troubles when testing coming RC1.

+1