[RFC 10/21] gro: include headers directly
From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2026-08-02 18:19:37
Subsystem:
library code, the rest · Maintainers:
Andrew Morton, Linus Torvalds
The gro library was getting header such as vxlan implicitly via rte_ethdev.h. That will change so get the headers where used instead. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> --- lib/gro/gro_tcp4.c | 1 + lib/gro/gro_vxlan_tcp4.c | 4 +++- lib/gro/gro_vxlan_udp4.c | 1 + lib/gro/rte_gro.c | 1 + 4 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/lib/gro/gro_tcp4.c b/lib/gro/gro_tcp4.c
index 855cc7a71d..d8f3227c92 100644
--- a/lib/gro/gro_tcp4.c
+++ b/lib/gro/gro_tcp4.c@@ -5,6 +5,7 @@ #include <rte_malloc.h> #include <rte_mbuf.h> #include <rte_ethdev.h> +#include <rte_ip.h> #include "gro_tcp4.h" #include "gro_tcp_internal.h"
diff --git a/lib/gro/gro_vxlan_tcp4.c b/lib/gro/gro_vxlan_tcp4.c
index 29d4a2e13d..653c7ea585 100644
--- a/lib/gro/gro_vxlan_tcp4.c
+++ b/lib/gro/gro_vxlan_tcp4.c@@ -5,7 +5,9 @@ #include <rte_malloc.h> #include <rte_mbuf.h> #include <rte_ethdev.h> -#include <rte_udp.h> +#include <rte_vxlan.h> +#include <rte_ip.h> +#include <rte_tcp.h> #include "gro_vxlan_tcp4.h"
diff --git a/lib/gro/gro_vxlan_udp4.c b/lib/gro/gro_vxlan_udp4.c
index ca8cee270d..47262bcc32 100644
--- a/lib/gro/gro_vxlan_udp4.c
+++ b/lib/gro/gro_vxlan_udp4.c@@ -5,6 +5,7 @@ #include <rte_malloc.h> #include <rte_mbuf.h> #include <rte_ethdev.h> +#include <rte_vxlan.h> #include <rte_udp.h> #include "gro_vxlan_udp4.h"
diff --git a/lib/gro/rte_gro.c b/lib/gro/rte_gro.c
index 578cc9b801..d6b27bf8fb 100644
--- a/lib/gro/rte_gro.c
+++ b/lib/gro/rte_gro.c@@ -6,6 +6,7 @@ #include <rte_malloc.h> #include <rte_cycles.h> #include <rte_ethdev.h> +#include <rte_vxlan.h> #include "rte_gro.h" #include "gro_tcp4.h"
--
2.53.0