From ca45ec83b5d77af14152011046f506005a8a71aa Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 2 Aug 2022 21:19:42 +0100 Subject: gentoo auto-resync : 02:08:2022 - 21:19:42 --- net-misc/r8168/files/r8168-8.050.03-5.19-fix.patch | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 net-misc/r8168/files/r8168-8.050.03-5.19-fix.patch (limited to 'net-misc/r8168/files') diff --git a/net-misc/r8168/files/r8168-8.050.03-5.19-fix.patch b/net-misc/r8168/files/r8168-8.050.03-5.19-fix.patch new file mode 100644 index 000000000000..d0f5d30ada06 --- /dev/null +++ b/net-misc/r8168/files/r8168-8.050.03-5.19-fix.patch @@ -0,0 +1,23 @@ +From: Andrea Righi +Subject: support linux 5.19 + +Index: r8168-8.050.03/src/r8168_n.c +=================================================================== +--- r8168-8.050.03.orig/src/r8168_n.c ++++ r8168-8.050.03/src/r8168_n.c +@@ -116,6 +116,15 @@ + #define FIRMWARE_8168FP_3 "rtl_nic/rtl8168fp-3.fw" + #define FIRMWARE_8168FP_4 "rtl_nic/rtl8168fp-4.fw" + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0) ++static inline void netif_set_gso_max_size(struct net_device *dev, ++ unsigned int size) ++{ ++ /* dev->gso_max_size is read locklessly from sk_setup_caps() */ ++ WRITE_ONCE(dev->gso_max_size, size); ++} ++#endif ++ + /* Maximum number of multicast addresses to filter (vs. Rx-all-multicast). + The RTL chips use a 64 element hash table based on the Ethernet CRC. */ + static const int multicast_filter_limit = 32; -- cgit v1.2.3