[PATCH 45/74] backport: add gso.h

Johannes Berg <[email protected]> Fri, 24 May 2024 19:07:57 +0200
Newsgroups org.kernel.vger.backports
Message-ID <20240524190907.ed1b5fb658ac.I80bd589db6d0b9547dd434492f30b96c5439bcef@changeid>
From: Gregory Greenman <[email protected]>

In v6.5 gso declartions were moved into their own file.
The commit is d457a0e329b0 ("net: move gso declarations and functions to their own files")

Include the correct file depending on the kernel version.

Signed-off-by: Gregory Greenman <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
---
 backport/backport-include/net/gso.h | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 backport/backport-include/net/gso.h

diff --git a/backport/backport-include/net/gso.h b/backport/backport-include/net/gso.h
new file mode 100644
index 000000000000..f9ad9fc888b2
--- /dev/null
+++ b/backport/backport-include/net/gso.h
@@ -0,0 +1,9 @@
+#ifndef __BACKPORT_GSO_H
+#define __BACKPORT_GSO_H
+
+#if LINUX_VERSION_IS_GEQ(6,5,0)
+#include_next <net/gso.h>
+#else
+#include <linux/netdevice.h>
+#endif /* < 6.5.0 */
+#endif /* __BACKPORT_GSO_H */
-- 
2.45.1