[PATCH 15/20] headers: add net/gso.h backport for kernels < 6.5
Yi Cong <[email protected]> Wed, 24 Jun 2026 15:38:39 +0800
| Newsgroups | org.kernel.vger.backports |
|---|---|
| Message-ID | <[email protected]> |
From: Yi Cong <[email protected]> In v6.5 GSO helpers (skb_gso_segment, etc.) were extracted from linux/netdevice.h into a new net/gso.h header. For older kernels, this backport simply includes the existing headers where these functions are already defined. Signed-off-by: Yi Cong <[email protected]> --- backport/backport-include/net/gso.h | 16 ++++++++++++++++ 1 file changed, 16 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 00000000..ccc1e3d4 --- /dev/null +++ b/backport/backport-include/net/gso.h @@ -0,0 +1,16 @@ +#ifndef __BACKPORT_NET_GSO_H +#define __BACKPORT_NET_GSO_H +#include <linux/version.h> + +/* + * net/gso.h was introduced in v6.5 by extracting GSO helpers from + * linux/netdevice.h and linux/skbuff.h. On older kernels these + * functions are already available through the existing headers, so + * this backport simply pulls in the relevant includes. + */ +#if LINUX_VERSION_IS_LESS(6,5,0) +#include <linux/netdevice.h> +#include <linux/skbuff.h> +#endif + +#endif /* __BACKPORT_NET_GSO_H */ -- 2.43.0