diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-19 13:48:26 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-19 13:48:26 +0000 |
commit | 844ae757702c53a56ee57056873a8204d256d47e (patch) | |
tree | 72fb217d6155c4468b6d34e67a37b45502cbaf1d /net-misc/r8168 | |
parent | fcefa9aa213e0ff26901b351fccd47393113ae5d (diff) |
gentoo auto-resync : 19:12:2022 - 13:48:25
Diffstat (limited to 'net-misc/r8168')
-rw-r--r-- | net-misc/r8168/Manifest | 3 | ||||
-rw-r--r-- | net-misc/r8168/files/r8168-8.051.02-6.1-fix.patch | 25 | ||||
-rw-r--r-- | net-misc/r8168/r8168-8.051.02.ebuild | 4 |
3 files changed, 31 insertions, 1 deletions
diff --git a/net-misc/r8168/Manifest b/net-misc/r8168/Manifest index e107282b0c2c..9c58f6d7e40a 100644 --- a/net-misc/r8168/Manifest +++ b/net-misc/r8168/Manifest @@ -1,7 +1,8 @@ AUX r8168-8.050.02-5.18-fix.patch 2340 BLAKE2B d85b0d826b58bad42999309d81bd2a7a5202f81dfe516d32c0a7857d63394c70e5e9f66dcdfa03f8f05dce525204a225c6fa1c73dbd6a0cc2dae7a3995be120f SHA512 952660cd26f2c14e21b45bb0fa88012f980f7999b1f33849a295bc757063f25c2b5911f155305d4cc0d671b503acfc315901d584a83c78c47aeb76ee8301f3d7 AUX r8168-8.050.03-5.19-fix.patch 849 BLAKE2B 1913abf46a1b0fa22587f64f5c81e87414e3bbf8d4fd392ce8eafe1405ef6499abf98cee4f26866216d781b6c0e7773dbd5867d4fe49038df3af001a4d81e826 SHA512 fe5977cfd0608a2335c96316568ef20ac4e6ae7913250f6fdfb885a1bf3f50a4de64c6102631650b5e1f4d752132086efa589a95e4cbb2086571fb3545847717 +AUX r8168-8.051.02-6.1-fix.patch 983 BLAKE2B 6c3ec1726f47ab51d702481a8e6817c25917b4e3760d49df74fd888ec04a61468a55015b2444cbed114853079b7844b14370efe095e37e8572abb271bca87ee8 SHA512 b2484ac3169c27324f204d068ffa7e29497039b1e4694ff7aa5ba22ff4da939c371cc2df4ca95b5d96e591d7dc8c558c50bc4b4fe53515ef7776f1564e40dfd7 DIST r8168-8.050.03.tar.bz2 115525 BLAKE2B 9681417c5ded9d089259d80226a16789beaacf31902d896410d581927468c44486a4c496e45d9973851ccca2d4c408159064452849b03347c789390b2b23e57b SHA512 b4c0af2f4e6b9dc36f2db9e33f465d8598afa0b28577ea1f016617e853af00cf41886941fd8173a5b035e219d87a0fae28771230079c88f34039efe669c1e1c6 DIST r8168-8.051.02.tar.bz2 115969 BLAKE2B 28b809c0330920ee0db7a8f8d41e178882531cd0a6793efeadd9670b1a9b5cbe903061073fd1d461f4234feb41249a244f9ef35cdbb780da498e5a6d6f1a5490 SHA512 2f29a413e7db2b7295ea0a970b3385de1dfd6e41e1820097355687daa5c8d155c1cf6115c72875bff4f366365579bffc81733469a62d76f437065b7e514387ca EBUILD r8168-8.050.03.ebuild 1163 BLAKE2B b2c551916ca8a3314b2be6e57c3705c85368824164d203e7a8f856aa416921720b68d77f16c3a5389c7d3b545b4458dc5b0e747891e59cab9042f4b0e74823f9 SHA512 86bffbb8d2772c8a56d54429dfe2b76be59ce6e05128b56c802d48fba6bd2980968103edf70cd699c4ba9b21ada0337ed1e84efb7ad3e0f74ee4d2c42714e2c1 -EBUILD r8168-8.051.02.ebuild 1062 BLAKE2B e2834e08258d151da481ffef3a26a9055c7652a2ad8bc7ffb26395655eee787b23e414a37a5f0cc8232b5d611055e01cf1597f9418d77beea527e5928e6aee3d SHA512 570271a2042db2336aa685f608b5b523ce5c372310ada7369c635b26cf39d87990e4ea9141aa75ef915ab9af7b0b17666f08cbe53a151f0241c7683512e0c43a +EBUILD r8168-8.051.02.ebuild 1119 BLAKE2B bee2646f7a4e9d7d5e7170248b39dd3d460c1d662e61065215cb32a15bf03779772ef572e195df52f23103522d0ce7292698b7a3b851a9ebd3cd859359214ef7 SHA512 f13cb1a3efcc6aac8873e23cf7569d565491069c31d2d2c37221697f1e5205c77c50cd9bd969ab66721e44f13949387d9e6209c018f9d5ba55db7dbcf84a0422 MISC metadata.xml 577 BLAKE2B 0335cbfc902163abd4ffef0ad089b15ae7eaee15e41ed7760834d0329662a8ea0c66d68366a779265205557abe31bf3055b474f6bda7469e803a6240c3e68951 SHA512 f27ae61be558fe46b14fdf43a8d975c71cc900788761e6c5044eea6e8f80ddb6528b0d9d711844b6c8b45e58401a8736d08c40827fa0ceb99be32a3a0abd7086 diff --git a/net-misc/r8168/files/r8168-8.051.02-6.1-fix.patch b/net-misc/r8168/files/r8168-8.051.02-6.1-fix.patch new file mode 100644 index 000000000000..9a9e3e539259 --- /dev/null +++ b/net-misc/r8168/files/r8168-8.051.02-6.1-fix.patch @@ -0,0 +1,25 @@ +From 39dd0fd2e5dc45cd63113f33a9890e36c304916d Mon Sep 17 00:00:00 2001 +From: zu1k <i@zu1k.com> +Date: Sat, 29 Oct 2022 21:57:39 +0800 +Subject: [PATCH] Adapted for Linux 6.1 + +--- + src/r8168.h | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/r8168.h b/src/r8168.h +index 662974a..baf48c6 100755 +--- a/src/r8168.h ++++ b/src/r8168.h +@@ -561,7 +561,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(ndev, &priv->napi, function) ++#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; diff --git a/net-misc/r8168/r8168-8.051.02.ebuild b/net-misc/r8168/r8168-8.051.02.ebuild index 4258fbb99cdb..853cd629f555 100644 --- a/net-misc/r8168/r8168-8.051.02.ebuild +++ b/net-misc/r8168/r8168-8.051.02.ebuild @@ -24,6 +24,10 @@ IUSE="use-firmware" CONFIG_CHECK="~!R8169" WARNING_R8169="CONFIG_R8169 is enabled. ${P} will not be loaded unless kernel driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED." +PATCHES=( + "${FILESDIR}/${PN}-8.051.02-6.1-fix.patch" +) + pkg_setup() { linux-mod_pkg_setup BUILD_PARAMS="KERNELDIR=${KV_DIR}" |