From: Stephen Hemminger <stephen@networkplumber.org>
To: dev@dpdk.org
Cc: "Stephen Hemminger" <stephen@networkplumber.org>,
"Nipun Gupta" <nipun.gupta@amd.com>,
"Nikhil Agarwal" <nikhil.agarwal@amd.com>,
"Hemant Agrawal" <hemant.agrawal@nxp.com>,
"Sachin Saxena" <sachin.saxena@nxp.com>,
"Chenbo Xia" <chenbox@nvidia.com>, "Wei Hu" <weh@microsoft.com>,
"Nithin Dabilpuram" <ndabilpuram@marvell.com>,
"Kiran Kumar K" <kirankumark@marvell.com>,
"Sunil Kumar Kori" <skori@marvell.com>,
"Satha Rao" <skoteshwar@marvell.com>,
"Harman Kalra" <hkalra@marvell.com>,
"Tirthendu Sarkar" <tirthendu.sarkar@intel.com>,
"Kishore Padmanabha" <kishore.padmanabha@broadcom.com>,
"Ajit Khaparde" <ajit.khaparde@broadcom.com>,
"Chas Williams" <3chas3@gmail.com>,
"Min Hu (Connor)" <humin29@huawei.com>,
"Potnuri Bharat Teja" <bharat@chelsio.com>,
"Gaetan Rivet" <grive@u256.net>,
"Xingui Yang" <yangxingui@huawei.com>,
"Chengwen Feng" <fengchengwen@huawei.com>,
"Bruce Richardson" <bruce.richardson@intel.com>,
"Praveen Shetty" <praveen.shetty@intel.com>,
"Vladimir Medvedkin" <vladimir.medvedkin@intel.com>,
"Anatoly Burakov" <anatoly.burakov@intel.com>,
"Rosen Xu" <rosen.xu@altera.com>,
"Dariusz Sosnowski" <dsosnowski@nvidia.com>,
"Viacheslav Ovsiienko" <viacheslavo@nvidia.com>,
"Bing Zhao" <bingz@nvidia.com>, "Ori Kam" <orika@nvidia.com>,
"Suanming Mou" <suanmingm@nvidia.com>,
"Matan Azrad" <matan@nvidia.com>,
"Dimon Zhao" <dimon.zhao@nebula-matrix.com>,
"Leon Yu" <leon.yu@nebula-matrix.com>,
"Sam Chen" <sam.chen@nebula-matrix.com>,
"Martin Spinler" <spinler@cesnet.cz>,
"Andrew Rybchenko" <andrew.rybchenko@oktetlabs.ru>,
"Cristian Dumitrescu" <cristian.dumitrescu@intel.com>,
"Jie Liu" <liujie5@linkdatatechnology.com>,
"Jerin Jacob" <jerinj@marvell.com>,
"Maciej Czekaj" <mczekaj@marvell.com>,
"Junlong Wang" <wang.junlong1@zte.com.cn>,
"Ming Ran" <ran.ming@zte.com.cn>,
"Sivaprasad Tummala" <sivaprasad.tummala@amd.com>,
"Nicolas Chautru" <nicolas.chautru@intel.com>,
"Akhil Goyal" <gakhil@marvell.com>,
"Fan Zhang" <fanzhang.oss@gmail.com>,
"Dmitry Kozlyuk" <dmitry.kozliuk@gmail.com>,
"Yipeng Wang" <yipeng1.wang@intel.com>,
"Thomas Monjalon" <thomas@monjalon.net>,
"Pavan Nikhilesh" <pbhagavatula@marvell.com>,
"Elena Agostini" <eagostini@nvidia.com>,
"Konstantin Ananyev" <konstantin.ananyev@huawei.com>,
"Morten Brørup" <mb@smartsharesystems.com>,
"Tomasz Duszynski" <tduszynski@marvell.com>,
"Maxime Coquelin" <maxime.coquelin@redhat.com>
Subject: [PATCH v2 5/6] eal: deprecate RTE_TAILQ and RTE_STAILQ macro wrappers
Date: Tue, 1 Dec 2026 17:05:05 -0800 [thread overview]
Message-ID: <20261202011153.3255223-6-stephen@networkplumber.org> (raw)
In-Reply-To: <20261202011153.3255223-1-stephen@networkplumber.org>
The RTE_TAILQ_HEAD, RTE_TAILQ_ENTRY, RTE_TAILQ_FOREACH, RTE_TAILQ_FIRST,
RTE_TAILQ_NEXT, RTE_TAILQ_FOREACH_SAFE, RTE_STAILQ_HEAD and
RTE_STAILQ_ENTRY were added to help the port to Windows.
Now that rte_queue.h provides the same macros on all platforms, they are
no longer necessary. Keep them as deprecated aliases and add a
deprecation notice for removal in 27.11.
They stay where they already were, so that code using them keeps
compiling unchanged: the seven aliases in each rte_os.h, reached through
rte_common.h, and RTE_TAILQ_FOREACH_SAFE in rte_tailq.h. Windows now
maps its seven to the plain macros the way Linux and FreeBSD do, instead
of open coding the structures.
The aliases use only the plain macros, never the extended ones, so they
keep working where a system <sys/queue.h> was included first and
rte_queue.h was therefore suppressed. That is why RTE_TAILQ_FOREACH_SAFE
is open coded rather than mapped to TAILQ_FOREACH_SAFE, which glibc does
not have.
On Windows this widens the application namespace. The Windows copy of
the header was not installed before, so no queue(3) names reached
applications; now rte_common.h defines LIST_ENTRY and the rest in every
translation unit, and the Windows SDK has types of those names. A bare
use does not expand a function-like macro, so this should be safe, but
it needs a Windows build to confirm.
With the wrappers unused, rte_tailq.h is left included by files that
reference nothing in it: the list macros come from rte_queue.h, and what
remains is the shared memory tailq registry. Include rte_queue.h where
plain list macros are still used, and drop the include otherwise. A few
files were reaching rte_tailq.h, stdio.h or rte_debug.h transitively
through a header changed here, and now include what they use.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
doc/guides/rel_notes/deprecation.rst | 8 +++
doc/guides/rel_notes/release_27_03.rst | 9 ++++
drivers/bus/cdx/cdx_vfio.c | 1 +
drivers/bus/dpaa/dpaa_bus.c | 2 +-
drivers/bus/fslmc/bus_fslmc_driver.h | 1 -
drivers/bus/fslmc/fslmc_bus.c | 6 +--
drivers/bus/fslmc/fslmc_vfio.c | 8 +--
drivers/bus/fslmc/private.h | 4 +-
drivers/bus/pci/pci_common.c | 1 -
drivers/bus/vdev/vdev.c | 3 +-
drivers/bus/vmbus/linux/vmbus_bus.c | 2 +-
drivers/bus/vmbus/vmbus_bufring.c | 2 +-
drivers/bus/vmbus/vmbus_channel.c | 2 +-
drivers/bus/vmbus/vmbus_common.c | 1 -
drivers/common/cnxk/roc_platform.h | 3 +-
drivers/event/dlb2/pf/base/dlb2_osdep_list.h | 2 +-
drivers/mempool/dpaa/dpaa_mempool.c | 2 +-
drivers/net/bnxt/bnxt_filter.c | 1 -
drivers/net/bnxt/bnxt_flow.c | 1 -
drivers/net/bnxt/tf_ulp/bnxt_ulp.c | 6 +--
drivers/net/bnxt/tf_ulp/bnxt_ulp_meter.c | 1 -
drivers/net/bnxt/tf_ulp/bnxt_ulp_tf.c | 1 -
drivers/net/bnxt/tf_ulp/bnxt_ulp_tfc.c | 1 -
drivers/net/bnxt/tf_ulp/bnxt_ulp_utils.h | 1 -
drivers/net/bonding/rte_eth_bond_flow.c | 3 +-
drivers/net/cnxk/cnxk_eswitch_flow.c | 2 +-
drivers/net/cnxk/cnxk_ethdev.c | 6 +--
drivers/net/cnxk/cnxk_ethdev.h | 2 +-
drivers/net/cnxk/cnxk_ethdev_sec_telemetry.c | 8 +--
drivers/net/cxgbe/base/t4_hw.c | 1 -
drivers/net/cxgbe/cxgbe_ethdev.c | 1 -
drivers/net/cxgbe/cxgbe_main.c | 1 -
drivers/net/cxgbe/sge.c | 1 -
drivers/net/dpaa/dpaa_ethdev.c | 1 -
drivers/net/dpaa/dpaa_rxtx.c | 1 -
drivers/net/dpaa2/dpaa2_flow.c | 1 -
drivers/net/dpaa2/dpaa2_mux.c | 1 -
drivers/net/failsafe/failsafe_flow.c | 3 +-
drivers/net/hns3/hns3_tm.h | 2 +-
drivers/net/intel/common/flow_engine.h | 5 +-
drivers/net/intel/cpfl/cpfl_flow.c | 10 ++--
drivers/net/intel/cpfl/cpfl_flow_engine_fxp.c | 1 -
drivers/net/intel/i40e/i40e_ethdev.c | 12 ++---
drivers/net/intel/i40e/i40e_fdir.c | 2 +-
drivers/net/intel/i40e/i40e_flow.c | 3 +-
drivers/net/intel/i40e/rte_pmd_i40e.c | 8 +--
drivers/net/intel/iavf/iavf_fdir.c | 1 -
drivers/net/intel/iavf/iavf_fsub.c | 1 -
drivers/net/intel/iavf/iavf_generic_flow.c | 19 ++++---
drivers/net/intel/iavf/iavf_hash.c | 1 -
drivers/net/intel/ice/ice_acl_filter.c | 1 -
drivers/net/intel/ice/ice_diagnose.c | 2 +-
drivers/net/intel/ice/ice_ethdev.c | 10 ++--
drivers/net/intel/ice/ice_generic_flow.c | 9 ++--
drivers/net/intel/ice/ice_hash.c | 1 -
drivers/net/intel/ice/ice_switch_filter.c | 1 -
drivers/net/intel/ipn3ke/ipn3ke_flow.c | 3 +-
drivers/net/intel/ixgbe/ixgbe_flow.c | 5 +-
drivers/net/mlx5/mlx5_flow_dv.c | 3 +-
drivers/net/mlx5/mlx5_flow_meter.c | 4 +-
drivers/net/nbl/nbl_common/nbl_userdev.c | 4 +-
drivers/net/nbl/nbl_include/nbl_include.h | 1 -
drivers/net/nfb/nfb_ethdev.c | 3 +-
drivers/net/sfc/sfc_flow.c | 6 +--
drivers/net/sfc/sfc_flow.h | 2 +-
| 2 +-
| 2 +-
drivers/net/softnic/rte_eth_softnic_swq.c | 4 +-
drivers/net/sxe2/sxe2_dump.c | 6 +--
drivers/net/sxe2/sxe2_ethdev.c | 2 +-
drivers/net/sxe2/sxe2_filter.c | 24 ++++-----
drivers/net/sxe2/sxe2_flow_define.h | 2 +-
drivers/net/sxe2/sxe2_switchdev.c | 2 +-
drivers/net/sxe2/sxe2_vsi.c | 4 +-
drivers/net/thunderx/nicvf_ethdev.c | 1 -
drivers/net/zxdh/zxdh_flow.c | 3 +-
drivers/net/zxdh/zxdh_mtr.c | 6 +--
drivers/vdpa/mlx5/mlx5_vdpa_cthread.c | 2 +-
examples/vm_power_manager/channel_manager.c | 9 ++--
lib/bbdev/rte_bbdev.h | 2 +-
lib/cryptodev/cryptodev_pmd.h | 2 +-
lib/cryptodev/rte_cryptodev.h | 2 +-
lib/eal/common/eal_common_devargs.c | 6 +--
lib/eal/common/eal_common_options.c | 3 +-
lib/eal/common/eal_common_proc.c | 2 +-
lib/eal/freebsd/include/rte_os.h | 18 ++++++-
lib/eal/include/bus_driver.h | 10 ++--
lib/eal/include/dev_driver.h | 4 +-
lib/eal/include/rte_class.h | 4 +-
lib/eal/include/rte_devargs.h | 2 +-
lib/eal/include/rte_queue.h | 5 ++
lib/eal/include/rte_tailq.h | 27 +++++++---
lib/eal/linux/include/rte_os.h | 18 ++++++-
lib/eal/windows/include/rte_os.h | 53 +++++++++----------
lib/efd/rte_efd.c | 2 +-
lib/ethdev/rte_ethdev_core.h | 2 +-
lib/eventdev/rte_event_vector_adapter.c | 4 +-
lib/gpudev/gpudev.c | 5 +-
lib/gpudev/gpudev_driver.h | 2 +-
lib/ip_frag/ip_frag_common.h | 1 -
lib/ip_frag/ip_reassembly.h | 4 +-
lib/ip_frag/rte_ip_frag_common.c | 2 +-
lib/mempool/rte_mempool.c | 4 +-
lib/mempool/rte_mempool.h | 8 +--
lib/pmu/pmu.c | 3 +-
lib/power/power_cpufreq.h | 2 +-
lib/power/power_uncore_ops.h | 2 +-
lib/power/rte_power_cpufreq.c | 8 +--
lib/power/rte_power_uncore.c | 7 +--
lib/table/rte_swx_table.h | 4 +-
lib/table/rte_swx_table_selector.h | 4 +-
lib/vhost/iotlb.c | 16 +++---
lib/vhost/vdpa.c | 3 +-
lib/vhost/vdpa_driver.h | 2 +-
114 files changed, 280 insertions(+), 253 deletions(-)
diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst
index c4b5c6db2e..ec552847e9 100644
--- a/doc/guides/rel_notes/deprecation.rst
+++ b/doc/guides/rel_notes/deprecation.rst
@@ -114,3 +114,11 @@ Deprecation Notices
* bus/vmbus: Starting DPDK 25.11, all the vmbus API defined in
``drivers/bus/vmbus/rte_bus_vmbus.h`` will become internal to DPDK.
Those API functions are used internally by DPDK core and netvsc PMD.
+
+* eal: The ``RTE_TAILQ_HEAD``, ``RTE_TAILQ_ENTRY``, ``RTE_TAILQ_FOREACH``,
+ ``RTE_TAILQ_FIRST``, ``RTE_TAILQ_NEXT``, ``RTE_TAILQ_FOREACH_SAFE``,
+ ``RTE_STAILQ_HEAD`` and ``RTE_STAILQ_ENTRY`` macros
+ are deprecated and will be removed in DPDK 27.11.
+ They existed only because Windows had no ``<sys/queue.h>``.
+ Use the equivalent ``TAILQ_`` and ``STAILQ_`` macros from
+ ``<rte_queue.h>``, which are now available on all platforms.
diff --git a/doc/guides/rel_notes/release_27_03.rst b/doc/guides/rel_notes/release_27_03.rst
index c59c161e27..59bd98db17 100644
--- a/doc/guides/rel_notes/release_27_03.rst
+++ b/doc/guides/rel_notes/release_27_03.rst
@@ -93,6 +93,15 @@ API Changes
=======================================================
+* eal: Deprecated the ``RTE_TAILQ_HEAD``, ``RTE_TAILQ_ENTRY``,
+ ``RTE_TAILQ_FOREACH``, ``RTE_TAILQ_FIRST``, ``RTE_TAILQ_NEXT``,
+ ``RTE_TAILQ_FOREACH_SAFE``, ``RTE_STAILQ_HEAD`` and ``RTE_STAILQ_ENTRY``
+ macros.
+ They existed only because Windows had no ``<sys/queue.h>``.
+ Use the standard ``TAILQ_`` and ``STAILQ_`` macros from ``rte_queue.h``.
+ The macros are kept as aliases and will be removed in DPDK 27.11.
+
+
ABI Changes
-----------
diff --git a/drivers/bus/cdx/cdx_vfio.c b/drivers/bus/cdx/cdx_vfio.c
index 7a554472c2..67a6c58faf 100644
--- a/drivers/bus/cdx/cdx_vfio.c
+++ b/drivers/bus/cdx/cdx_vfio.c
@@ -24,6 +24,7 @@
#include <rte_eal_paging.h>
#include <rte_errno.h>
#include <rte_malloc.h>
+#include <rte_tailq.h>
#include <dev_vfio.h>
#include "bus_cdx_driver.h"
diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c
index cbbeb927fe..120adfef4b 100644
--- a/drivers/bus/dpaa/dpaa_bus.c
+++ b/drivers/bus/dpaa/dpaa_bus.c
@@ -24,7 +24,7 @@
#include <rte_atomic.h>
#include <rte_branch_prediction.h>
#include <rte_memory.h>
-#include <rte_tailq.h>
+#include <rte_queue.h>
#include <rte_eal.h>
#include <rte_alarm.h>
#include <rte_ether.h>
diff --git a/drivers/bus/fslmc/bus_fslmc_driver.h b/drivers/bus/fslmc/bus_fslmc_driver.h
index 44c3a5e008..6cdd337fc7 100644
--- a/drivers/bus/fslmc/bus_fslmc_driver.h
+++ b/drivers/bus/fslmc/bus_fslmc_driver.h
@@ -26,7 +26,6 @@
#include <rte_interrupts.h>
#include <dev_driver.h>
#include <bus_driver.h>
-#include <rte_tailq.h>
#include <rte_devargs.h>
#include <rte_mbuf.h>
#include <rte_mbuf_dyn.h>
diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c
index e40fe59c7c..55dbc71065 100644
--- a/drivers/bus/fslmc/fslmc_bus.c
+++ b/drivers/bus/fslmc/fslmc_bus.c
@@ -378,7 +378,7 @@ fslmc_filter_control_devices(void)
struct rte_device *tmp_dev;
/* Track MPORTAL/DPIO blocklists */
- RTE_TAILQ_FOREACH_SAFE(rte_dev, &fslmc_control_devices, next, tmp_dev) {
+ TAILQ_FOREACH_SAFE(rte_dev, &fslmc_control_devices, next, tmp_dev) {
dev = RTE_BUS_DEVICE(rte_dev, *dev);
if (dev->dev_type != DPAA2_MPORTAL && dev->dev_type != DPAA2_IO)
continue;
@@ -419,7 +419,7 @@ fslmc_filter_control_devices(void)
else
keep_index = dpmcp_count - 1;
- RTE_TAILQ_FOREACH_SAFE(rte_dev, &fslmc_control_devices, next, tmp_dev) {
+ TAILQ_FOREACH_SAFE(rte_dev, &fslmc_control_devices, next, tmp_dev) {
dev = RTE_BUS_DEVICE(rte_dev, *dev);
if (dev->dev_type != DPAA2_MPORTAL)
continue;
@@ -437,7 +437,7 @@ fslmc_filter_control_devices(void)
int last_index = dpio_count - 1;
int current_device = 0;
- RTE_TAILQ_FOREACH_SAFE(rte_dev, &fslmc_control_devices, next, tmp_dev) {
+ TAILQ_FOREACH_SAFE(rte_dev, &fslmc_control_devices, next, tmp_dev) {
dev = RTE_BUS_DEVICE(rte_dev, *dev);
if (dev->dev_type != DPAA2_IO)
continue;
diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c
index 5ffa869e6f..b536af21a8 100644
--- a/drivers/bus/fslmc/fslmc_vfio.c
+++ b/drivers/bus/fslmc/fslmc_vfio.c
@@ -1683,7 +1683,7 @@ fslmc_vfio_process_group(void)
int ret;
/* Process MPORTAL - should be initialized first */
- RTE_TAILQ_FOREACH_SAFE(rte_dev, &fslmc_control_devices, next, tmp_dev) {
+ TAILQ_FOREACH_SAFE(rte_dev, &fslmc_control_devices, next, tmp_dev) {
dev = RTE_BUS_DEVICE(rte_dev, *dev);
if (dev->dev_type != DPAA2_MPORTAL)
continue;
@@ -1697,7 +1697,7 @@ fslmc_vfio_process_group(void)
}
/* Remove any remaining MPORTAL devices */
- RTE_TAILQ_FOREACH_SAFE(rte_dev, &fslmc_control_devices, next, tmp_dev) {
+ TAILQ_FOREACH_SAFE(rte_dev, &fslmc_control_devices, next, tmp_dev) {
dev = RTE_BUS_DEVICE(rte_dev, *dev);
if (dev->dev_type == DPAA2_MPORTAL)
fslmc_remove_control_device(dev);
@@ -1706,7 +1706,7 @@ fslmc_vfio_process_group(void)
/* Process DPRC device next as it updates endpoint of
* other devices.
*/
- RTE_TAILQ_FOREACH_SAFE(rte_dev, &fslmc_control_devices, next, tmp_dev) {
+ TAILQ_FOREACH_SAFE(rte_dev, &fslmc_control_devices, next, tmp_dev) {
dev = RTE_BUS_DEVICE(rte_dev, *dev);
if (dev->dev_type != DPAA2_DPRC)
continue;
@@ -1719,7 +1719,7 @@ fslmc_vfio_process_group(void)
}
/* Process remaining control devices */
- RTE_TAILQ_FOREACH_SAFE(rte_dev, &fslmc_control_devices, next, tmp_dev) {
+ TAILQ_FOREACH_SAFE(rte_dev, &fslmc_control_devices, next, tmp_dev) {
dev = RTE_BUS_DEVICE(rte_dev, *dev);
switch (dev->dev_type) {
case DPAA2_CON:
diff --git a/drivers/bus/fslmc/private.h b/drivers/bus/fslmc/private.h
index 064ffa9536..8d25365fea 100644
--- a/drivers/bus/fslmc/private.h
+++ b/drivers/bus/fslmc/private.h
@@ -5,13 +5,15 @@
#ifndef BUS_FSLMC_PRIVATE_H
#define BUS_FSLMC_PRIVATE_H
+#include <rte_queue.h>
+
#include <bus_driver.h>
#include <bus_fslmc_driver.h>
extern struct rte_bus rte_fslmc_bus;
-RTE_TAILQ_HEAD(fslmc_control_device_list, rte_device);
+TAILQ_HEAD(fslmc_control_device_list, rte_device);
extern struct fslmc_control_device_list fslmc_control_devices;
void fslmc_bus_remove_device(struct rte_dpaa2_device *dev);
diff --git a/drivers/bus/pci/pci_common.c b/drivers/bus/pci/pci_common.c
index 35ba1f968a..2a545d6841 100644
--- a/drivers/bus/pci/pci_common.c
+++ b/drivers/bus/pci/pci_common.c
@@ -25,7 +25,6 @@
#include <rte_string_fns.h>
#include <rte_common.h>
#include <rte_devargs.h>
-#include <rte_tailq.h>
#include "private.h"
diff --git a/drivers/bus/vdev/vdev.c b/drivers/bus/vdev/vdev.c
index 04702a7270..619a2b2649 100644
--- a/drivers/bus/vdev/vdev.c
+++ b/drivers/bus/vdev/vdev.c
@@ -19,7 +19,6 @@
#include <rte_devargs.h>
#include <rte_log.h>
#include <rte_memory.h>
-#include <rte_tailq.h>
#include <rte_spinlock.h>
#include <rte_string_fns.h>
#include <rte_errno.h>
@@ -103,7 +102,7 @@ rte_vdev_remove_custom_scan(rte_vdev_scan_callback callback, void *user_arg)
struct vdev_custom_scan *custom_scan, *tmp_scan;
rte_spinlock_lock(&vdev_custom_scan_lock);
- RTE_TAILQ_FOREACH_SAFE(custom_scan, &vdev_custom_scans, next,
+ TAILQ_FOREACH_SAFE(custom_scan, &vdev_custom_scans, next,
tmp_scan) {
if (custom_scan->callback != callback ||
(custom_scan->user_arg != (void *)-1 &&
diff --git a/drivers/bus/vmbus/linux/vmbus_bus.c b/drivers/bus/vmbus/linux/vmbus_bus.c
index 779ea50b92..d117962d3d 100644
--- a/drivers/bus/vmbus/linux/vmbus_bus.c
+++ b/drivers/bus/vmbus/linux/vmbus_bus.c
@@ -3,6 +3,7 @@
* All Rights Reserved.
*/
+#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <dirent.h>
@@ -12,7 +13,6 @@
#include <rte_eal.h>
#include <rte_uuid.h>
-#include <rte_tailq.h>
#include <rte_log.h>
#include <rte_devargs.h>
#include <rte_memory.h>
diff --git a/drivers/bus/vmbus/vmbus_bufring.c b/drivers/bus/vmbus/vmbus_bufring.c
index 95f03929cb..b2309be35b 100644
--- a/drivers/bus/vmbus/vmbus_bufring.c
+++ b/drivers/bus/vmbus/vmbus_bufring.c
@@ -12,7 +12,7 @@
#include <sys/uio.h>
#include <rte_eal.h>
-#include <rte_tailq.h>
+#include <rte_debug.h>
#include <rte_log.h>
#include <rte_malloc.h>
#include <rte_stdatomic.h>
diff --git a/drivers/bus/vmbus/vmbus_channel.c b/drivers/bus/vmbus/vmbus_channel.c
index 90ba3d1ef6..d48911efcf 100644
--- a/drivers/bus/vmbus/vmbus_channel.c
+++ b/drivers/bus/vmbus/vmbus_channel.c
@@ -10,7 +10,7 @@
#include <eal_export.h>
#include <rte_eal.h>
-#include <rte_tailq.h>
+#include <rte_queue.h>
#include <rte_log.h>
#include <rte_malloc.h>
#include <rte_atomic.h>
diff --git a/drivers/bus/vmbus/vmbus_common.c b/drivers/bus/vmbus/vmbus_common.c
index 62df339af1..2053bbbc23 100644
--- a/drivers/bus/vmbus/vmbus_common.c
+++ b/drivers/bus/vmbus/vmbus_common.c
@@ -13,7 +13,6 @@
#include <eal_export.h>
#include <rte_log.h>
#include <rte_eal.h>
-#include <rte_tailq.h>
#include <rte_devargs.h>
#include <rte_lcore.h>
#include <rte_malloc.h>
diff --git a/drivers/common/cnxk/roc_platform.h b/drivers/common/cnxk/roc_platform.h
index 1450306b80..b5a7be4e4e 100644
--- a/drivers/common/cnxk/roc_platform.h
+++ b/drivers/common/cnxk/roc_platform.h
@@ -24,7 +24,6 @@
#include <rte_seqcount.h>
#include <rte_spinlock.h>
#include <rte_string_fns.h>
-#include <rte_tailq.h>
#include <rte_telemetry.h>
#include "eal_filesystem.h"
@@ -66,7 +65,7 @@
#define PLT_ALIGN_FLOOR RTE_ALIGN_FLOOR
#define PLT_INIT RTE_INIT
#define PLT_MAX_ETHPORTS RTE_MAX_ETHPORTS
-#define PLT_TAILQ_FOREACH_SAFE RTE_TAILQ_FOREACH_SAFE
+#define PLT_TAILQ_FOREACH_SAFE TAILQ_FOREACH_SAFE
#ifndef PLT_ETHER_ADDR_LEN
#define PLT_ETHER_ADDR_LEN RTE_ETHER_ADDR_LEN
diff --git a/drivers/event/dlb2/pf/base/dlb2_osdep_list.h b/drivers/event/dlb2/pf/base/dlb2_osdep_list.h
index 5531739d8d..08d91ada15 100644
--- a/drivers/event/dlb2/pf/base/dlb2_osdep_list.h
+++ b/drivers/event/dlb2/pf/base/dlb2_osdep_list.h
@@ -5,7 +5,7 @@
#ifndef __DLB2_OSDEP_LIST_H
#define __DLB2_OSDEP_LIST_H
-#include <rte_tailq.h>
+#include <rte_queue.h>
struct dlb2_list_entry {
TAILQ_ENTRY(dlb2_list_entry) node;
diff --git a/drivers/mempool/dpaa/dpaa_mempool.c b/drivers/mempool/dpaa/dpaa_mempool.c
index 63b993c460..39462f8cac 100644
--- a/drivers/mempool/dpaa/dpaa_mempool.c
+++ b/drivers/mempool/dpaa/dpaa_mempool.c
@@ -21,7 +21,7 @@
#include <rte_log.h>
#include <rte_debug.h>
#include <rte_memory.h>
-#include <rte_tailq.h>
+#include <rte_queue.h>
#include <rte_eal.h>
#include <rte_malloc.h>
#include <rte_ring.h>
diff --git a/drivers/net/bnxt/bnxt_filter.c b/drivers/net/bnxt/bnxt_filter.c
index 07f034b197..276ccccd7f 100644
--- a/drivers/net/bnxt/bnxt_filter.c
+++ b/drivers/net/bnxt/bnxt_filter.c
@@ -10,7 +10,6 @@
#include <rte_malloc.h>
#include <rte_flow.h>
#include <rte_flow_driver.h>
-#include <rte_tailq.h>
#include "bnxt.h"
#include "bnxt_filter.h"
diff --git a/drivers/net/bnxt/bnxt_flow.c b/drivers/net/bnxt/bnxt_flow.c
index 982a0a58a6..d47a3b18bc 100644
--- a/drivers/net/bnxt/bnxt_flow.c
+++ b/drivers/net/bnxt/bnxt_flow.c
@@ -9,7 +9,6 @@
#include <rte_malloc.h>
#include <rte_flow.h>
#include <rte_flow_driver.h>
-#include <rte_tailq.h>
#include <rte_alarm.h>
#include <rte_cycles.h>
diff --git a/drivers/net/bnxt/tf_ulp/bnxt_ulp.c b/drivers/net/bnxt/tf_ulp/bnxt_ulp.c
index 99061f5c5e..7e042cf784 100644
--- a/drivers/net/bnxt/tf_ulp/bnxt_ulp.c
+++ b/drivers/net/bnxt/tf_ulp/bnxt_ulp.c
@@ -7,7 +7,7 @@
#include <rte_malloc.h>
#include <rte_flow.h>
#include <rte_flow_driver.h>
-#include <rte_tailq.h>
+#include <rte_queue.h>
#include <rte_spinlock.h>
#include "bnxt.h"
@@ -652,7 +652,7 @@ bnxt_ulp_cntxt_list_del(struct bnxt_ulp_context *ulp_ctx)
struct ulp_context_list_entry *entry, *temp;
rte_spinlock_lock(&bnxt_ulp_ctxt_lock);
- RTE_TAILQ_FOREACH_SAFE(entry, &ulp_cntx_list, next, temp) {
+ TAILQ_FOREACH_SAFE(entry, &ulp_cntx_list, next, temp) {
if (entry->ulp_ctx == ulp_ctx) {
TAILQ_REMOVE(&ulp_cntx_list, entry, next);
rte_free(entry);
@@ -669,7 +669,7 @@ bnxt_ulp_cntxt_list_count(void)
int count_1 = 0;
rte_spinlock_lock(&bnxt_ulp_ctxt_lock);
- RTE_TAILQ_FOREACH_SAFE(entry, &ulp_cntx_list, next, temp) {
+ TAILQ_FOREACH_SAFE(entry, &ulp_cntx_list, next, temp) {
count_1++;
}
rte_spinlock_unlock(&bnxt_ulp_ctxt_lock);
diff --git a/drivers/net/bnxt/tf_ulp/bnxt_ulp_meter.c b/drivers/net/bnxt/tf_ulp/bnxt_ulp_meter.c
index b14159f6f4..87fef8b9f1 100644
--- a/drivers/net/bnxt/tf_ulp/bnxt_ulp_meter.c
+++ b/drivers/net/bnxt/tf_ulp/bnxt_ulp_meter.c
@@ -10,7 +10,6 @@
#include <rte_malloc.h>
#include <rte_flow.h>
#include <rte_flow_driver.h>
-#include <rte_tailq.h>
#include <rte_alarm.h>
#include <rte_cycles.h>
#include <rte_mtr.h>
diff --git a/drivers/net/bnxt/tf_ulp/bnxt_ulp_tf.c b/drivers/net/bnxt/tf_ulp/bnxt_ulp_tf.c
index e1ffc64c5e..c48b7c23ad 100644
--- a/drivers/net/bnxt/tf_ulp/bnxt_ulp_tf.c
+++ b/drivers/net/bnxt/tf_ulp/bnxt_ulp_tf.c
@@ -7,7 +7,6 @@
#include <rte_malloc.h>
#include <rte_flow.h>
#include <rte_flow_driver.h>
-#include <rte_tailq.h>
#include <rte_spinlock.h>
#include <rte_mtr.h>
#include <rte_version.h>
diff --git a/drivers/net/bnxt/tf_ulp/bnxt_ulp_tfc.c b/drivers/net/bnxt/tf_ulp/bnxt_ulp_tfc.c
index d5ce4c3c18..0e5b3c026d 100644
--- a/drivers/net/bnxt/tf_ulp/bnxt_ulp_tfc.c
+++ b/drivers/net/bnxt/tf_ulp/bnxt_ulp_tfc.c
@@ -7,7 +7,6 @@
#include <rte_malloc.h>
#include <rte_flow.h>
#include <rte_flow_driver.h>
-#include <rte_tailq.h>
#include <rte_spinlock.h>
#include <rte_mtr.h>
#include <rte_version.h>
diff --git a/drivers/net/bnxt/tf_ulp/bnxt_ulp_utils.h b/drivers/net/bnxt/tf_ulp/bnxt_ulp_utils.h
index bd160e2db9..d85341d528 100644
--- a/drivers/net/bnxt/tf_ulp/bnxt_ulp_utils.h
+++ b/drivers/net/bnxt/tf_ulp/bnxt_ulp_utils.h
@@ -10,7 +10,6 @@
#include <rte_malloc.h>
#include <rte_flow.h>
#include <rte_flow_driver.h>
-#include <rte_tailq.h>
#include <rte_spinlock.h>
#include "bnxt.h"
diff --git a/drivers/net/bonding/rte_eth_bond_flow.c b/drivers/net/bonding/rte_eth_bond_flow.c
index b2a7d397c3..75a68556d0 100644
--- a/drivers/net/bonding/rte_eth_bond_flow.c
+++ b/drivers/net/bonding/rte_eth_bond_flow.c
@@ -8,7 +8,6 @@
#include <rte_errno.h>
#include <rte_malloc.h>
-#include <rte_tailq.h>
#include <rte_flow.h>
#include "eth_bond_private.h"
@@ -157,7 +156,7 @@ bond_flow_flush(struct rte_eth_dev *dev, struct rte_flow_error *err)
/* Destroy all bond flows from its members instead of flushing them to
* keep the LACP flow or any other external flows.
*/
- RTE_TAILQ_FOREACH_SAFE(flow, &internals->flow_list, next, tmp) {
+ TAILQ_FOREACH_SAFE(flow, &internals->flow_list, next, tmp) {
lret = bond_flow_destroy(dev, flow, err);
if (unlikely(lret != 0))
ret = lret;
diff --git a/drivers/net/cnxk/cnxk_eswitch_flow.c b/drivers/net/cnxk/cnxk_eswitch_flow.c
index 06077bfe92..767b666e86 100644
--- a/drivers/net/cnxk/cnxk_eswitch_flow.c
+++ b/drivers/net/cnxk/cnxk_eswitch_flow.c
@@ -21,7 +21,7 @@ cnxk_eswitch_flow_rules_remove_list(struct cnxk_eswitch_dev *eswitch_dev, struct
struct roc_npc_flow *flow, *tvar;
int rc = 0;
- RTE_TAILQ_FOREACH_SAFE(flow, list, next, tvar) {
+ TAILQ_FOREACH_SAFE(flow, list, next, tvar) {
plt_esw_dbg("Removing flow %d", flow->mcam_id);
rc = roc_eswitch_npc_mcam_delete_rule(&eswitch_dev->npc, flow,
hw_func);
diff --git a/drivers/net/cnxk/cnxk_ethdev.c b/drivers/net/cnxk/cnxk_ethdev.c
index 0bd0302d6a..6cd3189bdd 100644
--- a/drivers/net/cnxk/cnxk_ethdev.c
+++ b/drivers/net/cnxk/cnxk_ethdev.c
@@ -464,7 +464,7 @@ nix_meter_fini(struct cnxk_eth_dev *dev)
uint32_t i;
int rc = 0;
- RTE_TAILQ_FOREACH_SAFE(mtr, fms, next, next_mtr) {
+ TAILQ_FOREACH_SAFE(mtr, fms, next, next_mtr) {
for (i = 0; i < mtr->rq_num; i++) {
rq = &dev->rqs[mtr->rq_id[i]];
rc |= roc_nix_bpf_ena_dis(nix, mtr->bpf_id, rq, false);
@@ -512,7 +512,7 @@ nix_security_release(struct cnxk_eth_dev *dev)
if (dev->rx_offloads & RTE_ETH_RX_OFFLOAD_SECURITY || dev->ip_reass_en) {
/* Destroy inbound sessions */
tvar = NULL;
- RTE_TAILQ_FOREACH_SAFE(eth_sec, &dev->inb.list, entry, tvar)
+ TAILQ_FOREACH_SAFE(eth_sec, &dev->inb.list, entry, tvar)
cnxk_eth_sec_ops.session_destroy(eth_dev,
eth_sec->sess);
@@ -534,7 +534,7 @@ nix_security_release(struct cnxk_eth_dev *dev)
dev->rx_offloads & RTE_ETH_RX_OFFLOAD_SECURITY) {
/* Destroy outbound sessions */
tvar = NULL;
- RTE_TAILQ_FOREACH_SAFE(eth_sec, &dev->outb.list, entry, tvar)
+ TAILQ_FOREACH_SAFE(eth_sec, &dev->outb.list, entry, tvar)
cnxk_eth_sec_ops.session_destroy(eth_dev,
eth_sec->sess);
diff --git a/drivers/net/cnxk/cnxk_ethdev.h b/drivers/net/cnxk/cnxk_ethdev.h
index f99bfdb89c..3970a58130 100644
--- a/drivers/net/cnxk/cnxk_ethdev.h
+++ b/drivers/net/cnxk/cnxk_ethdev.h
@@ -17,7 +17,7 @@
#include <rte_mtr_driver.h>
#include <rte_security.h>
#include <rte_security_driver.h>
-#include <rte_tailq.h>
+#include <rte_queue.h>
#include <rte_time.h>
#include <rte_tm_driver.h>
diff --git a/drivers/net/cnxk/cnxk_ethdev_sec_telemetry.c b/drivers/net/cnxk/cnxk_ethdev_sec_telemetry.c
index 0c1533e3d7..1104e0ec81 100644
--- a/drivers/net/cnxk/cnxk_ethdev_sec_telemetry.c
+++ b/drivers/net/cnxk/cnxk_ethdev_sec_telemetry.c
@@ -275,7 +275,7 @@ ethdev_sec_tel_handle_sa_info(const char *cmd __rte_unused, const char *params,
i = 0;
if (dev->tx_offloads & RTE_ETH_TX_OFFLOAD_SECURITY) {
tvar = NULL;
- RTE_TAILQ_FOREACH_SAFE(eth_sec, &dev->outb.list, entry, tvar) {
+ TAILQ_FOREACH_SAFE(eth_sec, &dev->outb.list, entry, tvar) {
if (eth_sec->sa_idx == sa_idx) {
rte_tel_data_add_dict_int(d, "outb_sa", 1);
if (roc_model_is_cn10k())
@@ -292,7 +292,7 @@ ethdev_sec_tel_handle_sa_info(const char *cmd __rte_unused, const char *params,
i = 0;
if (dev->rx_offloads & RTE_ETH_RX_OFFLOAD_SECURITY) {
tvar = NULL;
- RTE_TAILQ_FOREACH_SAFE(eth_sec, &dev->inb.list, entry, tvar) {
+ TAILQ_FOREACH_SAFE(eth_sec, &dev->inb.list, entry, tvar) {
if (eth_sec->sa_idx == sa_idx) {
rte_tel_data_add_dict_int(d, "inb_sa", 1);
if (roc_model_is_cn10k())
@@ -353,7 +353,7 @@ ethdev_sec_tel_handle_info(const char *cmd __rte_unused, const char *params,
if (dev->tx_offloads & RTE_ETH_TX_OFFLOAD_SECURITY) {
tvar = NULL;
- RTE_TAILQ_FOREACH_SAFE(eth_sec, &dev->outb.list, entry, tvar) {
+ TAILQ_FOREACH_SAFE(eth_sec, &dev->outb.list, entry, tvar) {
if (eth_sec->sa_idx < min_outb_sa)
min_outb_sa = eth_sec->sa_idx;
if (eth_sec->sa_idx > max_outb_sa)
@@ -370,7 +370,7 @@ ethdev_sec_tel_handle_info(const char *cmd __rte_unused, const char *params,
if (dev->rx_offloads & RTE_ETH_RX_OFFLOAD_SECURITY) {
tvar = NULL;
- RTE_TAILQ_FOREACH_SAFE(eth_sec, &dev->inb.list, entry, tvar) {
+ TAILQ_FOREACH_SAFE(eth_sec, &dev->inb.list, entry, tvar) {
if (eth_sec->sa_idx < min_inb_sa)
min_inb_sa = eth_sec->sa_idx;
if (eth_sec->sa_idx > max_inb_sa)
diff --git a/drivers/net/cxgbe/base/t4_hw.c b/drivers/net/cxgbe/base/t4_hw.c
index d02da39b84..f48887f190 100644
--- a/drivers/net/cxgbe/base/t4_hw.c
+++ b/drivers/net/cxgbe/base/t4_hw.c
@@ -11,7 +11,6 @@
#include <rte_pci.h>
#include <rte_branch_prediction.h>
#include <rte_memory.h>
-#include <rte_tailq.h>
#include <rte_eal.h>
#include <rte_alarm.h>
#include <rte_ether.h>
diff --git a/drivers/net/cxgbe/cxgbe_ethdev.c b/drivers/net/cxgbe/cxgbe_ethdev.c
index 57d3beac39..53ce361ccb 100644
--- a/drivers/net/cxgbe/cxgbe_ethdev.c
+++ b/drivers/net/cxgbe/cxgbe_ethdev.c
@@ -23,7 +23,6 @@
#include <bus_pci_driver.h>
#include <rte_branch_prediction.h>
#include <rte_memory.h>
-#include <rte_tailq.h>
#include <rte_eal.h>
#include <rte_alarm.h>
#include <rte_ether.h>
diff --git a/drivers/net/cxgbe/cxgbe_main.c b/drivers/net/cxgbe/cxgbe_main.c
index 33ac2ef5c2..112b6b2781 100644
--- a/drivers/net/cxgbe/cxgbe_main.c
+++ b/drivers/net/cxgbe/cxgbe_main.c
@@ -24,7 +24,6 @@
#include <rte_pci.h>
#include <rte_branch_prediction.h>
#include <rte_memory.h>
-#include <rte_tailq.h>
#include <rte_eal.h>
#include <rte_alarm.h>
#include <rte_ether.h>
diff --git a/drivers/net/cxgbe/sge.c b/drivers/net/cxgbe/sge.c
index 5444076dec..91874a0b82 100644
--- a/drivers/net/cxgbe/sge.c
+++ b/drivers/net/cxgbe/sge.c
@@ -23,7 +23,6 @@
#include <rte_branch_prediction.h>
#include <rte_memory.h>
#include <rte_memzone.h>
-#include <rte_tailq.h>
#include <rte_eal.h>
#include <rte_alarm.h>
#include <rte_ether.h>
diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c
index fe49c7b961..d2fe5c9f6a 100644
--- a/drivers/net/dpaa/dpaa_ethdev.c
+++ b/drivers/net/dpaa/dpaa_ethdev.c
@@ -27,7 +27,6 @@
#include <rte_atomic.h>
#include <rte_branch_prediction.h>
#include <rte_memory.h>
-#include <rte_tailq.h>
#include <rte_eal.h>
#include <rte_alarm.h>
#include <rte_ether.h>
diff --git a/drivers/net/dpaa/dpaa_rxtx.c b/drivers/net/dpaa/dpaa_rxtx.c
index 272960b6e3..c024604b0f 100644
--- a/drivers/net/dpaa/dpaa_rxtx.c
+++ b/drivers/net/dpaa/dpaa_rxtx.c
@@ -22,7 +22,6 @@
#include <rte_atomic.h>
#include <rte_branch_prediction.h>
#include <rte_memory.h>
-#include <rte_tailq.h>
#include <rte_eal.h>
#include <rte_alarm.h>
#include <rte_ether.h>
diff --git a/drivers/net/dpaa2/dpaa2_flow.c b/drivers/net/dpaa2/dpaa2_flow.c
index d2c81e8dc0..e3f9b766a9 100644
--- a/drivers/net/dpaa2/dpaa2_flow.c
+++ b/drivers/net/dpaa2/dpaa2_flow.c
@@ -15,7 +15,6 @@
#include <rte_log.h>
#include <rte_malloc.h>
#include <rte_flow_driver.h>
-#include <rte_tailq.h>
#include <fsl_dpni.h>
#include <fsl_dpkg.h>
diff --git a/drivers/net/dpaa2/dpaa2_mux.c b/drivers/net/dpaa2/dpaa2_mux.c
index dd05253d33..f2ecb14ff8 100644
--- a/drivers/net/dpaa2/dpaa2_mux.c
+++ b/drivers/net/dpaa2/dpaa2_mux.c
@@ -15,7 +15,6 @@
#include <rte_log.h>
#include <rte_malloc.h>
#include <rte_flow_driver.h>
-#include <rte_tailq.h>
#include <bus_fslmc_driver.h>
#include <fsl_dpdmux.h>
diff --git a/drivers/net/failsafe/failsafe_flow.c b/drivers/net/failsafe/failsafe_flow.c
index 5baa11460f..a6f1c40935 100644
--- a/drivers/net/failsafe/failsafe_flow.c
+++ b/drivers/net/failsafe/failsafe_flow.c
@@ -9,7 +9,6 @@
#include <rte_errno.h>
#include <rte_malloc.h>
-#include <rte_tailq.h>
#include <rte_flow.h>
#include <rte_flow_driver.h>
@@ -186,7 +185,7 @@ fs_flow_flush(struct rte_eth_dev *dev,
return ret;
}
}
- RTE_TAILQ_FOREACH_SAFE(flow, &PRIV(dev)->flow_list, next, tmp) {
+ TAILQ_FOREACH_SAFE(flow, &PRIV(dev)->flow_list, next, tmp) {
TAILQ_REMOVE(&PRIV(dev)->flow_list, flow, next);
fs_flow_release(&flow);
}
diff --git a/drivers/net/hns3/hns3_tm.h b/drivers/net/hns3/hns3_tm.h
index 0cac1a5bb2..f6d7f0e00e 100644
--- a/drivers/net/hns3/hns3_tm.h
+++ b/drivers/net/hns3/hns3_tm.h
@@ -6,7 +6,7 @@
#define HNS3_TM_H
#include <stdint.h>
-#include <rte_tailq.h>
+#include <rte_queue.h>
#include <rte_tm_driver.h>
struct hns3_port_limit_rate_cmd {
diff --git a/drivers/net/intel/common/flow_engine.h b/drivers/net/intel/common/flow_engine.h
index 406d0eeb97..19465fd959 100644
--- a/drivers/net/intel/common/flow_engine.h
+++ b/drivers/net/intel/common/flow_engine.h
@@ -17,7 +17,6 @@
#include <ethdev_driver.h>
#include <rte_flow.h>
#include <flow_graph.h>
-#include <rte_tailq.h>
#include <rte_rwlock.h>
#include <rte_hexdump.h>
@@ -741,7 +740,7 @@ ci_flow_engine_conf_clear(struct ci_flow_engine_conf *engine_conf)
{
struct ci_flow *flow, *tmp;
- RTE_TAILQ_FOREACH_SAFE(flow, &engine_conf->flows, node, tmp) {
+ TAILQ_FOREACH_SAFE(flow, &engine_conf->flows, node, tmp) {
struct ci_flow_engine_ref engine_ref;
struct rte_flow_error error = {0};
int unregister_ret;
@@ -1254,7 +1253,7 @@ ci_flow_flush(struct ci_flow_engine_conf *engine_conf,
rte_rwlock_write_lock(&engine_conf->config_lock);
- RTE_TAILQ_FOREACH_SAFE(flow, &engine_conf->flows, node, tmp) {
+ TAILQ_FOREACH_SAFE(flow, &engine_conf->flows, node, tmp) {
struct ci_flow_engine_ref engine_ref;
struct rte_flow_error flow_error = {0};
int uninstall_ret;
diff --git a/drivers/net/intel/cpfl/cpfl_flow.c b/drivers/net/intel/cpfl/cpfl_flow.c
index 3ba6c0f0e7..4a4e121720 100644
--- a/drivers/net/intel/cpfl/cpfl_flow.c
+++ b/drivers/net/intel/cpfl/cpfl_flow.c
@@ -2,7 +2,7 @@
* Copyright(c) 2023 Intel Corporation
*/
#include <rte_flow_driver.h>
-#include <rte_tailq.h>
+#include <rte_queue.h>
#include "cpfl_flow.h"
#include "cpfl_flow_parser.h"
@@ -27,7 +27,7 @@ cpfl_flow_engine_match(struct rte_eth_dev *dev,
struct cpfl_flow_engine *engine = NULL;
void *temp;
- RTE_TAILQ_FOREACH_SAFE(engine, &engine_list, node, temp) {
+ TAILQ_FOREACH_SAFE(engine, &engine_list, node, temp) {
if (!engine->parse_pattern_action)
continue;
@@ -46,7 +46,7 @@ cpfl_flow_engine_init(struct cpfl_adapter_ext *adapter)
void *temp;
int ret;
- RTE_TAILQ_FOREACH_SAFE(engine, &engine_list, node, temp) {
+ TAILQ_FOREACH_SAFE(engine, &engine_list, node, temp) {
if (!engine->init) {
PMD_INIT_LOG(ERR, "Invalid engine type (%d)",
engine->type);
@@ -70,7 +70,7 @@ cpfl_flow_engine_uninit(struct cpfl_adapter_ext *adapter)
struct cpfl_flow_engine *engine = NULL;
void *temp;
- RTE_TAILQ_FOREACH_SAFE(engine, &engine_list, node, temp) {
+ TAILQ_FOREACH_SAFE(engine, &engine_list, node, temp) {
if (engine->uninit)
engine->uninit(adapter);
}
@@ -244,7 +244,7 @@ cpfl_flow_flush(struct rte_eth_dev *dev,
void *temp;
int ret = 0;
- RTE_TAILQ_FOREACH_SAFE(p_flow, &itf->flow_list, next, temp) {
+ TAILQ_FOREACH_SAFE(p_flow, &itf->flow_list, next, temp) {
ret = cpfl_flow_destroy(dev, p_flow, error);
if (ret) {
PMD_DRV_LOG(ERR, "Failed to flush flows");
diff --git a/drivers/net/intel/cpfl/cpfl_flow_engine_fxp.c b/drivers/net/intel/cpfl/cpfl_flow_engine_fxp.c
index fbcb9d4d60..2df3614eca 100644
--- a/drivers/net/intel/cpfl/cpfl_flow_engine_fxp.c
+++ b/drivers/net/intel/cpfl/cpfl_flow_engine_fxp.c
@@ -17,7 +17,6 @@
#include <rte_log.h>
#include <rte_malloc.h>
#include <rte_eth_ctrl.h>
-#include <rte_tailq.h>
#include <rte_flow_driver.h>
#include <rte_flow.h>
#include <rte_bitmap.h>
diff --git a/drivers/net/intel/i40e/i40e_ethdev.c b/drivers/net/intel/i40e/i40e_ethdev.c
index 498c5c7ec4..47ed348d1a 100644
--- a/drivers/net/intel/i40e/i40e_ethdev.c
+++ b/drivers/net/intel/i40e/i40e_ethdev.c
@@ -25,7 +25,7 @@
#include <rte_malloc.h>
#include <rte_alarm.h>
#include <dev_driver.h>
-#include <rte_tailq.h>
+#include <rte_queue.h>
#include <rte_hash_crc.h>
#include <rte_bitmap.h>
#include <rte_os_shim.h>
@@ -3940,7 +3940,7 @@ i40e_vlan_offload_set(struct rte_eth_dev *dev, int mask)
* recommended to be used in firmware v8.6.
*/
/* Remove all existing mac */
- RTE_TAILQ_FOREACH_SAFE(f, &vsi->mac_list, next, temp) {
+ TAILQ_FOREACH_SAFE(f, &vsi->mac_list, next, temp) {
mac_filter[i] = f->mac_info;
ret = i40e_vsi_delete_mac(vsi, &f->mac_info.mac_addr);
if (ret)
@@ -5320,7 +5320,7 @@ i40e_vsi_release(struct i40e_vsi *vsi)
/* VSI has child to attach, release child first */
if (vsi->veb) {
- RTE_TAILQ_FOREACH_SAFE(vsi_list, &vsi->veb->head, list, temp) {
+ TAILQ_FOREACH_SAFE(vsi_list, &vsi->veb->head, list, temp) {
if (i40e_vsi_release(vsi_list->vsi) != I40E_SUCCESS)
return -1;
}
@@ -5328,7 +5328,7 @@ i40e_vsi_release(struct i40e_vsi *vsi)
}
if (vsi->floating_veb) {
- RTE_TAILQ_FOREACH_SAFE(vsi_list, &vsi->floating_veb->head,
+ TAILQ_FOREACH_SAFE(vsi_list, &vsi->floating_veb->head,
list, temp) {
if (i40e_vsi_release(vsi_list->vsi) != I40E_SUCCESS)
return -1;
@@ -5338,7 +5338,7 @@ i40e_vsi_release(struct i40e_vsi *vsi)
/* Remove all macvlan filters of the VSI */
i40e_vsi_remove_all_macvlan_filter(vsi);
- RTE_TAILQ_FOREACH_SAFE(f, &vsi->mac_list, next, temp)
+ TAILQ_FOREACH_SAFE(f, &vsi->mac_list, next, temp)
rte_free(f);
if (vsi->type != I40E_VSI_MAIN &&
@@ -5981,7 +5981,7 @@ i40e_vsi_config_vlan_filter(struct i40e_vsi *vsi, bool on)
i = 0;
/* Remove all existing mac */
- RTE_TAILQ_FOREACH_SAFE(f, &vsi->mac_list, next, temp) {
+ TAILQ_FOREACH_SAFE(f, &vsi->mac_list, next, temp) {
mac_filter[i] = f->mac_info;
ret = i40e_vsi_delete_mac(vsi, &f->mac_info.mac_addr);
if (ret) {
diff --git a/drivers/net/intel/i40e/i40e_fdir.c b/drivers/net/intel/i40e/i40e_fdir.c
index 662b16d88c..72db8215ad 100644
--- a/drivers/net/intel/i40e/i40e_fdir.c
+++ b/drivers/net/intel/i40e/i40e_fdir.c
@@ -1118,7 +1118,7 @@ i40e_fdir_tmpl_store_free(struct i40e_fdir_info *fdir_info)
uint32_t i;
/* rules in this list point into filter array so no free() needed */
- RTE_TAILQ_FOREACH_SAFE(tmpl, &tmpls->list, rules, tmp)
+ TAILQ_FOREACH_SAFE(tmpl, &tmpls->list, rules, tmp)
TAILQ_REMOVE(&tmpls->list, tmpl, rules);
if (tmpls->filter_array != NULL) {
diff --git a/drivers/net/intel/i40e/i40e_flow.c b/drivers/net/intel/i40e/i40e_flow.c
index 6b063b4193..7af42a6f90 100644
--- a/drivers/net/intel/i40e/i40e_flow.c
+++ b/drivers/net/intel/i40e/i40e_flow.c
@@ -2,7 +2,6 @@
* Copyright(c) 2016-2017 Intel Corporation
*/
-#include <rte_queue.h>
#include <stdio.h>
#include <errno.h>
#include <stdint.h>
@@ -11,12 +10,12 @@
#include <stdarg.h>
#include <stdlib.h>
+#include <rte_queue.h>
#include <rte_debug.h>
#include <rte_ether.h>
#include <ethdev_driver.h>
#include <rte_log.h>
#include <rte_malloc.h>
-#include <rte_tailq.h>
#include <rte_hexdump.h>
#include <rte_flow_driver.h>
#include <rte_bitmap.h>
diff --git a/drivers/net/intel/i40e/rte_pmd_i40e.c b/drivers/net/intel/i40e/rte_pmd_i40e.c
index 646044c4c5..5a2be42ac9 100644
--- a/drivers/net/intel/i40e/rte_pmd_i40e.c
+++ b/drivers/net/intel/i40e/rte_pmd_i40e.c
@@ -6,7 +6,7 @@
#include <eal_export.h>
#include <rte_string_fns.h>
#include <rte_malloc.h>
-#include <rte_tailq.h>
+#include <rte_queue.h>
#include "base/i40e_prototype.h"
#include "base/i40e_dcb.h"
@@ -221,7 +221,7 @@ i40e_vsi_rm_mac_filter(struct i40e_vsi *vsi)
void *temp;
/* remove all the MACs */
- RTE_TAILQ_FOREACH_SAFE(f, &vsi->mac_list, next, temp) {
+ TAILQ_FOREACH_SAFE(f, &vsi->mac_list, next, temp) {
vlan_num = vsi->vlan_num;
filter_type = f->mac_info.filter_type;
if (filter_type == I40E_MACVLAN_PERFECT_MATCH ||
@@ -279,7 +279,7 @@ i40e_vsi_restore_mac_filter(struct i40e_vsi *vsi)
void *temp;
/* restore all the MACs */
- RTE_TAILQ_FOREACH_SAFE(f, &vsi->mac_list, next, temp) {
+ TAILQ_FOREACH_SAFE(f, &vsi->mac_list, next, temp) {
if (f->mac_info.filter_type == I40E_MACVLAN_PERFECT_MATCH ||
f->mac_info.filter_type == I40E_MACVLAN_HASH_MATCH) {
/**
@@ -572,7 +572,7 @@ rte_pmd_i40e_set_vf_mac_addr(uint16_t port, uint16_t vf_id,
rte_ether_addr_copy(mac_addr, &vf->mac_addr);
/* Remove all existing mac */
- RTE_TAILQ_FOREACH_SAFE(f, &vsi->mac_list, next, temp)
+ TAILQ_FOREACH_SAFE(f, &vsi->mac_list, next, temp)
if (i40e_vsi_delete_mac(vsi, &f->mac_info.mac_addr)
!= I40E_SUCCESS)
PMD_DRV_LOG(WARNING, "Delete MAC failed");
diff --git a/drivers/net/intel/iavf/iavf_fdir.c b/drivers/net/intel/iavf/iavf_fdir.c
index c18185adf3..e7990b73a1 100644
--- a/drivers/net/intel/iavf/iavf_fdir.c
+++ b/drivers/net/intel/iavf/iavf_fdir.c
@@ -13,7 +13,6 @@
#include <rte_ether.h>
#include <ethdev_driver.h>
#include <rte_malloc.h>
-#include <rte_tailq.h>
#include "iavf.h"
#include "iavf_generic_flow.h"
diff --git a/drivers/net/intel/iavf/iavf_fsub.c b/drivers/net/intel/iavf/iavf_fsub.c
index a26ac0bdb6..e714f1c30e 100644
--- a/drivers/net/intel/iavf/iavf_fsub.c
+++ b/drivers/net/intel/iavf/iavf_fsub.c
@@ -15,7 +15,6 @@
#include <rte_log.h>
#include <rte_malloc.h>
#include <rte_eth_ctrl.h>
-#include <rte_tailq.h>
#include <rte_flow_driver.h>
#include <rte_flow.h>
#include <iavf.h>
diff --git a/drivers/net/intel/iavf/iavf_generic_flow.c b/drivers/net/intel/iavf/iavf_generic_flow.c
index 8829a224b8..5b89c0ee38 100644
--- a/drivers/net/intel/iavf/iavf_generic_flow.c
+++ b/drivers/net/intel/iavf/iavf_generic_flow.c
@@ -2,7 +2,6 @@
* Copyright(c) 2019 Intel Corporation
*/
-#include <rte_queue.h>
#include <stdio.h>
#include <errno.h>
#include <stdint.h>
@@ -10,10 +9,10 @@
#include <unistd.h>
#include <stdarg.h>
+#include <rte_queue.h>
#include <rte_ether.h>
#include <ethdev_driver.h>
#include <rte_malloc.h>
-#include <rte_tailq.h>
#include <rte_hexdump.h>
#include "iavf.h"
@@ -1824,7 +1823,7 @@ iavf_flow_init(struct iavf_adapter *ad)
TAILQ_INIT(&vf->ipsec_crypto_parser_list);
rte_spinlock_init(&vf->flow_ops_lock);
- RTE_TAILQ_FOREACH_SAFE(engine, &engine_list, node, temp) {
+ TAILQ_FOREACH_SAFE(engine, &engine_list, node, temp) {
if (engine->init == NULL) {
PMD_INIT_LOG(ERR, "Invalid engine type (%d)",
engine->type);
@@ -1855,7 +1854,7 @@ iavf_flow_uninit(struct iavf_adapter *ad)
struct iavf_flow_parser_node *p_parser;
void *temp;
- RTE_TAILQ_FOREACH_SAFE(engine, &engine_list, node, temp) {
+ TAILQ_FOREACH_SAFE(engine, &engine_list, node, temp) {
if (engine->uninit)
engine->uninit(ad);
}
@@ -1905,7 +1904,7 @@ iavf_register_parser(struct iavf_flow_parser *parser,
TAILQ_INSERT_TAIL(list, parser_node, node);
} else if (parser->engine->type == IAVF_FLOW_ENGINE_FDIR) {
list = &vf->dist_parser_list;
- RTE_TAILQ_FOREACH_SAFE(existing_node, list, node, temp) {
+ TAILQ_FOREACH_SAFE(existing_node, list, node, temp) {
if (existing_node->parser->engine->type ==
IAVF_FLOW_ENGINE_FSUB) {
TAILQ_INSERT_AFTER(list, existing_node,
@@ -1951,7 +1950,7 @@ iavf_unregister_parser(struct iavf_flow_parser *parser,
if (list == NULL)
return;
- RTE_TAILQ_FOREACH_SAFE(p_parser, list, node, temp) {
+ TAILQ_FOREACH_SAFE(p_parser, list, node, temp) {
if (p_parser->parser->engine->type == parser->engine->type) {
TAILQ_REMOVE(list, p_parser, node);
rte_free(p_parser);
@@ -2098,7 +2097,7 @@ iavf_parse_engine_create(struct iavf_adapter *ad,
void *temp;
void *meta = NULL;
- RTE_TAILQ_FOREACH_SAFE(parser_node, parser_list, node, temp) {
+ TAILQ_FOREACH_SAFE(parser_node, parser_list, node, temp) {
meta = NULL;
if (parser_node->parser->parse_pattern_action(ad,
parser_node->parser->array,
@@ -2139,7 +2138,7 @@ iavf_parse_engine_validate(struct iavf_adapter *ad,
void *meta = NULL;
int ret = 0;
- RTE_TAILQ_FOREACH_SAFE(parser_node, parser_list, node, temp) {
+ TAILQ_FOREACH_SAFE(parser_node, parser_list, node, temp) {
meta = NULL;
if (parser_node->parser->parse_pattern_action(ad,
parser_node->parser->array,
@@ -2270,7 +2269,7 @@ iavf_flow_is_valid(struct rte_flow *flow)
void *temp;
if (flow != NULL && flow->engine != NULL) {
- RTE_TAILQ_FOREACH_SAFE(engine, &engine_list, node, temp) {
+ TAILQ_FOREACH_SAFE(engine, &engine_list, node, temp) {
if (engine == flow->engine)
return true;
}
@@ -2322,7 +2321,7 @@ iavf_flow_flush(struct rte_eth_dev *dev,
void *temp;
int ret = 0;
- RTE_TAILQ_FOREACH_SAFE(p_flow, &vf->flow_list, node, temp) {
+ TAILQ_FOREACH_SAFE(p_flow, &vf->flow_list, node, temp) {
ret = iavf_flow_destroy(dev, p_flow, error);
if (ret) {
PMD_DRV_LOG(ERR, "Failed to flush flows");
diff --git a/drivers/net/intel/iavf/iavf_hash.c b/drivers/net/intel/iavf/iavf_hash.c
index 2f553f2286..5b571731ef 100644
--- a/drivers/net/intel/iavf/iavf_hash.c
+++ b/drivers/net/intel/iavf/iavf_hash.c
@@ -16,7 +16,6 @@
#include <rte_log.h>
#include <rte_malloc.h>
#include <rte_eth_ctrl.h>
-#include <rte_tailq.h>
#include <rte_flow_driver.h>
#include "iavf_log.h"
diff --git a/drivers/net/intel/ice/ice_acl_filter.c b/drivers/net/intel/ice/ice_acl_filter.c
index bc786c27ee..a167d55136 100644
--- a/drivers/net/intel/ice/ice_acl_filter.c
+++ b/drivers/net/intel/ice/ice_acl_filter.c
@@ -16,7 +16,6 @@
#include <rte_log.h>
#include <rte_malloc.h>
#include <rte_eth_ctrl.h>
-#include <rte_tailq.h>
#include <rte_flow_driver.h>
#include <rte_flow.h>
#include <rte_bitmap.h>
diff --git a/drivers/net/intel/ice/ice_diagnose.c b/drivers/net/intel/ice/ice_diagnose.c
index ecfcdf5559..ad9bed6769 100644
--- a/drivers/net/intel/ice/ice_diagnose.c
+++ b/drivers/net/intel/ice/ice_diagnose.c
@@ -2,6 +2,7 @@
* Copyright(c) 2022 Intel Corporation
*/
+#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
@@ -9,7 +10,6 @@
#include <eal_export.h>
#include <rte_string_fns.h>
#include <rte_malloc.h>
-#include <rte_tailq.h>
#include "ice_ethdev.h"
#include "ice_rxtx.h"
diff --git a/drivers/net/intel/ice/ice_ethdev.c b/drivers/net/intel/ice/ice_ethdev.c
index 3de9840e7c..6d5da7bc71 100644
--- a/drivers/net/intel/ice/ice_ethdev.c
+++ b/drivers/net/intel/ice/ice_ethdev.c
@@ -14,7 +14,7 @@
#include <unistd.h>
#include <math.h>
-#include <rte_tailq.h>
+#include <rte_queue.h>
#include <rte_os_shim.h>
#include "eal_firmware.h"
@@ -1401,7 +1401,7 @@ ice_remove_all_mac_vlan_filters(struct ice_vsi *vsi)
if (!vsi || !vsi->mac_num)
return -EINVAL;
- RTE_TAILQ_FOREACH_SAFE(m_f, &vsi->mac_list, next, temp) {
+ TAILQ_FOREACH_SAFE(m_f, &vsi->mac_list, next, temp) {
ret = ice_remove_mac_filter(vsi, &m_f->mac_info.mac_addr);
if (ret != ICE_SUCCESS) {
ret = -EINVAL;
@@ -1412,7 +1412,7 @@ ice_remove_all_mac_vlan_filters(struct ice_vsi *vsi)
if (vsi->vlan_num == 0)
return 0;
- RTE_TAILQ_FOREACH_SAFE(v_f, &vsi->vlan_list, next, temp) {
+ TAILQ_FOREACH_SAFE(v_f, &vsi->vlan_list, next, temp) {
ret = ice_remove_vlan_filter(vsi, &v_f->vlan_info.vlan);
if (ret != ICE_SUCCESS) {
ret = -EINVAL;
@@ -2944,9 +2944,9 @@ ice_release_vsi(struct ice_vsi *vsi)
ice_remove_all_mac_vlan_filters(vsi);
/* filters whose HW removal failed or was skipped are still listed */
- RTE_TAILQ_FOREACH_SAFE(m_f, &vsi->mac_list, next, temp)
+ TAILQ_FOREACH_SAFE(m_f, &vsi->mac_list, next, temp)
rte_free(m_f);
- RTE_TAILQ_FOREACH_SAFE(v_f, &vsi->vlan_list, next, temp)
+ TAILQ_FOREACH_SAFE(v_f, &vsi->vlan_list, next, temp)
rte_free(v_f);
memset(&vsi_ctx, 0, sizeof(vsi_ctx));
diff --git a/drivers/net/intel/ice/ice_generic_flow.c b/drivers/net/intel/ice/ice_generic_flow.c
index 8630ac24ae..fd49e3ca5e 100644
--- a/drivers/net/intel/ice/ice_generic_flow.c
+++ b/drivers/net/intel/ice/ice_generic_flow.c
@@ -15,7 +15,6 @@
#include <ethdev_driver.h>
#include <rte_hexdump.h>
#include <rte_malloc.h>
-#include <rte_tailq.h>
#include "../common/flow_check.h"
#include "ice_ethdev.h"
@@ -1998,7 +1997,7 @@ ice_flow_init(struct ice_adapter *ad)
ice_parser_dvm_set(ad->psr, false);
}
- RTE_TAILQ_FOREACH_SAFE(engine, &engine_list, node, temp) {
+ TAILQ_FOREACH_SAFE(engine, &engine_list, node, temp) {
if (engine->init == NULL) {
PMD_INIT_LOG(ERR, "Invalid engine type (%d)",
engine->type);
@@ -2044,7 +2043,7 @@ ice_flow_uninit(struct ice_adapter *ad)
struct rte_flow *p_flow;
void *temp;
- RTE_TAILQ_FOREACH_SAFE(engine, &engine_list, node, temp) {
+ TAILQ_FOREACH_SAFE(engine, &engine_list, node, temp) {
if (ICE_FLOW_ENGINE_DISABLED(ad->disabled_engine_mask, engine->type)) {
PMD_DRV_LOG(DEBUG, "Engine %d disabled skip it", engine->type);
continue;
@@ -2493,7 +2492,7 @@ ice_flow_flush(struct rte_eth_dev *dev,
void *temp;
int ret = 0;
- RTE_TAILQ_FOREACH_SAFE(p_flow, &pf->flow_list, node, temp) {
+ TAILQ_FOREACH_SAFE(p_flow, &pf->flow_list, node, temp) {
ret = ice_flow_destroy(dev, p_flow, error);
if (ret) {
PMD_DRV_LOG(ERR, "Failed to flush flows");
@@ -2634,7 +2633,7 @@ ice_flow_redirect(struct ice_adapter *ad,
rte_spinlock_lock(&pf->flow_ops_lock);
- RTE_TAILQ_FOREACH_SAFE(p_flow, &pf->flow_list, node, temp) {
+ TAILQ_FOREACH_SAFE(p_flow, &pf->flow_list, node, temp) {
if (!p_flow->engine->redirect)
continue;
ret = p_flow->engine->redirect(ad, p_flow, rd);
diff --git a/drivers/net/intel/ice/ice_hash.c b/drivers/net/intel/ice/ice_hash.c
index 63ad2fb936..1b1bd62a5d 100644
--- a/drivers/net/intel/ice/ice_hash.c
+++ b/drivers/net/intel/ice/ice_hash.c
@@ -17,7 +17,6 @@
#include <rte_log.h>
#include <rte_malloc.h>
#include <rte_eth_ctrl.h>
-#include <rte_tailq.h>
#include <rte_flow_driver.h>
#include "ice_logs.h"
diff --git a/drivers/net/intel/ice/ice_switch_filter.c b/drivers/net/intel/ice/ice_switch_filter.c
index ed22cc8165..1a5738f101 100644
--- a/drivers/net/intel/ice/ice_switch_filter.c
+++ b/drivers/net/intel/ice/ice_switch_filter.c
@@ -16,7 +16,6 @@
#include <rte_log.h>
#include <rte_malloc.h>
#include <rte_eth_ctrl.h>
-#include <rte_tailq.h>
#include <rte_flow_driver.h>
#include <rte_flow.h>
#include "base/ice_type.h"
diff --git a/drivers/net/intel/ipn3ke/ipn3ke_flow.c b/drivers/net/intel/ipn3ke/ipn3ke_flow.c
index 3ee089a416..07fe8a2092 100644
--- a/drivers/net/intel/ipn3ke/ipn3ke_flow.c
+++ b/drivers/net/intel/ipn3ke/ipn3ke_flow.c
@@ -17,7 +17,6 @@
#include <rte_log.h>
#include <rte_malloc.h>
#include <rte_eth_ctrl.h>
-#include <rte_tailq.h>
#include <rte_rawdev.h>
#include <rte_rawdev_pmd.h>
#include <bus_ifpga_driver.h>
@@ -1230,7 +1229,7 @@ ipn3ke_flow_flush(struct rte_eth_dev *dev,
struct ipn3ke_hw *hw = IPN3KE_DEV_PRIVATE_TO_HW(dev);
struct rte_flow *flow, *temp;
- RTE_TAILQ_FOREACH_SAFE(flow, &hw->flow_list, next, temp) {
+ TAILQ_FOREACH_SAFE(flow, &hw->flow_list, next, temp) {
TAILQ_REMOVE(&hw->flow_list, flow, next);
rte_free(flow);
}
diff --git a/drivers/net/intel/ixgbe/ixgbe_flow.c b/drivers/net/intel/ixgbe/ixgbe_flow.c
index 3b5e2bb156..33e7c6876d 100644
--- a/drivers/net/intel/ixgbe/ixgbe_flow.c
+++ b/drivers/net/intel/ixgbe/ixgbe_flow.c
@@ -2,7 +2,6 @@
* Copyright(c) 2010-2016 Intel Corporation
*/
-#include <rte_queue.h>
#include <stdio.h>
#include <errno.h>
#include <stdint.h>
@@ -11,10 +10,11 @@
#include <unistd.h>
#include <stdarg.h>
#include <inttypes.h>
+
#include <rte_byteorder.h>
#include <rte_common.h>
#include <rte_cycles.h>
-
+#include <rte_queue.h>
#include <rte_interrupts.h>
#include <rte_log.h>
#include <rte_debug.h>
@@ -24,7 +24,6 @@
#include <rte_eal.h>
#include <rte_alarm.h>
#include <rte_ether.h>
-#include <rte_tailq.h>
#include <ethdev_driver.h>
#include <rte_malloc.h>
#include <rte_random.h>
diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c
index 1b715129e4..decb388183 100644
--- a/drivers/net/mlx5/mlx5_flow_dv.c
+++ b/drivers/net/mlx5/mlx5_flow_dv.c
@@ -25,7 +25,6 @@
#include <rte_mpls.h>
#include <rte_mtr.h>
#include <rte_mtr_driver.h>
-#include <rte_tailq.h>
#include <mlx5_glue.h>
#include <mlx5_devx_cmds.h>
@@ -17516,7 +17515,7 @@ __flow_dv_destroy_sub_policy_rules(struct rte_eth_dev *dev,
policy->act_cnt[i].fate_action == MLX5_FLOW_FATE_MTR)
next_fm = mlx5_flow_meter_find(priv,
policy->act_cnt[i].next_mtr_id, NULL);
- RTE_TAILQ_FOREACH_SAFE(color_rule, &sub_policy->color_rules[i],
+ TAILQ_FOREACH_SAFE(color_rule, &sub_policy->color_rules[i],
next_port, tmp) {
claim_zero(mlx5_flow_os_destroy_flow(color_rule->rule));
tbl = container_of(color_rule->matcher->tbl,
diff --git a/drivers/net/mlx5/mlx5_flow_meter.c b/drivers/net/mlx5/mlx5_flow_meter.c
index 6d30f31852..bfd32a1eeb 100644
--- a/drivers/net/mlx5/mlx5_flow_meter.c
+++ b/drivers/net/mlx5/mlx5_flow_meter.c
@@ -3,7 +3,7 @@
*/
#include <math.h>
-#include <rte_tailq.h>
+#include <rte_queue.h>
#include <rte_malloc.h>
#include <rte_mtr.h>
#include <rte_mtr_driver.h>
@@ -2751,7 +2751,7 @@ mlx5_flow_meter_flush(struct rte_eth_dev *dev, struct rte_mtr_error *error)
priv->mtr_idx_tbl = NULL;
}
} else {
- RTE_TAILQ_FOREACH_SAFE(legacy_fm, fms, next, tmp) {
+ TAILQ_FOREACH_SAFE(legacy_fm, fms, next, tmp) {
fm = &legacy_fm->fm;
if (mlx5_flow_meter_params_flush(dev, fm, 0))
return -rte_mtr_error_set(error, EINVAL,
diff --git a/drivers/net/nbl/nbl_common/nbl_userdev.c b/drivers/net/nbl/nbl_common/nbl_userdev.c
index 295c617d9d..5c3092d3f0 100644
--- a/drivers/net/nbl/nbl_common/nbl_userdev.c
+++ b/drivers/net/nbl/nbl_common/nbl_userdev.c
@@ -282,7 +282,7 @@ static int nbl_userdev_free_record(u64 vaddr, u64 iova __rte_unused, u64 len __r
{
struct nbl_userdev_map_record *record, *tmp_record;
- RTE_TAILQ_FOREACH_SAFE(record, &nbl_map_list, next, tmp_record) {
+ TAILQ_FOREACH_SAFE(record, &nbl_map_list, next, tmp_record) {
if (record->vaddr != vaddr)
continue;
nbl_vfio_dma_mem_map(nbl_default_container, vaddr, record->len, 0);
@@ -297,7 +297,7 @@ static void nbl_userdev_dma_free(void)
{
struct nbl_userdev_map_record *record, *tmp_record;
- RTE_TAILQ_FOREACH_SAFE(record, &nbl_map_list, next, tmp_record) {
+ TAILQ_FOREACH_SAFE(record, &nbl_map_list, next, tmp_record) {
TAILQ_REMOVE(&nbl_map_list, record, next);
free(record);
}
diff --git a/drivers/net/nbl/nbl_include/nbl_include.h b/drivers/net/nbl/nbl_include/nbl_include.h
index ba99b9f8e7..7c3c12ec6b 100644
--- a/drivers/net/nbl/nbl_include/nbl_include.h
+++ b/drivers/net/nbl/nbl_include/nbl_include.h
@@ -31,7 +31,6 @@
#include <ethdev_pci.h>
#include <bus_pci_driver.h>
#include <rte_io.h>
-#include <rte_tailq.h>
#include <rte_lcore.h>
#include <rte_common.h>
#include <rte_thread.h>
diff --git a/drivers/net/nfb/nfb_ethdev.c b/drivers/net/nfb/nfb_ethdev.c
index 9ad93c6766..b2cca189f4 100644
--- a/drivers/net/nfb/nfb_ethdev.c
+++ b/drivers/net/nfb/nfb_ethdev.c
@@ -7,7 +7,6 @@
#include <ctype.h>
#include <rte_queue.h>
#include <eal_export.h>
-#include <rte_tailq.h>
#include <nfb/nfb.h>
#include <nfb/ndp.h>
@@ -1127,7 +1126,7 @@ nfb_eth_common_remove(struct rte_device *dev)
{
struct pmd_internals *entry, *temp;
- RTE_TAILQ_FOREACH_SAFE(entry, &nfb_eth_dev_list, eth_dev_list, temp) {
+ TAILQ_FOREACH_SAFE(entry, &nfb_eth_dev_list, eth_dev_list, temp) {
if (dev == entry->eth_dev->device)
rte_eth_dev_destroy(entry->eth_dev, nfb_eth_dev_uninit);
}
diff --git a/drivers/net/sfc/sfc_flow.c b/drivers/net/sfc/sfc_flow.c
index 1006243539..d28b079faa 100644
--- a/drivers/net/sfc/sfc_flow.c
+++ b/drivers/net/sfc/sfc_flow.c
@@ -10,7 +10,7 @@
#include <stdbool.h>
#include <rte_byteorder.h>
-#include <rte_tailq.h>
+#include <rte_queue.h>
#include <rte_common.h>
#include <ethdev_driver.h>
#include <rte_ether.h>
@@ -2666,7 +2666,7 @@ sfc_flow_flush(struct rte_eth_dev *dev,
sfc_adapter_lock(sa);
- RTE_TAILQ_FOREACH_SAFE(flow, &sa->flow_list, entries, tmp) {
+ TAILQ_FOREACH_SAFE(flow, &sa->flow_list, entries, tmp) {
if (flow->internal)
continue;
@@ -2962,7 +2962,7 @@ sfc_flow_fini(struct sfc_adapter *sa)
SFC_ASSERT(sfc_adapter_is_locked(sa));
- RTE_TAILQ_FOREACH_SAFE(flow, &sa->flow_list, entries, tmp) {
+ TAILQ_FOREACH_SAFE(flow, &sa->flow_list, entries, tmp) {
if (flow->internal)
continue;
diff --git a/drivers/net/sfc/sfc_flow.h b/drivers/net/sfc/sfc_flow.h
index 7434554640..d4942b4347 100644
--- a/drivers/net/sfc/sfc_flow.h
+++ b/drivers/net/sfc/sfc_flow.h
@@ -12,7 +12,7 @@
#include <stdbool.h>
-#include <rte_tailq.h>
+#include <rte_queue.h>
#include <rte_flow_driver.h>
#include "efx.h"
--git a/drivers/net/sfc/sfc_flow_rss.c b/drivers/net/sfc/sfc_flow_rss.c
index f19d6f00c5..da69c94b40 100644
--- a/drivers/net/sfc/sfc_flow_rss.c
+++ b/drivers/net/sfc/sfc_flow_rss.c
@@ -8,7 +8,7 @@
#include <rte_common.h>
#include <rte_flow.h>
-#include <rte_tailq.h>
+#include <rte_queue.h>
#include "efx.h"
--git a/drivers/net/sfc/sfc_flow_rss.h b/drivers/net/sfc/sfc_flow_rss.h
index 2ed81dc190..0e7b6cb97d 100644
--- a/drivers/net/sfc/sfc_flow_rss.h
+++ b/drivers/net/sfc/sfc_flow_rss.h
@@ -10,7 +10,7 @@
#include <stdint.h>
#include <rte_flow.h>
-#include <rte_tailq.h>
+#include <rte_queue.h>
#include "efx.h"
diff --git a/drivers/net/softnic/rte_eth_softnic_swq.c b/drivers/net/softnic/rte_eth_softnic_swq.c
index afe6f05e29..0923f98491 100644
--- a/drivers/net/softnic/rte_eth_softnic_swq.c
+++ b/drivers/net/softnic/rte_eth_softnic_swq.c
@@ -6,7 +6,7 @@
#include <string.h>
#include <rte_string_fns.h>
-#include <rte_tailq.h>
+#include <rte_queue.h>
#include "rte_eth_softnic_internals.h"
@@ -39,7 +39,7 @@ softnic_softnic_swq_free_keep_rxq_txq(struct pmd_internals *p)
{
struct softnic_swq *swq, *tswq;
- RTE_TAILQ_FOREACH_SAFE(swq, &p->swq_list, node, tswq) {
+ TAILQ_FOREACH_SAFE(swq, &p->swq_list, node, tswq) {
if ((strncmp(swq->name, "RXQ", strlen("RXQ")) == 0) ||
(strncmp(swq->name, "TXQ", strlen("TXQ")) == 0))
continue;
diff --git a/drivers/net/sxe2/sxe2_dump.c b/drivers/net/sxe2/sxe2_dump.c
index 31f7d6ba61..697be366f8 100644
--- a/drivers/net/sxe2/sxe2_dump.c
+++ b/drivers/net/sxe2/sxe2_dump.c
@@ -134,7 +134,7 @@ static void sxe2_dump_filter_info(FILE *file, struct rte_eth_dev *dev)
if (adapter->filter_ctxt.uc_num > 0) {
fprintf(file,
"\t -- Unicast entry:\n");
- RTE_TAILQ_FOREACH_SAFE(mac_entry, &adapter->filter_ctxt.uc_list, next,
+ TAILQ_FOREACH_SAFE(mac_entry, &adapter->filter_ctxt.uc_list, next,
next_mac_entry) {
fprintf(file,
"\t -- addr: %02x:%02x:%02x:%02x:%02x:%02x hw status:%u "
@@ -153,7 +153,7 @@ static void sxe2_dump_filter_info(FILE *file, struct rte_eth_dev *dev)
if (adapter->filter_ctxt.mc_num > 0) {
fprintf(file,
"\t -- Multicast entry:\n");
- RTE_TAILQ_FOREACH_SAFE(mac_entry, &adapter->filter_ctxt.mc_list,
+ TAILQ_FOREACH_SAFE(mac_entry, &adapter->filter_ctxt.mc_list,
next, next_mac_entry) {
fprintf(file,
"\t -- addr: %02x:%02x:%02x:%02x:%02x:%02x "
@@ -172,7 +172,7 @@ static void sxe2_dump_filter_info(FILE *file, struct rte_eth_dev *dev)
if (adapter->filter_ctxt.vlan_num > 0) {
fprintf(file,
"\t -- Vlan entry:\n");
- RTE_TAILQ_FOREACH_SAFE(vlan_entry, &adapter->filter_ctxt.vlan_list,
+ TAILQ_FOREACH_SAFE(vlan_entry, &adapter->filter_ctxt.vlan_list,
next, next_vlan_entry) {
fprintf(file,
"\t -- vlan tpid:0x%04x vid:0x%04x prio:%d "
diff --git a/drivers/net/sxe2/sxe2_ethdev.c b/drivers/net/sxe2/sxe2_ethdev.c
index b4e6df74c0..9d6991cb67 100644
--- a/drivers/net/sxe2/sxe2_ethdev.c
+++ b/drivers/net/sxe2/sxe2_ethdev.c
@@ -2,13 +2,13 @@
* Copyright (C), 2025, Wuxi Stars Micro System Technologies Co., Ltd.
*/
+#include <stdio.h>
#include <rte_string_fns.h>
#include <ethdev_pci.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
-#include <rte_tailq.h>
#include <rte_version.h>
#include <bus_pci_driver.h>
#include <dev_driver.h>
diff --git a/drivers/net/sxe2/sxe2_filter.c b/drivers/net/sxe2/sxe2_filter.c
index 175b886aa3..8a42094143 100644
--- a/drivers/net/sxe2/sxe2_filter.c
+++ b/drivers/net/sxe2/sxe2_filter.c
@@ -3,7 +3,7 @@
*/
#include <rte_os.h>
-#include <rte_tailq.h>
+#include <rte_queue.h>
#include "sxe2_osal.h"
#include "sxe2_mac.h"
#include "sxe2_common_log.h"
@@ -19,7 +19,7 @@ static struct sxe2_mac_filter *sxe2_uc_filter_find(struct sxe2_adapter *adapter,
struct sxe2_mac_filter *next_entry = NULL;
rte_spinlock_lock(&adapter->filter_ctxt.filter_lock);
- RTE_TAILQ_FOREACH_SAFE(entry, &adapter->filter_ctxt.uc_list, next, next_entry) {
+ TAILQ_FOREACH_SAFE(entry, &adapter->filter_ctxt.uc_list, next, next_entry) {
if (rte_is_same_ether_addr(macaddr, &entry->mac_addr)) {
filter = entry;
break;
@@ -125,7 +125,7 @@ void sxe2_uc_filter_clear(struct sxe2_adapter *adapter, bool default_config)
struct sxe2_mac_filter *entry;
struct sxe2_mac_filter *next_entry;
- RTE_TAILQ_FOREACH_SAFE(entry, &adapter->filter_ctxt.uc_list, next, next_entry) {
+ TAILQ_FOREACH_SAFE(entry, &adapter->filter_ctxt.uc_list, next, next_entry) {
if (entry->default_config && !default_config)
continue;
@@ -142,7 +142,7 @@ static struct sxe2_mac_filter *sxe2_mc_filter_find(struct sxe2_adapter *adapter,
struct sxe2_mac_filter *next_entry = NULL;
rte_spinlock_lock(&adapter->filter_ctxt.filter_lock);
- RTE_TAILQ_FOREACH_SAFE(entry, &adapter->filter_ctxt.mc_list, next, next_entry) {
+ TAILQ_FOREACH_SAFE(entry, &adapter->filter_ctxt.mc_list, next, next_entry) {
if (rte_is_same_ether_addr(macaddr, &entry->mac_addr)) {
filter = entry;
break;
@@ -249,7 +249,7 @@ void sxe2_mc_filter_clear(struct sxe2_adapter *adapter, bool default_config)
struct sxe2_mac_filter *entry;
struct sxe2_mac_filter *next_entry;
- RTE_TAILQ_FOREACH_SAFE(entry, &adapter->filter_ctxt.mc_list, next, next_entry) {
+ TAILQ_FOREACH_SAFE(entry, &adapter->filter_ctxt.mc_list, next, next_entry) {
if (entry->default_config && !default_config)
continue;
if (sxe2_mc_filter_del(adapter, &entry->mac_addr))
@@ -388,7 +388,7 @@ void sxe2_vlan_filters_clear(struct sxe2_adapter *adapter, bool default_config)
if (adapter->filter_ctxt.vlan_num == 0)
return;
- RTE_TAILQ_FOREACH_SAFE(v_f, &adapter->filter_ctxt.vlan_list, next, temp)
+ TAILQ_FOREACH_SAFE(v_f, &adapter->filter_ctxt.vlan_list, next, temp)
{
if (v_f->default_config && !default_config)
continue;
@@ -521,7 +521,7 @@ static int32_t sxe2_all_filter_hw_clear(struct sxe2_adapter *adapter)
struct sxe2_vlan_filter *next_vlan_entry;
if (adapter->filter_ctxt.uc_num > 0) {
- RTE_TAILQ_FOREACH_SAFE(mac_entry, &adapter->filter_ctxt.uc_list, next,
+ TAILQ_FOREACH_SAFE(mac_entry, &adapter->filter_ctxt.uc_list, next,
next_mac_entry) {
if (mac_entry->hw_config) {
ret = sxe2_drv_uc_config(adapter, &mac_entry->mac_addr, false);
@@ -536,7 +536,7 @@ static int32_t sxe2_all_filter_hw_clear(struct sxe2_adapter *adapter)
}
if (adapter->filter_ctxt.mc_num > 0) {
- RTE_TAILQ_FOREACH_SAFE(mac_entry, &adapter->filter_ctxt.mc_list, next,
+ TAILQ_FOREACH_SAFE(mac_entry, &adapter->filter_ctxt.mc_list, next,
next_mac_entry) {
if (mac_entry->hw_config) {
ret = sxe2_drv_mc_config(adapter, &mac_entry->mac_addr, false);
@@ -551,7 +551,7 @@ static int32_t sxe2_all_filter_hw_clear(struct sxe2_adapter *adapter)
}
if (adapter->filter_ctxt.vlan_num > 0) {
- RTE_TAILQ_FOREACH_SAFE(vlan_entry, &adapter->filter_ctxt.vlan_list, next,
+ TAILQ_FOREACH_SAFE(vlan_entry, &adapter->filter_ctxt.vlan_list, next,
next_vlan_entry) {
if (vlan_entry->hw_config) {
ret = sxe2_drv_vlan_filter_id_config(adapter,
@@ -606,7 +606,7 @@ static int32_t sxe2_all_filter_hw_set(struct sxe2_adapter *adapter)
struct sxe2_vlan_filter *next_vlan_entry;
if (adapter->filter_ctxt.uc_num > 0) {
- RTE_TAILQ_FOREACH_SAFE(mac_entry, &adapter->filter_ctxt.uc_list, next,
+ TAILQ_FOREACH_SAFE(mac_entry, &adapter->filter_ctxt.uc_list, next,
next_mac_entry) {
if (!mac_entry->hw_config) {
ret = sxe2_drv_uc_config(adapter, &mac_entry->mac_addr,
@@ -624,7 +624,7 @@ static int32_t sxe2_all_filter_hw_set(struct sxe2_adapter *adapter)
}
if (adapter->filter_ctxt.mc_num > 0) {
- RTE_TAILQ_FOREACH_SAFE(mac_entry, &adapter->filter_ctxt.mc_list, next,
+ TAILQ_FOREACH_SAFE(mac_entry, &adapter->filter_ctxt.mc_list, next,
next_mac_entry) {
if (!mac_entry->hw_config) {
ret = sxe2_drv_mc_config(adapter, &mac_entry->mac_addr, true);
@@ -641,7 +641,7 @@ static int32_t sxe2_all_filter_hw_set(struct sxe2_adapter *adapter)
}
if (adapter->filter_ctxt.vlan_num > 0) {
- RTE_TAILQ_FOREACH_SAFE(vlan_entry, &adapter->filter_ctxt.vlan_list, next,
+ TAILQ_FOREACH_SAFE(vlan_entry, &adapter->filter_ctxt.vlan_list, next,
next_vlan_entry) {
if (!vlan_entry->hw_config) {
ret = sxe2_drv_vlan_filter_id_config(adapter,
diff --git a/drivers/net/sxe2/sxe2_flow_define.h b/drivers/net/sxe2/sxe2_flow_define.h
index d04499f5cb..6d38999800 100644
--- a/drivers/net/sxe2/sxe2_flow_define.h
+++ b/drivers/net/sxe2/sxe2_flow_define.h
@@ -4,7 +4,7 @@
#ifndef __SXE2_FLOW_DEFINE_H__
#define __SXE2_FLOW_DEFINE_H__
-#include <rte_tailq.h>
+#include <rte_queue.h>
#include <rte_eal.h>
#include <rte_flow_driver.h>
diff --git a/drivers/net/sxe2/sxe2_switchdev.c b/drivers/net/sxe2/sxe2_switchdev.c
index 466182c55c..93a82ca376 100644
--- a/drivers/net/sxe2/sxe2_switchdev.c
+++ b/drivers/net/sxe2/sxe2_switchdev.c
@@ -3,7 +3,7 @@
*/
#include <rte_os.h>
-#include <rte_tailq.h>
+#include <rte_queue.h>
#include "sxe2_osal.h"
#include "sxe2_mac.h"
#include "sxe2_common_log.h"
diff --git a/drivers/net/sxe2/sxe2_vsi.c b/drivers/net/sxe2/sxe2_vsi.c
index e1a26fda6a..932309b3d6 100644
--- a/drivers/net/sxe2/sxe2_vsi.c
+++ b/drivers/net/sxe2/sxe2_vsi.c
@@ -3,7 +3,7 @@
*/
#include <rte_os.h>
-#include <rte_tailq.h>
+#include <rte_queue.h>
#include <rte_malloc.h>
#include "sxe2_ethdev.h"
#include "sxe2_vsi.h"
@@ -275,7 +275,7 @@ void sxe2_vsi_uninit(struct rte_eth_dev *dev)
goto l_end;
}
adapter->vsi_ctxt.main_vsi = NULL;
- RTE_TAILQ_FOREACH_SAFE(var, &adapter->vsi_ctxt.other_vsi_list, next, tvar) {
+ TAILQ_FOREACH_SAFE(var, &adapter->vsi_ctxt.other_vsi_list, next, tvar) {
ret = sxe2_vsi_destroy(adapter, var);
if (ret && ret != -EPERM) {
PMD_LOG_ERR(DRV, "Failed to del vsi from fw, ret=%d", ret);
diff --git a/drivers/net/thunderx/nicvf_ethdev.c b/drivers/net/thunderx/nicvf_ethdev.c
index 76963a8467..529f792cbc 100644
--- a/drivers/net/thunderx/nicvf_ethdev.c
+++ b/drivers/net/thunderx/nicvf_ethdev.c
@@ -33,7 +33,6 @@
#include <rte_random.h>
#include <rte_pci.h>
#include <bus_pci_driver.h>
-#include <rte_tailq.h>
#include <rte_devargs.h>
#include <rte_kvargs.h>
diff --git a/drivers/net/zxdh/zxdh_flow.c b/drivers/net/zxdh/zxdh_flow.c
index c138712635..cafab40813 100644
--- a/drivers/net/zxdh/zxdh_flow.c
+++ b/drivers/net/zxdh/zxdh_flow.c
@@ -16,7 +16,6 @@
#include <ethdev_driver.h>
#include <rte_log.h>
#include <rte_malloc.h>
-#include <rte_tailq.h>
#include <rte_flow.h>
#include <rte_bitmap.h>
@@ -288,7 +287,7 @@ static struct dh_flow_engine *zxdh_get_flow_engine(struct rte_eth_dev *dev __rte
struct dh_flow_engine *engine = NULL;
void *temp;
- RTE_TAILQ_FOREACH_SAFE(engine, &flow_engine_list, node, temp) {
+ TAILQ_FOREACH_SAFE(engine, &flow_engine_list, node, temp) {
if (engine->type == FLOW_TYPE_FD_TCAM)
break;
}
diff --git a/drivers/net/zxdh/zxdh_mtr.c b/drivers/net/zxdh/zxdh_mtr.c
index b23f6535a8..e49e88b64b 100644
--- a/drivers/net/zxdh/zxdh_mtr.c
+++ b/drivers/net/zxdh/zxdh_mtr.c
@@ -1209,13 +1209,13 @@ zxdh_mtr_release(struct rte_eth_dev *dev)
struct rte_mtr_error error = {0};
struct zxdh_mtr_object *mtr_obj;
- RTE_TAILQ_FOREACH(mtr_obj, &zxdh_shared_data->mtr_list, next) {
+ TAILQ_FOREACH(mtr_obj, &zxdh_shared_data->mtr_list, next) {
if (mtr_obj->port_id == priv->port_id)
zxdh_mtr_obj_free(dev, mtr_obj);
}
- RTE_TAILQ_FOREACH(profile, &zxdh_shared_data->meter_profile_list, next) {
+ TAILQ_FOREACH(profile, &zxdh_shared_data->meter_profile_list, next) {
if (profile->dpdk_port_id == priv->port_id)
zxdh_mtr_profile_res_free(dev,
zxdh_shared_data->mtr_profile_mp,
@@ -1226,7 +1226,7 @@ zxdh_mtr_release(struct rte_eth_dev *dev)
struct zxdh_meter_policy *policy;
- RTE_TAILQ_FOREACH(policy, &zxdh_shared_data->mtr_policy_list, next) {
+ TAILQ_FOREACH(policy, &zxdh_shared_data->mtr_policy_list, next) {
if (policy->dpdk_port_id == priv->port_id)
zxdh_mtr_policy_res_free(zxdh_shared_data->mtr_policy_mp, policy);
}
diff --git a/drivers/vdpa/mlx5/mlx5_vdpa_cthread.c b/drivers/vdpa/mlx5/mlx5_vdpa_cthread.c
index 84f611c1ab..6c831b65da 100644
--- a/drivers/vdpa/mlx5/mlx5_vdpa_cthread.c
+++ b/drivers/vdpa/mlx5/mlx5_vdpa_cthread.c
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright (c) 2022 NVIDIA Corporation & Affiliates
*/
+#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/eventfd.h>
@@ -9,7 +10,6 @@
#include <rte_errno.h>
#include <rte_io.h>
#include <rte_alarm.h>
-#include <rte_tailq.h>
#include <rte_ring_elem.h>
#include <rte_ring_peek.h>
diff --git a/examples/vm_power_manager/channel_manager.c b/examples/vm_power_manager/channel_manager.c
index e162fe5da6..c904b2889b 100644
--- a/examples/vm_power_manager/channel_manager.c
+++ b/examples/vm_power_manager/channel_manager.c
@@ -22,7 +22,6 @@
#include <rte_mempool.h>
#include <rte_log.h>
#include <rte_spinlock.h>
-#include <rte_tailq.h>
#include <libvirt/libvirt.h>
@@ -59,16 +58,16 @@ struct virtual_machine_info {
virDomainInfo info;
rte_spinlock_t config_spinlock;
int allow_query;
- RTE_TAILQ_ENTRY(virtual_machine_info) vms_info;
+ TAILQ_ENTRY(virtual_machine_info) vms_info;
};
-RTE_TAILQ_HEAD(, virtual_machine_info) vm_list_head;
+TAILQ_HEAD(, virtual_machine_info) vm_list_head;
static struct virtual_machine_info *
find_domain_by_name(const char *name)
{
struct virtual_machine_info *info;
- RTE_TAILQ_FOREACH(info, &vm_list_head, vms_info) {
+ TAILQ_FOREACH(info, &vm_list_head, vms_info) {
if (!strncmp(info->name, name, CHANNEL_MGR_MAX_NAME_LEN-1))
return info;
}
@@ -1015,7 +1014,7 @@ channel_manager_exit(void)
char mask[RTE_MAX_LCORE];
struct virtual_machine_info *vm_info, *tmp;
- RTE_TAILQ_FOREACH_SAFE(vm_info, &vm_list_head, vms_info, tmp) {
+ TAILQ_FOREACH_SAFE(vm_info, &vm_list_head, vms_info, tmp) {
rte_spinlock_lock(&(vm_info->config_spinlock));
diff --git a/lib/bbdev/rte_bbdev.h b/lib/bbdev/rte_bbdev.h
index 9fcfbf4c69..95d12836df 100644
--- a/lib/bbdev/rte_bbdev.h
+++ b/lib/bbdev/rte_bbdev.h
@@ -521,7 +521,7 @@ struct rte_bbdev_callback;
struct rte_intr_handle;
/** Structure to keep track of registered callbacks */
-RTE_TAILQ_HEAD(rte_bbdev_cb_list, rte_bbdev_callback);
+TAILQ_HEAD(rte_bbdev_cb_list, rte_bbdev_callback);
/**
* @internal The data structure associated with a device. Drivers can access
diff --git a/lib/cryptodev/cryptodev_pmd.h b/lib/cryptodev/cryptodev_pmd.h
index 929c6defe9..c60b60c767 100644
--- a/lib/cryptodev/cryptodev_pmd.h
+++ b/lib/cryptodev/cryptodev_pmd.h
@@ -131,7 +131,7 @@ struct rte_cryptodev_global {
/* Cryptodev driver, containing the driver ID */
struct cryptodev_driver {
- RTE_TAILQ_ENTRY(cryptodev_driver) next; /**< Next in list. */
+ TAILQ_ENTRY(cryptodev_driver) next; /**< Next in list. */
const struct rte_driver *driver;
uint8_t id;
};
diff --git a/lib/cryptodev/rte_cryptodev.h b/lib/cryptodev/rte_cryptodev.h
index bdbd11ace5..1ab3471197 100644
--- a/lib/cryptodev/rte_cryptodev.h
+++ b/lib/cryptodev/rte_cryptodev.h
@@ -1095,7 +1095,7 @@ rte_cryptodev_queue_pair_event_error_query(uint8_t dev_id, uint16_t qp_id);
struct rte_cryptodev_callback;
/** Structure to keep track of registered callbacks */
-RTE_TAILQ_HEAD(rte_cryptodev_cb_list, rte_cryptodev_callback);
+TAILQ_HEAD(rte_cryptodev_cb_list, rte_cryptodev_callback);
/**
* Structure used to hold information about the callbacks to be called for a
diff --git a/lib/eal/common/eal_common_devargs.c b/lib/eal/common/eal_common_devargs.c
index c523429d67..1dd53c116b 100644
--- a/lib/eal/common/eal_common_devargs.c
+++ b/lib/eal/common/eal_common_devargs.c
@@ -18,7 +18,7 @@
#include <rte_errno.h>
#include <rte_kvargs.h>
#include <rte_log.h>
-#include <rte_tailq.h>
+#include <rte_queue.h>
#include <rte_string_fns.h>
#include <eal_export.h>
#include "eal_private.h"
@@ -303,7 +303,7 @@ rte_devargs_insert(struct rte_devargs **da)
if (*da == NULL || (*da)->bus == NULL)
return -1;
- RTE_TAILQ_FOREACH_SAFE(listed_da, &devargs_list, next, tmp) {
+ TAILQ_FOREACH_SAFE(listed_da, &devargs_list, next, tmp) {
if (listed_da == *da)
/* devargs already in the list */
return 0;
@@ -372,7 +372,7 @@ rte_devargs_remove(struct rte_devargs *devargs)
if (devargs == NULL || devargs->bus == NULL)
return -1;
- RTE_TAILQ_FOREACH_SAFE(d, &devargs_list, next, tmp) {
+ TAILQ_FOREACH_SAFE(d, &devargs_list, next, tmp) {
if (strcmp(d->bus->name, devargs->bus->name) == 0 &&
strcmp(d->name, devargs->name) == 0) {
TAILQ_REMOVE(&devargs_list, d, next);
diff --git a/lib/eal/common/eal_common_options.c b/lib/eal/common/eal_common_options.c
index f19b036a53..cb3606fde5 100644
--- a/lib/eal/common/eal_common_options.c
+++ b/lib/eal/common/eal_common_options.c
@@ -26,7 +26,6 @@
#include <rte_log.h>
#include <rte_lcore.h>
#include <rte_memory.h>
-#include <rte_tailq.h>
#include <rte_version.h>
#include <rte_devargs.h>
#include <rte_memcpy.h>
@@ -482,7 +481,7 @@ eal_option_device_parse(void)
void *tmp;
int ret = 0;
- RTE_TAILQ_FOREACH_SAFE(devopt, &devopt_list, next, tmp) {
+ TAILQ_FOREACH_SAFE(devopt, &devopt_list, next, tmp) {
if (ret == 0) {
ret = rte_devargs_add(devopt->type, devopt->arg);
if (ret)
diff --git a/lib/eal/common/eal_common_proc.c b/lib/eal/common/eal_common_proc.c
index b70e9189a4..e3b9e47c06 100644
--- a/lib/eal/common/eal_common_proc.c
+++ b/lib/eal/common/eal_common_proc.c
@@ -1292,7 +1292,7 @@ rte_mp_request_async(struct rte_mp_msg *req, const struct timespec *ts,
if (ret != 0 && reply->nb_sent > 0) {
struct pending_request *r, *tmp;
- RTE_TAILQ_FOREACH_SAFE(r, &pending_requests.requests, next, tmp) {
+ TAILQ_FOREACH_SAFE(r, &pending_requests.requests, next, tmp) {
if (r->type == REQUEST_TYPE_ASYNC && r->async.param == param) {
TAILQ_REMOVE(&pending_requests.requests, r, next);
free(r->reply);
diff --git a/lib/eal/freebsd/include/rte_os.h b/lib/eal/freebsd/include/rte_os.h
index ddc3b4fd2e..ccca04cd88 100644
--- a/lib/eal/freebsd/include/rte_os.h
+++ b/lib/eal/freebsd/include/rte_os.h
@@ -12,9 +12,25 @@
#include <pthread_np.h>
#include <stdlib.h> /* Declares alloca() */
+/* Not used here, but included so that rte_queue.h wins the multiple
+ * inclusion guard race against a system <sys/queue.h>. See rte_queue.h.
+ */
#include <rte_queue.h>
-/* These macros are compatible with system's sys/queue.h. */
+/*
+ * Compatibility wrappers, deprecated.
+ *
+ * These existed only because Windows had no <sys/queue.h>. Use the plain
+ * macros from <rte_queue.h> instead; these are kept for out of tree code
+ * and will be removed in DPDK 27.11.
+ *
+ * They are defined in terms of the plain TAILQ_ and STAILQ_ macros only,
+ * never the extended ones, so that they keep working in a translation unit
+ * that included a system <sys/queue.h> before any DPDK header, in which
+ * case rte_queue.h is suppressed and only the subset the system provides
+ * is defined. For the same reason RTE_TAILQ_FOREACH_SAFE stays open coded
+ * in <rte_tailq.h>, where it has always been.
+ */
#define RTE_TAILQ_HEAD(name, type) TAILQ_HEAD(name, type)
#define RTE_TAILQ_ENTRY(type) TAILQ_ENTRY(type)
#define RTE_TAILQ_FOREACH(var, head, field) TAILQ_FOREACH(var, head, field)
diff --git a/lib/eal/include/bus_driver.h b/lib/eal/include/bus_driver.h
index fa4d711a90..ff7a20c2e0 100644
--- a/lib/eal/include/bus_driver.h
+++ b/lib/eal/include/bus_driver.h
@@ -8,7 +8,7 @@
#include <rte_bus.h>
#include <rte_compat.h>
#include <rte_eal.h>
-#include <rte_tailq.h>
+#include <rte_queue.h>
#ifdef __cplusplus
extern "C" {
@@ -20,7 +20,7 @@ struct rte_device;
struct rte_driver;
/** Double linked list of buses */
-RTE_TAILQ_HEAD(rte_bus_list, rte_bus);
+TAILQ_HEAD(rte_bus_list, rte_bus);
/**
* Bus specific scan for devices attached on the bus.
@@ -351,7 +351,7 @@ typedef void *(*rte_bus_dev_iterate_t)(const struct rte_bus *bus,
* A structure describing a generic bus.
*/
struct rte_bus {
- RTE_TAILQ_ENTRY(rte_bus) next; /**< Next bus object in linked list */
+ TAILQ_ENTRY(rte_bus) next; /**< Next bus object in linked list */
const char *name; /**< Name of the bus */
bool allow_multi_probe; /**< Allow probing devices multiple times */
rte_bus_scan_t scan; /**< Scan for devices attached to bus */
@@ -374,8 +374,8 @@ struct rte_bus {
/**< handle sigbus error on the bus */
rte_bus_free_device_t free_device; /**< Free bus-specific device */
rte_bus_cleanup_t cleanup; /**< Cleanup devices on bus */
- RTE_TAILQ_HEAD(, rte_device) device_list; /**< List of devices on the bus */
- RTE_TAILQ_HEAD(, rte_driver) driver_list; /**< List of drivers on the bus */
+ TAILQ_HEAD(, rte_device) device_list; /**< List of devices on the bus */
+ TAILQ_HEAD(, rte_driver) driver_list; /**< List of drivers on the bus */
};
/**
diff --git a/lib/eal/include/dev_driver.h b/lib/eal/include/dev_driver.h
index 2052e3ecb2..2732401dfd 100644
--- a/lib/eal/include/dev_driver.h
+++ b/lib/eal/include/dev_driver.h
@@ -12,7 +12,7 @@
* A structure describing a device driver.
*/
struct rte_driver {
- RTE_TAILQ_ENTRY(rte_driver) next; /**< Next in list. */
+ TAILQ_ENTRY(rte_driver) next; /**< Next in list. */
const char *name; /**< Driver name. */
const char *alias; /**< Driver alias. */
const struct rte_bus *bus; /**< Bus reference. */
@@ -22,7 +22,7 @@ struct rte_driver {
* A structure describing a generic device.
*/
struct rte_device {
- RTE_TAILQ_ENTRY(rte_device) next; /**< Next device */
+ TAILQ_ENTRY(rte_device) next; /**< Next device */
const char *name; /**< Device name */
const char *bus_info; /**< Device bus specific information */
const struct rte_driver *driver; /**< Driver assigned after probing */
diff --git a/lib/eal/include/rte_class.h b/lib/eal/include/rte_class.h
index 7631e36e82..216474ff43 100644
--- a/lib/eal/include/rte_class.h
+++ b/lib/eal/include/rte_class.h
@@ -25,13 +25,13 @@ extern "C" {
#endif
/** Double linked list of classes */
-RTE_TAILQ_HEAD(rte_class_list, rte_class);
+TAILQ_HEAD(rte_class_list, rte_class);
/**
* A structure describing a generic device class.
*/
struct rte_class {
- RTE_TAILQ_ENTRY(rte_class) next; /**< Next device class in linked list */
+ TAILQ_ENTRY(rte_class) next; /**< Next device class in linked list */
const char *name; /**< Name of the class */
rte_dev_iterate_t dev_iterate; /**< Device iterator. */
};
diff --git a/lib/eal/include/rte_devargs.h b/lib/eal/include/rte_devargs.h
index ed5a4675d9..0c64a98214 100644
--- a/lib/eal/include/rte_devargs.h
+++ b/lib/eal/include/rte_devargs.h
@@ -71,7 +71,7 @@ enum rte_devtype {
*/
struct rte_devargs {
/** Next in list. */
- RTE_TAILQ_ENTRY(rte_devargs) next;
+ TAILQ_ENTRY(rte_devargs) next;
/** Type of device. */
enum rte_devtype type;
/** Device policy. */
diff --git a/lib/eal/include/rte_queue.h b/lib/eal/include/rte_queue.h
index a847670470..635e7797cf 100644
--- a/lib/eal/include/rte_queue.h
+++ b/lib/eal/include/rte_queue.h
@@ -26,6 +26,11 @@
* _FOREACH_SAFE, _FOREACH_FROM or _SWAP. Conversely, when this header wins,
* the glibc-only CIRCLEQ_ and SIMPLEQ_ families are not defined.
*
+ * Within DPDK this is not a problem: rte_os.h includes this header and is
+ * reached from rte_common.h, so any DPDK header included first wins the
+ * race. Note that the include in rte_os.h is load bearing for that reason,
+ * even though nothing in rte_os.h itself uses the list macros.
+ *
* The FreeBSD QUEUE_MACRO_DEBUG and INVARIANTS facilities are omitted: they
* are there to debug the macros themselves, which is not something DPDK does.
*/
diff --git a/lib/eal/include/rte_tailq.h b/lib/eal/include/rte_tailq.h
index e7caed6812..0e24012aa2 100644
--- a/lib/eal/include/rte_tailq.h
+++ b/lib/eal/include/rte_tailq.h
@@ -12,6 +12,7 @@
#include <stdio.h>
#include <rte_debug.h>
+#include <rte_queue.h>
#ifdef __cplusplus
extern "C" {
@@ -19,11 +20,11 @@ extern "C" {
/** dummy structure type used by the rte_tailq APIs */
struct rte_tailq_entry {
- RTE_TAILQ_ENTRY(rte_tailq_entry) next; /**< Pointer entries for a tailq list */
+ TAILQ_ENTRY(rte_tailq_entry) next; /**< Pointer entries for a tailq list */
void *data; /**< Pointer to the data referenced by this tailq entry */
};
/** dummy */
-RTE_TAILQ_HEAD(rte_tailq_entry_head, rte_tailq_entry);
+TAILQ_HEAD(rte_tailq_entry_head, rte_tailq_entry);
#define RTE_TAILQ_NAMESIZE 32
@@ -46,7 +47,7 @@ struct rte_tailq_elem {
* rte_eal_tailqs_init()
*/
struct rte_tailq_head *head;
- RTE_TAILQ_ENTRY(rte_tailq_elem) next;
+ TAILQ_ENTRY(rte_tailq_elem) next;
const char name[RTE_TAILQ_NAMESIZE];
};
@@ -124,10 +125,24 @@ RTE_INIT(tailqinitfn_ ##t) \
rte_panic("Cannot initialize tailq: %s\n", t.name); \
}
-/* This macro permits both remove and free var within the loop safely.*/
+/*
+ * Compatibility wrapper, deprecated, will be removed in DPDK 27.11.
+ *
+ * Use TAILQ_FOREACH_SAFE from <rte_queue.h> instead. The other
+ * RTE_TAILQ_/RTE_STAILQ_ wrappers are in <rte_os.h>, where they have
+ * always been.
+ *
+ * This one is open coded rather than mapped to TAILQ_FOREACH_SAFE so that
+ * it keeps working in a translation unit that included a system
+ * <sys/queue.h> before any DPDK header, in which case rte_queue.h is
+ * suppressed and only the subset the system provides is defined. glibc
+ * does not have TAILQ_FOREACH_SAFE.
+ *
+ * This macro permits both remove and free var within the loop safely.
+ */
#define RTE_TAILQ_FOREACH_SAFE(var, head, field, tvar) \
- for ((var) = RTE_TAILQ_FIRST((head)); \
- (var) && ((tvar) = RTE_TAILQ_NEXT((var), field), 1); \
+ for ((var) = TAILQ_FIRST((head)); \
+ (var) && ((tvar) = TAILQ_NEXT((var), field), 1); \
(var) = (tvar))
#ifdef __cplusplus
diff --git a/lib/eal/linux/include/rte_os.h b/lib/eal/linux/include/rte_os.h
index 3c87f52b33..b138c4d11d 100644
--- a/lib/eal/linux/include/rte_os.h
+++ b/lib/eal/linux/include/rte_os.h
@@ -12,9 +12,25 @@
#include <alloca.h>
#include <sched.h>
+/* Not used here, but included so that rte_queue.h wins the multiple
+ * inclusion guard race against a system <sys/queue.h>. See rte_queue.h.
+ */
#include <rte_queue.h>
-/* These macros are compatible with system's sys/queue.h. */
+/*
+ * Compatibility wrappers, deprecated.
+ *
+ * These existed only because Windows had no <sys/queue.h>. Use the plain
+ * macros from <rte_queue.h> instead; these are kept for out of tree code
+ * and will be removed in DPDK 27.11.
+ *
+ * They are defined in terms of the plain TAILQ_ and STAILQ_ macros only,
+ * never the extended ones, so that they keep working in a translation unit
+ * that included a system <sys/queue.h> before any DPDK header, in which
+ * case rte_queue.h is suppressed and only the subset the system provides
+ * is defined. For the same reason RTE_TAILQ_FOREACH_SAFE stays open coded
+ * in <rte_tailq.h>, where it has always been.
+ */
#define RTE_TAILQ_HEAD(name, type) TAILQ_HEAD(name, type)
#define RTE_TAILQ_ENTRY(type) TAILQ_ENTRY(type)
#define RTE_TAILQ_FOREACH(var, head, field) TAILQ_FOREACH(var, head, field)
diff --git a/lib/eal/windows/include/rte_os.h b/lib/eal/windows/include/rte_os.h
index 2a43cb1f9b..39320b779d 100644
--- a/lib/eal/windows/include/rte_os.h
+++ b/lib/eal/windows/include/rte_os.h
@@ -16,33 +16,32 @@
#include <malloc.h>
#include <sched.h>
-
-/* These macros are compatible with bundled sys/queue.h. */
-#define RTE_TAILQ_HEAD(name, type) \
-struct name { \
- struct type *tqh_first; \
- struct type **tqh_last; \
-}
-#define RTE_TAILQ_ENTRY(type) \
-struct { \
- struct type *tqe_next; \
- struct type **tqe_prev; \
-}
-#define RTE_TAILQ_FOREACH(var, head, field) \
- for ((var) = RTE_TAILQ_FIRST((head)); \
- (var); \
- (var) = RTE_TAILQ_NEXT((var), field))
-#define RTE_TAILQ_FIRST(head) ((head)->tqh_first)
-#define RTE_TAILQ_NEXT(elm, field) ((elm)->field.tqe_next)
-#define RTE_STAILQ_HEAD(name, type) \
-struct name { \
- struct type *stqh_first; \
- struct type **stqh_last; \
-}
-#define RTE_STAILQ_ENTRY(type) \
-struct { \
- struct type *stqe_next; \
-}
+/* Not used here, but included so that rte_queue.h wins the multiple
+ * inclusion guard race against a system <sys/queue.h>. See rte_queue.h.
+ */
+#include <rte_queue.h>
+
+/*
+ * Compatibility wrappers, deprecated.
+ *
+ * These existed only because Windows had no <sys/queue.h>. Use the plain
+ * macros from <rte_queue.h> instead; these are kept for out of tree code
+ * and will be removed in DPDK 27.11.
+ *
+ * They are defined in terms of the plain TAILQ_ and STAILQ_ macros only,
+ * never the extended ones, so that they keep working in a translation unit
+ * that included a system <sys/queue.h> before any DPDK header, in which
+ * case rte_queue.h is suppressed and only the subset the system provides
+ * is defined. For the same reason RTE_TAILQ_FOREACH_SAFE stays open coded
+ * in <rte_tailq.h>, where it has always been.
+ */
+#define RTE_TAILQ_HEAD(name, type) TAILQ_HEAD(name, type)
+#define RTE_TAILQ_ENTRY(type) TAILQ_ENTRY(type)
+#define RTE_TAILQ_FOREACH(var, head, field) TAILQ_FOREACH(var, head, field)
+#define RTE_TAILQ_FIRST(head) TAILQ_FIRST(head)
+#define RTE_TAILQ_NEXT(elem, field) TAILQ_NEXT(elem, field)
+#define RTE_STAILQ_HEAD(name, type) STAILQ_HEAD(name, type)
+#define RTE_STAILQ_ENTRY(type) STAILQ_ENTRY(type)
/* cpu_set macros implementation */
#define RTE_CPU_AND(dst, src1, src2) CPU_AND(dst, src1, src2)
diff --git a/lib/efd/rte_efd.c b/lib/efd/rte_efd.c
index 34b9585cb8..e184fc10f6 100644
--- a/lib/efd/rte_efd.c
+++ b/lib/efd/rte_efd.c
@@ -777,7 +777,7 @@ rte_efd_free(struct rte_efd_table *table)
efd_list = RTE_TAILQ_CAST(rte_efd_tailq.head, rte_efd_list);
rte_mcfg_tailq_write_lock();
- RTE_TAILQ_FOREACH_SAFE(te, efd_list, next, temp) {
+ TAILQ_FOREACH_SAFE(te, efd_list, next, temp) {
if (te->data == (void *) table) {
TAILQ_REMOVE(efd_list, te, next);
rte_free(te);
diff --git a/lib/ethdev/rte_ethdev_core.h b/lib/ethdev/rte_ethdev_core.h
index 4ffae4921a..e8497301f2 100644
--- a/lib/ethdev/rte_ethdev_core.h
+++ b/lib/ethdev/rte_ethdev_core.h
@@ -18,7 +18,7 @@
struct rte_eth_dev_callback;
/** @internal Structure to keep track of registered callbacks */
-RTE_TAILQ_HEAD(rte_eth_dev_cb_list, rte_eth_dev_callback);
+TAILQ_HEAD(rte_eth_dev_cb_list, rte_eth_dev_callback);
struct rte_eth_dev;
diff --git a/lib/eventdev/rte_event_vector_adapter.c b/lib/eventdev/rte_event_vector_adapter.c
index 9a839517c8..e6fbf34fcf 100644
--- a/lib/eventdev/rte_event_vector_adapter.c
+++ b/lib/eventdev/rte_event_vector_adapter.c
@@ -7,7 +7,7 @@
#include <rte_malloc.h>
#include <rte_mcslock.h>
#include <rte_service_component.h>
-#include <rte_tailq.h>
+#include <rte_queue.h>
#include <eal_export.h>
@@ -506,7 +506,7 @@ struct sw_vector_adapter_data {
struct rte_event_vector_adapter *adapter;
struct rte_event_vector_adapter_stats stats;
struct sw_vector_adapter_service_data *service_data;
- RTE_TAILQ_ENTRY(sw_vector_adapter_data) next;
+ TAILQ_ENTRY(sw_vector_adapter_data) next;
};
struct sw_vector_adapter_service_data {
diff --git a/lib/gpudev/gpudev.c b/lib/gpudev/gpudev.c
index bbf03f8bc4..7d752744a4 100644
--- a/lib/gpudev/gpudev.c
+++ b/lib/gpudev/gpudev.c
@@ -7,7 +7,6 @@
#include <eal_export.h>
#include <rte_eal.h>
-#include <rte_tailq.h>
#include <rte_string_fns.h>
#include <rte_memzone.h>
#include <rte_malloc.h>
@@ -476,7 +475,7 @@ rte_gpu_callback_unregister(int16_t dev_id, enum rte_gpu_event event,
rte_rwlock_write_lock(&gpu_callback_lock);
do {
callbacks = &gpus[next_dev].callbacks;
- RTE_TAILQ_FOREACH_SAFE(callback, callbacks, next, nextcb) {
+ TAILQ_FOREACH_SAFE(callback, callbacks, next, nextcb) {
if (callback->event != event ||
callback->function != function ||
(callback->user_data != user_data &&
@@ -499,7 +498,7 @@ gpu_free_callbacks(struct rte_gpu *dev)
callbacks = &dev->callbacks;
rte_rwlock_write_lock(&gpu_callback_lock);
- RTE_TAILQ_FOREACH_SAFE(callback, callbacks, next, nextcb) {
+ TAILQ_FOREACH_SAFE(callback, callbacks, next, nextcb) {
TAILQ_REMOVE(callbacks, callback, next);
free(callback);
}
diff --git a/lib/gpudev/gpudev_driver.h b/lib/gpudev/gpudev_driver.h
index b7621f6e5a..956deb8935 100644
--- a/lib/gpudev/gpudev_driver.h
+++ b/lib/gpudev/gpudev_driver.h
@@ -80,7 +80,7 @@ struct __rte_cache_aligned rte_gpu {
/* Driver functions. */
struct rte_gpu_ops ops;
/* Event callback list. */
- RTE_TAILQ_HEAD(rte_gpu_callback_list, rte_gpu_callback) callbacks;
+ TAILQ_HEAD(rte_gpu_callback_list, rte_gpu_callback) callbacks;
/* Current state (used or not) in the running process. */
enum rte_gpu_state process_state; /* Updated by this library. */
/* Driver-specific private data for the running process. */
diff --git a/lib/ip_frag/ip_frag_common.h b/lib/ip_frag/ip_frag_common.h
index fdc4ba043a..fea7e8493a 100644
--- a/lib/ip_frag/ip_frag_common.h
+++ b/lib/ip_frag/ip_frag_common.h
@@ -8,7 +8,6 @@
#include <rte_queue.h>
#include <rte_common.h>
-#include <rte_tailq.h>
#if defined(RTE_ARCH_ARM64)
#include <rte_cmp_arm64.h>
diff --git a/lib/ip_frag/ip_reassembly.h b/lib/ip_frag/ip_reassembly.h
index 9e1666ef67..001a0d6e5b 100644
--- a/lib/ip_frag/ip_reassembly.h
+++ b/lib/ip_frag/ip_reassembly.h
@@ -48,7 +48,7 @@ struct ip_frag_key {
* First two entries in the frags[] array are for the last and first fragments.
*/
struct __rte_cache_aligned ip_frag_pkt {
- RTE_TAILQ_ENTRY(ip_frag_pkt) lru; /* LRU list */
+ TAILQ_ENTRY(ip_frag_pkt) lru; /* LRU list */
struct ip_frag_key key; /* fragmentation key */
uint64_t start; /* creation timestamp */
uint32_t total_size; /* expected reassembled size */
@@ -58,7 +58,7 @@ struct __rte_cache_aligned ip_frag_pkt {
};
/* fragments tailq */
-RTE_TAILQ_HEAD(ip_pkt_list, ip_frag_pkt);
+TAILQ_HEAD(ip_pkt_list, ip_frag_pkt);
/* fragmentation table statistics */
struct __rte_cache_aligned ip_frag_tbl_stat {
diff --git a/lib/ip_frag/rte_ip_frag_common.c b/lib/ip_frag/rte_ip_frag_common.c
index 00bf9476de..31556f82e7 100644
--- a/lib/ip_frag/rte_ip_frag_common.c
+++ b/lib/ip_frag/rte_ip_frag_common.c
@@ -140,7 +140,7 @@ rte_ip_frag_table_del_expired_entries(struct rte_ip_frag_tbl *tbl,
max_cycles = tbl->max_cycles;
- RTE_TAILQ_FOREACH_SAFE(fp, &tbl->lru, lru, tmp) {
+ TAILQ_FOREACH_SAFE(fp, &tbl->lru, lru, tmp) {
if (max_cycles + fp->start >= tms)
return;
diff --git a/lib/mempool/rte_mempool.c b/lib/mempool/rte_mempool.c
index 29c7b2e62e..84391cfdb1 100644
--- a/lib/mempool/rte_mempool.c
+++ b/lib/mempool/rte_mempool.c
@@ -1451,7 +1451,7 @@ void rte_mempool_walk(void (*func)(struct rte_mempool *, void *),
rte_mcfg_mempool_read_lock();
- RTE_TAILQ_FOREACH_SAFE(te, mempool_list, next, tmp_te) {
+ TAILQ_FOREACH_SAFE(te, mempool_list, next, tmp_te) {
(*func)((struct rte_mempool *) te->data, arg);
}
@@ -1519,7 +1519,7 @@ mempool_event_callback_invoke(enum rte_mempool_event event,
void *tmp_te;
rte_mcfg_tailq_read_lock();
- RTE_TAILQ_FOREACH_SAFE(cb, &callback_tailq, callbacks, tmp_te) {
+ TAILQ_FOREACH_SAFE(cb, &callback_tailq, callbacks, tmp_te) {
rte_mcfg_tailq_read_unlock();
cb->func(event, mp, cb->user_data);
rte_mcfg_tailq_read_lock();
diff --git a/lib/mempool/rte_mempool.h b/lib/mempool/rte_mempool.h
index fa2b9f00d5..2fc6799d18 100644
--- a/lib/mempool/rte_mempool.h
+++ b/lib/mempool/rte_mempool.h
@@ -160,7 +160,7 @@ struct rte_mempool_objsz {
* double-frees.
*/
struct rte_mempool_objhdr {
- RTE_STAILQ_ENTRY(rte_mempool_objhdr) next; /**< Next in list. */
+ STAILQ_ENTRY(rte_mempool_objhdr) next; /**< Next in list. */
struct rte_mempool *mp; /**< The mempool owning the object. */
rte_iova_t iova; /**< IO address of the object. */
#ifdef RTE_LIBRTE_MEMPOOL_DEBUG
@@ -171,7 +171,7 @@ struct rte_mempool_objhdr {
/**
* A list of object headers type
*/
-RTE_STAILQ_HEAD(rte_mempool_objhdr_list, rte_mempool_objhdr);
+STAILQ_HEAD(rte_mempool_objhdr_list, rte_mempool_objhdr);
#ifdef RTE_LIBRTE_MEMPOOL_DEBUG
@@ -198,7 +198,7 @@ extern int rte_mempool_logtype;
/**
* A list of memory where objects are stored
*/
-RTE_STAILQ_HEAD(rte_mempool_memhdr_list, rte_mempool_memhdr);
+STAILQ_HEAD(rte_mempool_memhdr_list, rte_mempool_memhdr);
/**
* Callback used to free a memory chunk
@@ -213,7 +213,7 @@ typedef void (rte_mempool_memchunk_free_cb_t)(struct rte_mempool_memhdr *memhdr,
* and physically contiguous.
*/
struct rte_mempool_memhdr {
- RTE_STAILQ_ENTRY(rte_mempool_memhdr) next; /**< Next in list. */
+ STAILQ_ENTRY(rte_mempool_memhdr) next; /**< Next in list. */
struct rte_mempool *mp; /**< The mempool owning the chunk */
void *addr; /**< Virtual address of the chunk */
rte_iova_t iova; /**< IO address of the chunk */
diff --git a/lib/pmu/pmu.c b/lib/pmu/pmu.c
index d372ecf4f1..f8f26f9d84 100644
--- a/lib/pmu/pmu.c
+++ b/lib/pmu/pmu.c
@@ -14,7 +14,6 @@
#include <eal_export.h>
#include <rte_bitops.h>
-#include <rte_tailq.h>
#include <rte_log.h>
#include "rte_pmu.h"
@@ -460,7 +459,7 @@ rte_pmu_fini(void)
if (!rte_pmu.initialized)
return;
- RTE_TAILQ_FOREACH_SAFE(event, &rte_pmu.event_list, next, tmp_event) {
+ TAILQ_FOREACH_SAFE(event, &rte_pmu.event_list, next, tmp_event) {
TAILQ_REMOVE(&rte_pmu.event_list, event, next);
free_event(event);
}
diff --git a/lib/power/power_cpufreq.h b/lib/power/power_cpufreq.h
index 41bfaed7bb..9847cb52db 100644
--- a/lib/power/power_cpufreq.h
+++ b/lib/power/power_cpufreq.h
@@ -147,7 +147,7 @@ typedef int (*rte_power_get_capabilities_t)(unsigned int lcore_id,
/** Structure defining core power operations structure */
struct rte_power_cpufreq_ops {
- RTE_TAILQ_ENTRY(rte_power_cpufreq_ops) next; /**< Next in list. */
+ TAILQ_ENTRY(rte_power_cpufreq_ops) next; /**< Next in list. */
char name[RTE_POWER_DRIVER_NAMESZ]; /**< power mgmt driver. */
rte_power_cpufreq_init_t init; /**< Initialize power management. */
rte_power_cpufreq_exit_t exit; /**< Exit power management. */
diff --git a/lib/power/power_uncore_ops.h b/lib/power/power_uncore_ops.h
index 025a55cb97..62bc65dcc7 100644
--- a/lib/power/power_uncore_ops.h
+++ b/lib/power/power_uncore_ops.h
@@ -185,7 +185,7 @@ typedef void (*rte_power_uncore_driver_cb_t)(void);
/** Structure defining uncore power operations structure */
struct rte_power_uncore_ops {
- RTE_TAILQ_ENTRY(rte_power_uncore_ops) next; /**< Next in list. */
+ TAILQ_ENTRY(rte_power_uncore_ops) next; /**< Next in list. */
char name[RTE_POWER_UNCORE_DRIVER_NAMESZ]; /**< power mgmt driver. */
rte_power_uncore_driver_cb_t cb; /**< Driver specific callbacks. */
rte_power_uncore_init_t init; /**< Initialize power management. */
diff --git a/lib/power/rte_power_cpufreq.c b/lib/power/rte_power_cpufreq.c
index 8394cbc77f..dafacbae19 100644
--- a/lib/power/rte_power_cpufreq.c
+++ b/lib/power/rte_power_cpufreq.c
@@ -13,7 +13,7 @@ static enum power_management_env global_default_env = PM_ENV_NOT_SET;
static struct rte_power_cpufreq_ops *global_cpufreq_ops;
static rte_spinlock_t global_env_cfg_lock = RTE_SPINLOCK_INITIALIZER;
-static RTE_TAILQ_HEAD(, rte_power_cpufreq_ops) cpufreq_ops_list =
+static TAILQ_HEAD(, rte_power_cpufreq_ops) cpufreq_ops_list =
TAILQ_HEAD_INITIALIZER(cpufreq_ops_list);
const char *power_env_str[] = {
@@ -55,7 +55,7 @@ rte_power_check_env_supported(enum power_management_env env)
if (env >= RTE_DIM(power_env_str))
return 0;
- RTE_TAILQ_FOREACH(ops, &cpufreq_ops_list, next)
+ TAILQ_FOREACH(ops, &cpufreq_ops_list, next)
if (strncmp(ops->name, power_env_str[env],
RTE_POWER_DRIVER_NAMESZ) == 0)
return ops->check_env_support();
@@ -77,7 +77,7 @@ rte_power_set_env(enum power_management_env env)
goto out;
}
- RTE_TAILQ_FOREACH(ops, &cpufreq_ops_list, next)
+ TAILQ_FOREACH(ops, &cpufreq_ops_list, next)
if (strncmp(ops->name, power_env_str[env],
RTE_POWER_DRIVER_NAMESZ) == 0) {
global_cpufreq_ops = ops;
@@ -123,7 +123,7 @@ rte_power_init(unsigned int lcore_id)
POWER_LOG(INFO, "Env isn't set yet!");
/* Auto detect Environment */
- RTE_TAILQ_FOREACH(ops, &cpufreq_ops_list, next) {
+ TAILQ_FOREACH(ops, &cpufreq_ops_list, next) {
POWER_LOG(INFO,
"Attempting to initialise %s cpufreq power management...",
ops->name);
diff --git a/lib/power/rte_power_uncore.c b/lib/power/rte_power_uncore.c
index cd2b2a51d5..5e275c9733 100644
--- a/lib/power/rte_power_uncore.c
+++ b/lib/power/rte_power_uncore.c
@@ -4,6 +4,7 @@
*/
#include <errno.h>
+#include <rte_queue.h>
#include <eal_export.h>
#include <rte_spinlock.h>
#include <rte_debug.h>
@@ -15,7 +16,7 @@ static enum rte_uncore_power_mgmt_env global_uncore_env = RTE_UNCORE_PM_ENV_NOT_
static struct rte_power_uncore_ops *global_uncore_ops;
static rte_spinlock_t global_env_cfg_lock = RTE_SPINLOCK_INITIALIZER;
-static RTE_TAILQ_HEAD(, rte_power_uncore_ops) uncore_ops_list =
+static TAILQ_HEAD(, rte_power_uncore_ops) uncore_ops_list =
TAILQ_HEAD_INITIALIZER(uncore_ops_list);
const char *uncore_env_str[] = {
@@ -67,7 +68,7 @@ power_uncore_probe_driver(void)
global_uncore_ops = NULL;
/* Use package-0 and die-0 to probe uncore driver. */
- RTE_TAILQ_FOREACH(ops, &uncore_ops_list, next) {
+ TAILQ_FOREACH(ops, &uncore_ops_list, next) {
ret = ops->init(0, 0);
if (ret == 0) {
ops->exit(0, 0);
@@ -105,7 +106,7 @@ rte_power_set_uncore_env(enum rte_uncore_power_mgmt_env env)
}
if (env < RTE_DIM(uncore_env_str)) {
- RTE_TAILQ_FOREACH(ops, &uncore_ops_list, next)
+ TAILQ_FOREACH(ops, &uncore_ops_list, next)
if (strncmp(ops->name, uncore_env_str[env],
RTE_POWER_UNCORE_DRIVER_NAMESZ) == 0) {
global_uncore_env = env;
diff --git a/lib/table/rte_swx_table.h b/lib/table/rte_swx_table.h
index cf7dcea8a1..b6ab2c59d7 100644
--- a/lib/table/rte_swx_table.h
+++ b/lib/table/rte_swx_table.h
@@ -73,7 +73,7 @@ struct rte_swx_table_entry {
/** Used to facilitate the membership of this table entry to a
* linked list.
*/
- RTE_TAILQ_ENTRY(rte_swx_table_entry) node;
+ TAILQ_ENTRY(rte_swx_table_entry) node;
/** Key value for the current entry. Array of *key_size* bytes or NULL
* if the *key_size* for the current table is 0.
@@ -116,7 +116,7 @@ struct rte_swx_table_entry {
};
/** List of table entries. */
-RTE_TAILQ_HEAD(rte_swx_table_entry_list, rte_swx_table_entry);
+TAILQ_HEAD(rte_swx_table_entry_list, rte_swx_table_entry);
/**
* Table memory footprint get
diff --git a/lib/table/rte_swx_table_selector.h b/lib/table/rte_swx_table_selector.h
index ef29bdb6b0..52d4dbe568 100644
--- a/lib/table/rte_swx_table_selector.h
+++ b/lib/table/rte_swx_table_selector.h
@@ -55,7 +55,7 @@ struct rte_swx_table_selector_params {
/** Group member parameters. */
struct rte_swx_table_selector_member {
/** Linked list connectivity. */
- RTE_TAILQ_ENTRY(rte_swx_table_selector_member) node;
+ TAILQ_ENTRY(rte_swx_table_selector_member) node;
/** Member ID. */
uint32_t member_id;
@@ -65,7 +65,7 @@ struct rte_swx_table_selector_member {
};
/** List of group members. */
-RTE_TAILQ_HEAD(rte_swx_table_selector_member_list, rte_swx_table_selector_member);
+TAILQ_HEAD(rte_swx_table_selector_member_list, rte_swx_table_selector_member);
/** Group parameters. */
struct rte_swx_table_selector_group {
diff --git a/lib/vhost/iotlb.c b/lib/vhost/iotlb.c
index 4c405388f2..66633eae99 100644
--- a/lib/vhost/iotlb.c
+++ b/lib/vhost/iotlb.c
@@ -6,7 +6,7 @@
#include <numaif.h>
#endif
-#include <rte_tailq.h>
+#include <rte_queue.h>
#include "iotlb.h"
#include "vhost.h"
@@ -125,7 +125,7 @@ vhost_user_iotlb_pending_remove_all(struct virtio_net *dev, int asid)
rte_rwlock_write_lock(&dev->iotlb[asid]->pending_lock);
- RTE_TAILQ_FOREACH_SAFE(node, &dev->iotlb[asid]->pending_list, next, temp_node) {
+ TAILQ_FOREACH_SAFE(node, &dev->iotlb[asid]->pending_list, next, temp_node) {
TAILQ_REMOVE(&dev->iotlb[asid]->pending_list, node, next);
vhost_user_iotlb_pool_put(dev, asid, node);
}
@@ -192,7 +192,7 @@ vhost_user_iotlb_pending_remove(struct virtio_net *dev, int asid,
rte_rwlock_write_lock(&dev->iotlb[asid]->pending_lock);
- RTE_TAILQ_FOREACH_SAFE(node, &dev->iotlb[asid]->pending_list, next,
+ TAILQ_FOREACH_SAFE(node, &dev->iotlb[asid]->pending_list, next,
temp_node) {
if (node->iova < iova)
continue;
@@ -214,7 +214,7 @@ vhost_user_iotlb_cache_remove_all(struct virtio_net *dev, int asid)
vhost_user_iotlb_wr_lock_all(dev);
- RTE_TAILQ_FOREACH_SAFE(node, &dev->iotlb[asid]->list, next, temp_node) {
+ TAILQ_FOREACH_SAFE(node, &dev->iotlb[asid]->list, next, temp_node) {
vhost_user_iotlb_clear_dump(dev, node, NULL, NULL);
TAILQ_REMOVE(&dev->iotlb[asid]->list, node, next);
@@ -237,9 +237,9 @@ vhost_user_iotlb_cache_random_evict(struct virtio_net *dev, int asid)
entry_idx = rte_rand() % dev->iotlb[asid]->cache_nr;
- RTE_TAILQ_FOREACH_SAFE(node, &dev->iotlb[asid]->list, next, temp_node) {
+ TAILQ_FOREACH_SAFE(node, &dev->iotlb[asid]->list, next, temp_node) {
if (!entry_idx) {
- struct vhost_iotlb_entry *next_node = RTE_TAILQ_NEXT(node, next);
+ struct vhost_iotlb_entry *next_node = TAILQ_NEXT(node, next);
vhost_user_iotlb_clear_dump(dev, node, prev_node, next_node);
@@ -325,13 +325,13 @@ vhost_user_iotlb_cache_remove(struct virtio_net *dev, int asid, uint64_t iova, u
vhost_user_iotlb_wr_lock_all(dev);
- RTE_TAILQ_FOREACH_SAFE(node, &dev->iotlb[asid]->list, next, temp_node) {
+ TAILQ_FOREACH_SAFE(node, &dev->iotlb[asid]->list, next, temp_node) {
/* Sorted list */
if (unlikely(iova + size < node->iova))
break;
if (iova < node->iova + node->size) {
- struct vhost_iotlb_entry *next_node = RTE_TAILQ_NEXT(node, next);
+ struct vhost_iotlb_entry *next_node = TAILQ_NEXT(node, next);
vhost_user_iotlb_clear_dump(dev, node, prev_node, next_node);
diff --git a/lib/vhost/vdpa.c b/lib/vhost/vdpa.c
index 0a03bcb9d4..585453fc51 100644
--- a/lib/vhost/vdpa.c
+++ b/lib/vhost/vdpa.c
@@ -15,7 +15,6 @@
#include <rte_class.h>
#include <rte_malloc.h>
#include <rte_spinlock.h>
-#include <rte_tailq.h>
#include "rte_vdpa.h"
#include "vdpa_driver.h"
@@ -137,7 +136,7 @@ rte_vdpa_unregister_device(struct rte_vdpa_device *dev)
int ret = -1;
rte_spinlock_lock(&vdpa_device_list_lock);
- RTE_TAILQ_FOREACH_SAFE(cur_dev, vdpa_device_list, next, tmp_dev) {
+ TAILQ_FOREACH_SAFE(cur_dev, vdpa_device_list, next, tmp_dev) {
if (dev != cur_dev)
continue;
diff --git a/lib/vhost/vdpa_driver.h b/lib/vhost/vdpa_driver.h
index c7b9be09fb..72ec985d4d 100644
--- a/lib/vhost/vdpa_driver.h
+++ b/lib/vhost/vdpa_driver.h
@@ -84,7 +84,7 @@ struct rte_vdpa_dev_ops {
* vdpa device structure includes device address and device operations.
*/
struct rte_vdpa_device {
- RTE_TAILQ_ENTRY(rte_vdpa_device) next;
+ TAILQ_ENTRY(rte_vdpa_device) next;
/** Generic device information */
struct rte_device *device;
/** vdpa device operations */
--
2.53.0
next prev parent reply other threads:[~2026-12-02 1:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-17 17:19 [PATCH 0/6] provide a complete set of BSD list macros Stephen Hemminger
2026-09-17 17:19 ` [PATCH 1/6] net/bnxt: fix use after free when freeing filters Stephen Hemminger
2026-09-17 17:19 ` [PATCH 2/6] eal: add rte_queue.h with full set of list macros Stephen Hemminger
2026-09-17 17:19 ` [PATCH 3/6] build: use rte_queue.h instead of sys/queue.h Stephen Hemminger
2026-09-17 17:19 ` [PATCH 4/6] build: remove private FOREACH_SAFE definitions Stephen Hemminger
2026-09-17 17:19 ` [PATCH 5/6] eal: deprecate RTE_TAILQ and RTE_STAILQ macro wrappers Stephen Hemminger
2026-09-17 17:19 ` [PATCH 6/6] devtools: forbid direct use of sys/queue.h Stephen Hemminger
2026-09-18 11:34 ` [PATCH 0/6] provide a complete set of BSD list macros Marat Khalili
2026-09-18 11:50 ` Bruce Richardson
2026-12-02 1:05 ` [PATCH v2 " Stephen Hemminger
2026-12-02 1:05 ` [PATCH v2 1/6] net/bnxt: fix use after free when freeing filters Stephen Hemminger
2026-12-02 1:05 ` [PATCH v2 2/6] eal: add rte_queue.h with full set of list macros Stephen Hemminger
2026-12-02 1:05 ` [PATCH v2 3/6] build: use rte_queue.h instead of sys/queue.h Stephen Hemminger
2026-12-02 1:05 ` [PATCH v2 4/6] build: remove private FOREACH_SAFE definitions Stephen Hemminger
2026-12-02 1:05 ` Stephen Hemminger [this message]
2026-12-02 1:05 ` [PATCH v2 6/6] devtools: forbid direct use of sys/queue.h Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261202011153.3255223-6-stephen@networkplumber.org \
--to=stephen@networkplumber.org \
--cc=3chas3@gmail.com \
--cc=ajit.khaparde@broadcom.com \
--cc=anatoly.burakov@intel.com \
--cc=andrew.rybchenko@oktetlabs.ru \
--cc=bharat@chelsio.com \
--cc=bingz@nvidia.com \
--cc=bruce.richardson@intel.com \
--cc=chenbox@nvidia.com \
--cc=cristian.dumitrescu@intel.com \
--cc=dev@dpdk.org \
--cc=dimon.zhao@nebula-matrix.com \
--cc=dmitry.kozliuk@gmail.com \
--cc=dsosnowski@nvidia.com \
--cc=eagostini@nvidia.com \
--cc=fanzhang.oss@gmail.com \
--cc=fengchengwen@huawei.com \
--cc=gakhil@marvell.com \
--cc=grive@u256.net \
--cc=hemant.agrawal@nxp.com \
--cc=hkalra@marvell.com \
--cc=humin29@huawei.com \
--cc=jerinj@marvell.com \
--cc=kirankumark@marvell.com \
--cc=kishore.padmanabha@broadcom.com \
--cc=konstantin.ananyev@huawei.com \
--cc=leon.yu@nebula-matrix.com \
--cc=liujie5@linkdatatechnology.com \
--cc=matan@nvidia.com \
--cc=maxime.coquelin@redhat.com \
--cc=mb@smartsharesystems.com \
--cc=mczekaj@marvell.com \
--cc=ndabilpuram@marvell.com \
--cc=nicolas.chautru@intel.com \
--cc=nikhil.agarwal@amd.com \
--cc=nipun.gupta@amd.com \
--cc=orika@nvidia.com \
--cc=pbhagavatula@marvell.com \
--cc=praveen.shetty@intel.com \
--cc=ran.ming@zte.com.cn \
--cc=rosen.xu@altera.com \
--cc=sachin.saxena@nxp.com \
--cc=sam.chen@nebula-matrix.com \
--cc=sivaprasad.tummala@amd.com \
--cc=skori@marvell.com \
--cc=skoteshwar@marvell.com \
--cc=spinler@cesnet.cz \
--cc=suanmingm@nvidia.com \
--cc=tduszynski@marvell.com \
--cc=thomas@monjalon.net \
--cc=tirthendu.sarkar@intel.com \
--cc=viacheslavo@nvidia.com \
--cc=vladimir.medvedkin@intel.com \
--cc=wang.junlong1@zte.com.cn \
--cc=weh@microsoft.com \
--cc=yangxingui@huawei.com \
--cc=yipeng1.wang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox