[RFC 16/47] ethdev: replace use of sys/queue.h

Stephen Hemminger stephen at networkplumber.org
Tue Aug 19 01:27:27 CEST 2025


Use bsd_queue.h

Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
 lib/ethdev/ethdev_private.h | 3 +--
 lib/ethdev/rte_ethdev.c     | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/ethdev/ethdev_private.h b/lib/ethdev/ethdev_private.h
index b07b1b4c42..a994833760 100644
--- a/lib/ethdev/ethdev_private.h
+++ b/lib/ethdev/ethdev_private.h
@@ -5,8 +5,7 @@
 #ifndef _ETH_PRIVATE_H_
 #define _ETH_PRIVATE_H_
 
-#include <sys/queue.h>
-
+#include <bsd_queue.h>
 #include <rte_eal_memconfig.h>
 #include <rte_malloc.h>
 #include <rte_os_shim.h>
diff --git a/lib/ethdev/rte_ethdev.c b/lib/ethdev/rte_ethdev.c
index dd7c00bc94..42561a01b8 100644
--- a/lib/ethdev/rte_ethdev.c
+++ b/lib/ethdev/rte_ethdev.c
@@ -9,8 +9,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/queue.h>
 
+#include <bsd_queue.h>
 #include <bus_driver.h>
 #include <eal_export.h>
 #include <rte_log.h>
-- 
2.47.2



More information about the dev mailing list