[PATCH v8 03/14] net/pcap: include used headers

Stephen Hemminger
2026-01-27T17:21:57Z

Include the used headers instead of relying on getting
the headers indirectly through other headers.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
drivers/net/pcap/pcap_ethdev.c | 8 ++++++++
drivers/net/pcap/pcap_osdep.h | 1 +
2 files changed, 9 insertions(+)

diff --git a/drivers/net/pcap/pcap_ethdev.c b/drivers/net/pcap/pcap_ethdev.c
index f323c0b0df..d09ba5abe9 100644
--- a/drivers/net/pcap/pcap_ethdev.c
+++ b/drivers/net/pcap/pcap_ethdev.c
@@ -4,16 +4,24 @@
* All rights reserved.
*/

+#include <stdio.h>
#include <stdlib.h>
#include <time.h>
+#include <inttypes.h>
+#include <errno.h>
+#include <sys/time.h>
+#include <sys/types.h>

#include <pcap.h>

#include <rte_cycles.h>
+#include <rte_ring.h>
+#include <rte_ethdev.h>
#include <ethdev_driver.h>
#include <ethdev_vdev.h>
#include <rte_kvargs.h>
#include <rte_malloc.h>
+#include <rte_memcpy.h>
#include <rte_mbuf.h>
#include <rte_mbuf_dyn.h>
#include <bus_vdev_driver.h>
diff --git a/drivers/net/pcap/pcap_osdep.h b/drivers/net/pcap/pcap_osdep.h
index 2aa13f3629..a0e2b5ace9 100644
--- a/drivers/net/pcap/pcap_osdep.h
+++ b/drivers/net/pcap/pcap_osdep.h
@@ -6,6 +6,7 @@
#define _RTE_PCAP_OSDEP_

#include <rte_ether.h>
+#include <rte_log.h>

#define PMD_LOG(level, ...) \
RTE_LOG_LINE_PREFIX(level, ETH_PCAP, "%s(): ", __func__, __VA_ARGS__)
--
2.51.0