]> git.pld-linux.org Git - packages/r8168.git/blob - kernel-6.1.patch
- up to 8.051.02
[packages/r8168.git] / kernel-6.1.patch
1 --- r8168-8.049.02/src/r8168.h~ 2021-06-11 17:25:16.000000000 +0200
2 +++ r8168-8.049.02/src/r8168.h  2022-12-17 19:14:10.556568693 +0100
3 @@ -553,7 +553,11 @@
4  typedef struct napi_struct *napi_ptr;
5  typedef int napi_budget;
6  
7 +#if LINUX_VERSION_CODE < KERNEL_VERSION(6,1,0)
8  #define RTL_NAPI_CONFIG(ndev, priv, function, weight)   netif_napi_add(ndev, &priv->napi, function, weight)
9 +#else
10 +#define RTL_NAPI_CONFIG(ndev, priv, function, weight)   netif_napi_add(ndev, &priv->napi, function)
11 +#endif
12  #define RTL_NAPI_QUOTA(budget, ndev)            min(budget, budget)
13  #define RTL_GET_PRIV(stuct_ptr, priv_struct)        container_of(stuct_ptr, priv_struct, stuct_ptr)
14  #define RTL_GET_NETDEV(priv_ptr)            struct net_device *dev = priv_ptr->dev;
This page took 0.049563 seconds and 3 git commands to generate.