File kernel61.patch of Package r8152

--- a/r8152.c	2022-07-06 05:23:48.000000000 +0200
+++ b/r8152.c	2022-10-22 10:56:51.739607864 +0200
@@ -20699,11 +20699,15 @@
 	set_ethernet_addr(tp, false);
 
 	usb_set_intfdata(intf, tp);
-
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
+	netif_napi_add_weight(netdev, &tp->napi, r8152_poll,
+			      tp->support_2500full ? 256 : 64);
+	#else
 	if (tp->support_2500full)
 		netif_napi_add(netdev, &tp->napi, r8152_poll, 256);
 	else
 		netif_napi_add(netdev, &tp->napi, r8152_poll, 64);
+    #endif
 
 	ret = register_netdev(netdev);
 	if (ret != 0) {
openSUSE Build Service is sponsored by