+++ /dev/null
---- r8168-8.049.02/src/r8168.h~ 2021-06-11 17:25:16.000000000 +0200
-+++ r8168-8.049.02/src/r8168.h 2022-12-17 19:14:10.556568693 +0100
-@@ -553,7 +553,11 @@
- typedef struct napi_struct *napi_ptr;
- typedef int napi_budget;
-
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,1,0)
- #define RTL_NAPI_CONFIG(ndev, priv, function, weight) netif_napi_add(ndev, &priv->napi, function, weight)
-+#else
-+#define RTL_NAPI_CONFIG(ndev, priv, function, weight) netif_napi_add(ndev, &priv->napi, function)
-+#endif
- #define RTL_NAPI_QUOTA(budget, ndev) min(budget, budget)
- #define RTL_GET_PRIV(stuct_ptr, priv_struct) container_of(stuct_ptr, priv_struct, stuct_ptr)
- #define RTL_GET_NETDEV(priv_ptr) struct net_device *dev = priv_ptr->dev;
+++ /dev/null
---- r8168-8.051.02/src/r8168_n.c~ 2022-10-20 10:57:18.000000000 +0200
-+++ r8168-8.051.02/src/r8168_n.c 2023-09-06 02:41:32.191684157 +0200
-@@ -81,6 +81,10 @@
- #include <linux/mdio.h>
- #endif
-
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,5,0)
-+#include <net/gso.h>
-+#endif
-+
- #include <asm/io.h>
- #include <asm/irq.h>
-
Summary: Linux driver for RTL8111/8168B PCI Express Gigabit Ethernet controllers
Summary(pl.UTF-8): Linuksowy sterownik dla kart sieciowych RTL8111/8168B PCI Express Gigabit Ethernet
Name: %{pname}%{_alt_kernel}
-Version: 8.051.02
+Version: 8.052.01
Release: %{rel}%{?_pld_builder:@%{_kernel_ver_str}}
License: GPL
Group: Base/Kernel
# https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software
# unfortunately this download is not DF-friendly.
Source0: %{pname}-%{version}.tar.bz2
-# Source0-md5: c3ca2e48ff5079540153a4ba30b0014a
-Patch0: kernel-6.1.patch
-Patch1: kernel-6.5.patch
+# Source0-md5: 31d41df8c9234d187d42b881a087d7df
BuildRequires: rpmbuild(macros) >= 1.701
%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}
BuildRoot: %{tmpdir}/%{pname}-%{version}-root-%(id -u -n)
%prep
%setup -q -n %{pname}-%{version}
-%patch0 -p1
-%patch1 -p1
%build
%{expand:%build_kernel_packages}