[PATCH v4 13/23] node: get UDP header
Stephen Hemminger
stephen at networkplumber.org
Thu Aug 6 07:09:07 CEST 2026
This library was getting UDP header indirectly via rte_ethdev.h
Use iwyu to update includes to match usage.
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
lib/node/udp4_input.c | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/lib/node/udp4_input.c b/lib/node/udp4_input.c
index 5a74e28c85..02a8284982 100644
--- a/lib/node/udp4_input.c
+++ b/lib/node/udp4_input.c
@@ -2,20 +2,21 @@
* Copyright(C) 2023 Marvell International Ltd.
*/
-#include <arpa/inet.h>
-#include <sys/socket.h>
+#include <stdio.h>
+#include <stdint.h>
#include <eal_export.h>
-#include <rte_ethdev.h>
+#include <rte_common.h>
+#include <rte_byteorder.h>
+#include <rte_errno.h>
#include <rte_ether.h>
#include <rte_graph.h>
-#include <rte_graph_worker.h>
-#include <rte_ip.h>
-#include <rte_lpm.h>
#include <rte_hash.h>
-#include <rte_fbk_hash.h>
+#include <rte_ip.h>
#include <rte_jhash.h>
-#include <rte_hash_crc.h>
+#include <rte_log.h>
+#include <rte_memcpy.h>
+#include <rte_udp.h>
#include "rte_node_udp4_input_api.h"
--
2.53.0
More information about the dev
mailing list