diff mbox series

[45/74] backport: add gso.h

Message ID 20240524190907.ed1b5fb658ac.I80bd589db6d0b9547dd434492f30b96c5439bcef@changeid (mailing list archive)
State New, archived
Headers show
Series backport updates from Intel | expand

Commit Message

Johannes Berg May 24, 2024, 5:07 p.m. UTC
From: Gregory Greenman <gregory.greenman@intel.com>

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 <gregory.greenman@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 backport/backport-include/net/gso.h | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 backport/backport-include/net/gso.h
diff mbox series

Patch

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 */