From 0c5aa0682435c81813625857127f60e2331af0d3 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Thu, 31 Aug 2023 14:57:34 +0800 Subject: [PATCH] ixgbe: fix build with kernel 5.4.255 Signed-off-by: Tianling Shen --- package/kernel/ixgbe/Makefile | 2 +- .../ixgbe/patches/010-VXLAN_HEADROOM-header.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 package/kernel/ixgbe/patches/010-VXLAN_HEADROOM-header.patch diff --git a/package/kernel/ixgbe/Makefile b/package/kernel/ixgbe/Makefile index 2248c60599..1cb9df138d 100644 --- a/package/kernel/ixgbe/Makefile +++ b/package/kernel/ixgbe/Makefile @@ -7,7 +7,7 @@ include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=ixgbe PKG_VERSION:=5.19.6 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/e1000/ixgbe%20stable/$(PKG_VERSION)/ diff --git a/package/kernel/ixgbe/patches/010-VXLAN_HEADROOM-header.patch b/package/kernel/ixgbe/patches/010-VXLAN_HEADROOM-header.patch new file mode 100644 index 0000000000..0e0551b38f --- /dev/null +++ b/package/kernel/ixgbe/patches/010-VXLAN_HEADROOM-header.patch @@ -0,0 +1,11 @@ +--- a/src/ixgbe_main.c ++++ b/src/ixgbe_main.c +@@ -9869,7 +9869,7 @@ static void ixgbe_atr(struct ixgbe_ring + struct ixgbe_adapter *adapter = q_vector->adapter; + + if (unlikely(skb_tail_pointer(skb) < hdr.network + +- VXLAN_HEADROOM)) ++ vxlan_headroom(0))) + return; + + /* verify the port is recognized as VXLAN or GENEVE*/