[PATCH v3 07/44] app/testpmd: use rte_bsd_queue.h
Stephen Hemminger
stephen at networkplumber.org
Mon Nov 3 17:47:12 CET 2025
Only include the definition of LIST, TAILQ, etc where needed.
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
app/test-pmd/5tswap.c | 2 --
app/test-pmd/cmdline.c | 2 +-
app/test-pmd/config.c | 2 +-
app/test-pmd/csumonly.c | 1 -
app/test-pmd/flowgen.c | 1 -
app/test-pmd/hairpin.c | 1 -
app/test-pmd/icmpecho.c | 1 -
app/test-pmd/iofwd.c | 1 -
app/test-pmd/macfwd.c | 1 -
app/test-pmd/macswap.c | 1 -
app/test-pmd/noisy_vnf.c | 1 -
app/test-pmd/parameters.c | 1 -
app/test-pmd/rxonly.c | 1 -
app/test-pmd/testpmd.c | 1 -
app/test-pmd/testpmd.h | 2 +-
app/test-pmd/txonly.c | 1 -
16 files changed, 3 insertions(+), 17 deletions(-)
diff --git a/app/test-pmd/5tswap.c b/app/test-pmd/5tswap.c
index 8e8de2557a..2671fdcd9f 100644
--- a/app/test-pmd/5tswap.c
+++ b/app/test-pmd/5tswap.c
@@ -7,8 +7,6 @@
#include <stdint.h>
#include <unistd.h>
#include <inttypes.h>
-
-#include <sys/queue.h>
#include <sys/stat.h>
#include <rte_common.h>
diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index 22afbdbad3..5296de21da 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -13,8 +13,8 @@
#include <string.h>
#include <unistd.h>
#include <inttypes.h>
-#include <sys/queue.h>
+#include <rte_bsd_queue.h>
#include <rte_common.h>
#include <rte_byteorder.h>
#include <rte_log.h>
diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index 3ce2a14a1b..965b4ab9f7 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -13,7 +13,7 @@
#include <stdint.h>
#include <inttypes.h>
-#include <sys/queue.h>
+#include <rte_bsd_queue.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c
index a6e872e5a4..a239434d1a 100644
--- a/app/test-pmd/csumonly.c
+++ b/app/test-pmd/csumonly.c
@@ -10,7 +10,6 @@
#include <unistd.h>
#include <inttypes.h>
-#include <sys/queue.h>
#include <sys/stat.h>
#include <rte_common.h>
diff --git a/app/test-pmd/flowgen.c b/app/test-pmd/flowgen.c
index 53b5f24f11..dc50f8c94f 100644
--- a/app/test-pmd/flowgen.c
+++ b/app/test-pmd/flowgen.c
@@ -10,7 +10,6 @@
#include <unistd.h>
#include <inttypes.h>
-#include <sys/queue.h>
#include <sys/stat.h>
#include <rte_common.h>
diff --git a/app/test-pmd/hairpin.c b/app/test-pmd/hairpin.c
index 5e6b37974e..35d5c06047 100644
--- a/app/test-pmd/hairpin.c
+++ b/app/test-pmd/hairpin.c
@@ -8,7 +8,6 @@
#include <stdbool.h>
#include <stdint.h>
-#include <sys/queue.h>
#include "testpmd.h"
diff --git a/app/test-pmd/icmpecho.c b/app/test-pmd/icmpecho.c
index c87b7a80df..7b51513070 100644
--- a/app/test-pmd/icmpecho.c
+++ b/app/test-pmd/icmpecho.c
@@ -10,7 +10,6 @@
#include <unistd.h>
#include <inttypes.h>
-#include <sys/queue.h>
#include <sys/stat.h>
#include <rte_common.h>
diff --git a/app/test-pmd/iofwd.c b/app/test-pmd/iofwd.c
index ba06fae4a6..26dd787ca1 100644
--- a/app/test-pmd/iofwd.c
+++ b/app/test-pmd/iofwd.c
@@ -10,7 +10,6 @@
#include <unistd.h>
#include <inttypes.h>
-#include <sys/queue.h>
#include <sys/stat.h>
#include <rte_common.h>
diff --git a/app/test-pmd/macfwd.c b/app/test-pmd/macfwd.c
index d19ace7395..5ba3549270 100644
--- a/app/test-pmd/macfwd.c
+++ b/app/test-pmd/macfwd.c
@@ -10,7 +10,6 @@
#include <unistd.h>
#include <inttypes.h>
-#include <sys/queue.h>
#include <sys/stat.h>
#include <rte_common.h>
diff --git a/app/test-pmd/macswap.c b/app/test-pmd/macswap.c
index 57f77003fe..cc171aed4c 100644
--- a/app/test-pmd/macswap.c
+++ b/app/test-pmd/macswap.c
@@ -10,7 +10,6 @@
#include <unistd.h>
#include <inttypes.h>
-#include <sys/queue.h>
#include <sys/stat.h>
#include <rte_common.h>
diff --git a/app/test-pmd/noisy_vnf.c b/app/test-pmd/noisy_vnf.c
index 81d1187cfe..edf1f62b55 100644
--- a/app/test-pmd/noisy_vnf.c
+++ b/app/test-pmd/noisy_vnf.c
@@ -12,7 +12,6 @@
#include <unistd.h>
#include <inttypes.h>
-#include <sys/queue.h>
#include <sys/stat.h>
#include <rte_common.h>
diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c
index 96973906fd..8a290a7f44 100644
--- a/app/test-pmd/parameters.c
+++ b/app/test-pmd/parameters.c
@@ -13,7 +13,6 @@
#include <fcntl.h>
#include <sys/types.h>
-#include <sys/queue.h>
#include <sys/stat.h>
#include <stdint.h>
diff --git a/app/test-pmd/rxonly.c b/app/test-pmd/rxonly.c
index 315f9286cd..c73282e991 100644
--- a/app/test-pmd/rxonly.c
+++ b/app/test-pmd/rxonly.c
@@ -10,7 +10,6 @@
#include <unistd.h>
#include <inttypes.h>
-#include <sys/queue.h>
#include <sys/stat.h>
#include <rte_common.h>
diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
index 2360da3a48..981a4ca9b9 100644
--- a/app/test-pmd/testpmd.c
+++ b/app/test-pmd/testpmd.c
@@ -16,7 +16,6 @@
#include <errno.h>
#include <stdbool.h>
-#include <sys/queue.h>
#include <sys/stat.h>
#include <stdint.h>
diff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h
index fa46865c67..72a5d8eac1 100644
--- a/app/test-pmd/testpmd.h
+++ b/app/test-pmd/testpmd.h
@@ -21,7 +21,7 @@
#include <cmdline.h>
#include <cmdline_parse.h>
-#include <sys/queue.h>
+#include <rte_bsd_queue.h>
#ifdef RTE_HAS_JANSSON
#include <jansson.h>
#endif
diff --git a/app/test-pmd/txonly.c b/app/test-pmd/txonly.c
index bdcf6ea660..2aa8aaa4c5 100644
--- a/app/test-pmd/txonly.c
+++ b/app/test-pmd/txonly.c
@@ -10,7 +10,6 @@
#include <unistd.h>
#include <inttypes.h>
-#include <sys/queue.h>
#include <sys/stat.h>
#include <rte_common.h>
--
2.51.0
More information about the dev
mailing list