Registration is now invite-only. Any user can make an invite, you need to create it here and give resulting link to someone to register.
... ... --- a/.abf.yml
... ... +++ b/.abf.yml
... ... @@ -1,2 +1,2 @@
1 1
sources:
2
  r8168-8.052.01.tar.bz2: 231926651f9b147bbd50442583dccf2f41fbad8c
2
  r8168-8.051.02.tar.bz2: 39b90a92439dcf682a70c2837e3dd73ea72043be
view file @ b4c03dd969
... ... --- a/0002-Use-linux-firmware-by-default.patch
... ... +++ b/0002-Use-linux-firmware-by-default.patch
... ... @@ -18,14 +18,15 @@ diff --git a/src/Makefile b/src/Makefile
18 18
index eb10ba4..427d070 100755
19 19
--- a/src/Makefile
20 20
+++ b/src/Makefile
21
@@ -42,7 +42,7 @@
21
@@ -42,7 +42,7 @@ ENABLE_S5_KEEP_CURR_MAC = n
22 22
 ENABLE_EEE = y
23 23
 ENABLE_S0_MAGIC_PACKET = n
24 24
 CONFIG_DYNAMIC_ASPM = y
25 25
-ENABLE_USE_FIRMWARE_FILE = n
26 26
+ENABLE_USE_FIRMWARE_FILE = y
27 27
 CONFIG_CTAP_SHORT_OFF = n
28
 ENABLE_MULTIPLE_TX_QUEUE = n
29
 ENABLE_RSS_SUPPORT = n
28
 
29
 ifneq ($(KERNELRELEASE),)
30 30
-- 
31 31
2.35.2
32
view file @ b4c03dd969
... ... --- /dev/null
... ... +++ b/kernel-6.6.patch
... ... @@ -0,0 +1,29 @@
1
diff --git a/src/r8168.h b/src/r8168.h
2
--- a/src/r8168.h
3
+++ b/src/r8168.h 
4
@@ -566,7 +595,11 @@ typedef int *napi_budget;
5
 typedef struct napi_struct *napi_ptr;
6
 typedef int napi_budget;
7
 
8
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,1,0)
9
+#define RTL_NAPI_CONFIG(ndev, priv, function, weight)   netif_napi_add_weight(ndev, &priv->napi, function, weight)
10
+#else
11
 #define RTL_NAPI_CONFIG(ndev, priv, function, weight)   netif_napi_add(ndev, &priv->napi, function, weight)
12
+#endif //LINUX_VERSION_CODE >= KERNEL_VERSION(6,1,0)
13
 #define RTL_NAPI_QUOTA(budget, ndev)            min(budget, budget)
14
 #define RTL_GET_PRIV(stuct_ptr, priv_struct)        container_of(stuct_ptr, priv_struct, stuct_ptr)
15
 #define RTL_GET_NETDEV(priv_ptr)            struct net_device *dev = priv_ptr->dev;
16
diff --git a/src/r8168_n.c b/src/r8168_n.c
17
--- a/src/r8168_n.c
18
+++ b/src/r8168_n.c
19
@@ -81,6 +81,10 @@
20
 #include <linux/mdio.h>
21
 #endif
22
 
23
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,4,10)
24
+#include <net/gso.h>
25
+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(6,4,10) */
26
+
27
 #include <asm/io.h>
28
 #include <asm/irq.h>
29
 
... ... --- a/r8168.spec
... ... +++ b/r8168.spec
... ... @@ -3,8 +3,9 @@
3 3
4 4
Summary:	Standalone driver for Realtek RTL8168*/8111* network adapters
5 5
Name:		r8168
6
Version:	8.052.01
7
Release:	4
6
Version:	8.051.02
7
Release:	6
8
Epoch:		1
8 9
License:	GPLv2+
9 10
Group:		System/Kernel and hardware
10 11
Url:		https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software
... ... @@ -12,7 +13,10 @@ Source0: %{name}-%{version}.tar.bz2
13 13
Source1:	%{name}.rpmlintrc
14 14
Source2:	%{name}.conf
15 15
Patch0001:	0001-Sync-with-removal-of-r8168-supported-devices-from-ke.patch
16
Patch0003:	0002-Use-linux-firmware-by-default.patch
16
Patch0002:	0002-Use-linux-firmware-by-default.patch
17
# ported from version 8.052.01 which works badly
18
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=14416
19
Patch0003:	kernel-6.6.patch
17 20
BuildArch:	noarch
18 21
19 22
# for %%check

Comments