File kernel519.patch of Package r8152

diff -U 3 -H -d -r -N -- a/r8152.c b/r8152.c
--- a/r8152.c	2022-04-12 14:30:51.000000000 +0200
+++ b/r8152.c	2022-08-12 21:19:09.490183113 +0200
@@ -20356,7 +20356,11 @@
 	}
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)
+    #if LINUX_VERSION_CODE >= KERNEL_VERSION(5,19,0)
+    netif_set_tso_max_size(netdev, tso_size);
+    #else
 	netif_set_gso_max_size(netdev, tso_size);
+    #endif //LINUX_VERSION_CODE >= KERNEL_VERSION(5,19,0)
 #endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) */
 
 	return count;
@@ -20519,7 +20523,11 @@
 	netdev->ethtool_ops = &ops;
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)
 	if (!tp->sg_use)
-		netif_set_gso_max_size(netdev, RTL_LIMITED_TSO_SIZE);
+        #if LINUX_VERSION_CODE >= KERNEL_VERSION(5,19,0)
+        netif_set_tso_max_size(netdev, RTL_LIMITED_TSO_SIZE);
+        #else
+        netif_set_gso_max_size(netdev, RTL_LIMITED_TSO_SIZE);
+        #endif //LINUX_VERSION_CODE >= KERNEL_VERSION(5,19,0)
 #else
 	netdev->features &= ~(NETIF_F_TSO | NETIF_F_TSO6);
 #endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) */
openSUSE Build Service is sponsored by