[RFC 11/21] test: include headers directly
From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2026-08-02 18:19:42
Subsystem:
the rest · Maintainer:
Linus Torvalds
The test code was getting network headers indirectly via inclusion of rte_ethdev.h. This will change in future, instead get the headers directly. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> --- app/test-eventdev/test_pipeline_common.h | 1 + app/test/test_bpf.c | 3 +++ app/test/test_security_inline_macsec.c | 2 ++ app/test/test_security_inline_proto.c | 1 + 4 files changed, 7 insertions(+)
diff --git a/app/test-eventdev/test_pipeline_common.h b/app/test-eventdev/test_pipeline_common.h
index 61370fb799..e9f20e7f62 100644
--- a/app/test-eventdev/test_pipeline_common.h
+++ b/app/test-eventdev/test_pipeline_common.h@@ -12,6 +12,7 @@ #include <rte_cycles.h> #include <rte_ethdev.h> #include <rte_ether.h> +#include <rte_ip.h> #include <rte_event_eth_rx_adapter.h> #include <rte_event_eth_tx_adapter.h> #include <rte_eventdev.h>
diff --git a/app/test/test_bpf.c b/app/test/test_bpf.c
index 3205afaa63..32389c803a 100644
--- a/app/test/test_bpf.c
+++ b/app/test/test_bpf.c@@ -15,6 +15,9 @@ #include <rte_random.h> #include <rte_byteorder.h> #include <rte_errno.h> +#include <rte_ip.h> +#include <rte_udp.h> +#include <rte_tcp.h> #include "test.h"
diff --git a/app/test/test_security_inline_macsec.c b/app/test/test_security_inline_macsec.c
index a929ff5326..43672ef237 100644
--- a/app/test/test_security_inline_macsec.c
+++ b/app/test/test_security_inline_macsec.c@@ -8,6 +8,8 @@ #include <rte_ethdev.h> #include <rte_malloc.h> #include <rte_security.h> +#include <rte_flow.h> +#include <rte_macsec.h> #include "test.h" #include "test_security_inline_macsec_vectors.h"
diff --git a/app/test/test_security_inline_proto.c b/app/test/test_security_inline_proto.c
index 0b1f7fbbab..99111e5432 100644
--- a/app/test/test_security_inline_proto.c
+++ b/app/test/test_security_inline_proto.c@@ -7,6 +7,7 @@ #include <inttypes.h> #include <rte_ethdev.h> +#include <rte_flow.h> #include <rte_malloc.h> #include <rte_security.h>
--
2.53.0