Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37735817
en ru br
ALT Linux repos
S:8.051.02-alt2
5.0: 8.003.00-alt1
4.1: 8.003.00-alt1
4.0: 8.003.00-alt1

Group :: Development/Kernel
RPM: kernel-source-r8168

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: kernel-6.1.patch
Download


From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
Date: Mon, 12 Dec 2022 00:44:23 +0000
Subject: [PATCH] Linux 6.1
---
 src/r8168.h | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/src/r8168.h b/src/r8168.h
index 511c648a6c05..62393f414aa9 100755
--- a/src/r8168.h
+++ b/src/r8168.h
@@ -566,7 +566,11 @@ typedef int *napi_budget;
 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_weight(ndev, &priv->napi, function, weight)
+#else
 #define RTL_NAPI_CONFIG(ndev, priv, function, weight)   netif_napi_add(ndev, &priv->napi, function, weight)
+#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;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin