[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: 3872eb9ea220c7654f9285cb2f3ccbeb4bcaee71
Author: Arthur Zamarin gentoo org>
AuthorDate: Thu Nov 27 17:57:18 2025 +
Commit: Arthur Zamarin gentoo org>
CommitDate: Thu Nov 27 17:57:18 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3872eb9e
net-misc/r8125: Stabilize 9.016.00 x86, #963234
Signed-off-by: Arthur Zamarin gentoo.org>
net-misc/r8125/r8125-9.016.00.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net-misc/r8125/r8125-9.016.00.ebuild
b/net-misc/r8125/r8125-9.016.00.ebuild
index 4e176def0eb4..8c450a8772f4 100644
--- a/net-misc/r8125/r8125-9.016.00.ebuild
+++ b/net-misc/r8125/r8125-9.016.00.ebuild
@@ -12,7 +12,7 @@
SRC_URI="https://github.com/Karlson2k/r8125/releases/download/${PV}/${P}.tar.bz2
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="amd64 ~x86"
+KEYWORDS="amd64 x86"
IUSE="down-speed-100 fiber hw-acceleration hw-optim-tx +eee +giga-lite
+multi-tx-q ptp +rss s5-keep-mac use-firmware +wol-s5 +wol"
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/, net-misc/r8125/files/
commit: dd598a156a3398299767e276b40f57319a1cb73f
Author: Evgeny Grin (Karlson2k) drgrin dev>
AuthorDate: Wed Sep 24 18:21:11 2025 +
Commit: Sam James gentoo org>
CommitDate: Sun Oct 5 23:24:40 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd598a15
net-misc/r8125: Fix PTP with kernel >=6.16
Closes: https://bugs.gentoo.org/963364
Signed-off-by: Evgeny Grin (Karlson2k) drgrin.dev>
Part-of: https://github.com/gentoo/gentoo/pull/43929
Closes: https://github.com/gentoo/gentoo/pull/43929
Signed-off-by: Sam James gentoo.org>
.../files/r8125-9.016.00-ptp-linux-6.16.patch | 30 ++
net-misc/r8125/r8125-9.016.00.ebuild | 1 +
net-misc/r8125/r8125-9.016.01.ebuild | 1 +
3 files changed, 32 insertions(+)
diff --git a/net-misc/r8125/files/r8125-9.016.00-ptp-linux-6.16.patch
b/net-misc/r8125/files/r8125-9.016.00-ptp-linux-6.16.patch
new file mode 100644
index ..b8bfd4a645ff
--- /dev/null
+++ b/net-misc/r8125/files/r8125-9.016.00-ptp-linux-6.16.patch
@@ -0,0 +1,30 @@
+From 2f8c3c336aba02cfd8a0ebf2c4f348d6196906c2 Mon Sep 17 00:00:00 2001
+From: "Evgeny Grin (Karlson2k)"
+Date: Wed, 24 Sep 2025 20:02:20 +0200
+Subject: [PATCH] Fix build with PTP with kernels >=6.16
+
+---
+ src/r8125_ptp.c | 5 +
+ 1 file changed, 5 insertions(+)
+
+diff --git a/src/r8125_ptp.c b/src/r8125_ptp.c
+index 457fa6d..41cc2a2 100644
+--- a/src/r8125_ptp.c
b/src/r8125_ptp.c
+@@ -1213,8 +1213,13 @@ void rtl8125_ptp_init(struct rtl8125_private *tp)
+ switch (tp->HwSuppPtpVer) {
+ case 3:
+ tp->pps_enable = 0;
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,13,0)
++hrtimer_setup(&tp->pps_timer, rtl8125_phy_hrtimer_for_pps,
CLOCK_MONOTONIC,
++ HRTIMER_MODE_REL);
++#else
+ hrtimer_init(&tp->pps_timer, CLOCK_MONOTONIC,
HRTIMER_MODE_REL);
+ tp->pps_timer.function = rtl8125_phy_hrtimer_for_pps;
++#endif
+ break;
+ default:
+ break;
+--
+2.49.1
+
diff --git a/net-misc/r8125/r8125-9.016.00.ebuild
b/net-misc/r8125/r8125-9.016.00.ebuild
index e8215e86d218..4e176def0eb4 100644
--- a/net-misc/r8125/r8125-9.016.00.ebuild
+++ b/net-misc/r8125/r8125-9.016.00.ebuild
@@ -18,6 +18,7 @@ IUSE="down-speed-100 fiber hw-acceleration hw-optim-tx +eee
+giga-lite +multi-tx
PATCHES=(
"${FILESDIR}/${P}-fix-build-with-firmware.patch"
+ "${FILESDIR}/${P}-ptp-linux-6.16.patch" # Gentoo bug 963364
)
CONFIG_CHECK="~!R8169"
diff --git a/net-misc/r8125/r8125-9.016.01.ebuild
b/net-misc/r8125/r8125-9.016.01.ebuild
index cb73bf3b96a9..440a8e79fb8f 100644
--- a/net-misc/r8125/r8125-9.016.01.ebuild
+++ b/net-misc/r8125/r8125-9.016.01.ebuild
@@ -18,6 +18,7 @@ IUSE="dash down-speed-100 fiber hw-acceleration hw-optim-tx
+eee +giga-lite +mul
PATCHES=(
"${FILESDIR}/${PN}-9.016.00-fix-build-with-firmware.patch"
+ "${FILESDIR}/${PN}-9.016.00-ptp-linux-6.16.patch" # Gentoo bug 963364
)
CONFIG_CHECK="~!R8169"
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: 2249ce8fb202011fd4e53f5bab6ecf642105944b
Author: Sam James gentoo org>
AuthorDate: Tue Sep 23 14:28:39 2025 +
Commit: Sam James gentoo org>
CommitDate: Tue Sep 23 14:28:39 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2249ce8f
net-misc/r8125: Stabilize 9.016.00 amd64, #963234
Signed-off-by: Sam James gentoo.org>
net-misc/r8125/r8125-9.016.00.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net-misc/r8125/r8125-9.016.00.ebuild
b/net-misc/r8125/r8125-9.016.00.ebuild
index 2bddc9cf84ae..e8215e86d218 100644
--- a/net-misc/r8125/r8125-9.016.00.ebuild
+++ b/net-misc/r8125/r8125-9.016.00.ebuild
@@ -12,7 +12,7 @@
SRC_URI="https://github.com/Karlson2k/r8125/releases/download/${PV}/${P}.tar.bz2
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="amd64 ~x86"
IUSE="down-speed-100 fiber hw-acceleration hw-optim-tx +eee +giga-lite
+multi-tx-q ptp +rss s5-keep-mac use-firmware +wol-s5 +wol"
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: 54d74730c6f720cdc83dea767ddf85390fd7c4f0
Author: Evgeny Grin (Karlson2k) drgrin dev>
AuthorDate: Thu Sep 4 22:40:35 2025 +
Commit: Sam James gentoo org>
CommitDate: Tue Sep 23 14:29:41 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54d74730
net-misc/r8125: add new 9.016.01 upstream version
Also add new 'dash' USE flag as upstream finally published DASH sources.
Signed-off-by: Evgeny Grin (Karlson2k) drgrin.dev>
Part-of: https://github.com/gentoo/gentoo/pull/43668
Closes: https://github.com/gentoo/gentoo/pull/43668
Signed-off-by: Sam James gentoo.org>
net-misc/r8125/Manifest | 1 +
net-misc/r8125/metadata.xml | 1 +
net-misc/r8125/r8125-9.016.01.ebuild | 63
3 files changed, 65 insertions(+)
diff --git a/net-misc/r8125/Manifest b/net-misc/r8125/Manifest
index aa5cf2759eea..160a1ffc8356 100644
--- a/net-misc/r8125/Manifest
+++ b/net-misc/r8125/Manifest
@@ -2,3 +2,4 @@ DIST r8125-9.013.02.tar.bz2 105923 BLAKE2B
0ae1a6a7ad651d30ac2ca29ab98af06c6facc
DIST r8125-9.014.01.tar.bz2 111465 BLAKE2B
ae09f27b617422e03484b10dfe7dcee14f58bc05650a80b654f9c02ba678424643575346312dae9ce327c309bf1afc575aec00e740a20fc4347c9c3bd00744ba
SHA512
a12902e3e9dc34ae999080c1971a8ec9640d62f12a5648ddca0812d93d6c411c2c270e8c6de481fef23a982e8722e8515e5a3aa5c2d84cbdb4e6fa9da730c1e2
DIST r8125-9.015.00.tar.bz2 112287 BLAKE2B
cadb5fc4fbb633a61284683d6ebb1233692fd496d2c436f7e26352193397cf8e0a23a40b5e3f00273f08ade254d61579474c21a57c5b118aceabd4d1269a2665
SHA512
3dcd3d2a9052738589dc85e7d2ecc79a41e3bd1868c58c370a21d6d6ce9acf758f53e9853fdcf0ef20c28014035ef58934145294269ce758c11e5666f526c008
DIST r8125-9.016.00.tar.bz2 122011 BLAKE2B
00ffd6d2d31c6425c9cce1b8cb6191d712c940677df9038451ff4719d8b8b243b87e2dcfd5d4f6e502ca6be285203a30fbbb9ae8b809100e3b68628b93535f84
SHA512
46d014e5d1790a1a9f184f25d1df1682970cec2f30f25429b89de2ab461639bd0b36d0d13125bd58534fd6589d96c74ec30a668b33d0d444b8ed3c4cc3b41527
+DIST r8125-9.016.01.tar.bz2 124146 BLAKE2B
0b7e55d38f716087d66dff9d7ee6ae1cff0e9a082d356c3905aae051ad248ba35c594779fefea6a69cfc1ebc80b4f903f4e48f14e08fbac9738ba6b8c8fbbd98
SHA512
698345dabf9c4aad8759618502be0f09c313793dd1b516b18be08cee7d136f90546f77c8c7da9e3f3fbef1749638524f06ae1a09f5c6058509d8d02c522538b8
diff --git a/net-misc/r8125/metadata.xml b/net-misc/r8125/metadata.xml
index 55f6f120d58f..f46205cff18c 100644
--- a/net-misc/r8125/metadata.xml
+++ b/net-misc/r8125/metadata.xml
@@ -11,6 +11,7 @@
Official Realtek r8125 vendor linux driver. This
driver supports NICs based on RTL8125 family.
+ Enable support for DMTF DASH out-of-band
system management
Reduce speed to 100 Mbps in
WOL-only modes
Enable Energy-Efficient Ethernet by
default
Enable Fiber PHY support
diff --git a/net-misc/r8125/r8125-9.016.01.ebuild
b/net-misc/r8125/r8125-9.016.01.ebuild
new file mode 100644
index ..cb73bf3b96a9
--- /dev/null
+++ b/net-misc/r8125/r8125-9.016.01.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-mod-r1
+
+DESCRIPTION="r8125 vendor driver for Realtek RTL8125 PCI-E NICs"
+HOMEPAGE="https://www.realtek.com/Download/List?cate_id=584";
+# Mirrored to avoid captcha
+SRC_URI="https://github.com/Karlson2k/r8125/releases/download/${PV}/${P}.tar.bz2";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="dash down-speed-100 fiber hw-acceleration hw-optim-tx +eee +giga-lite
+multi-tx-q ptp +rss s5-keep-mac use-firmware +wol-s5 +wol"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-9.016.00-fix-build-with-firmware.patch"
+)
+
+CONFIG_CHECK="~!R8169"
+WARNING_R8169="CONFIG_R8169 is enabled. ${PN} will not be loaded unless kernel
driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED."
+
+src_prepare() {
+ default
+
+ # Replace wrong EXTRA_CFLAGS (stopped working with kernels >= 6.15)
+ # with proper CFLAGS_MODULE (available since 2.6.36).
+ # Bug 957883
+ sed -E -i'' \
+ -e
's/(^|[^A-Za-z0-9_])EXTRA_CFLAGS([^A-Za-z0-9_]|$)/\1CFLAGS_MODULE\2/g' \
+ src/Makefile || die
+}
+
+src_compile() {
+ local modlist=( ${PN}=kernel/drivers/net/ethernet/realtek:src )
+ local modargs=(
+ # Build parameters
+ KERNELDIR="${KV_OUT_DIR}"
+ # Code build options
+ ENABLE_DASH_SUPPORT=$(usex dash y n)
+ ENABLE_FIBER_SUPPORT=$(usex fiber y n)
+ ENABLE_RSS_SUPPORT=$(usex rss y n)
+ ENABLE_MULTIPLE_TX_QUEUE=$(usex multi-tx-q y n)
+ ENABLE_USE_FIRMWARE_FILE=$(usex use-firmware y n)
+ CONFIG_DOWN_SPEED_100=$(usex down-speed-100 y n)
+ ENABLE_PTP_SUPPORT=$(usex ptp y n)
+ ENABLE_PAGE_REUSE=y
+ ENABLE_RX_PACKET_FRAGMENT
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/, net-misc/r8125/files/
commit: b1606eee4c011b550b9cf108cdd93e1b84f70caa
Author: Evgeny Grin (Karlson2k) drgrin dev>
AuthorDate: Thu Jul 3 14:37:37 2025 +
Commit: Arthur Zamarin gentoo org>
CommitDate: Sat Jul 5 15:51:39 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1606eee
net-misc/r8125: new version 9.016.00
Signed-off-by: Evgeny Grin (Karlson2k) drgrin.dev>
Part-of: https://github.com/gentoo/gentoo/pull/42852
Closes: https://github.com/gentoo/gentoo/pull/42852
Signed-off-by: Arthur Zamarin gentoo.org>
net-misc/r8125/Manifest| 1 +
.../r8125-9.016.00-fix-build-with-firmware.patch | 28 ++
net-misc/r8125/r8125-9.016.00.ebuild | 62 ++
3 files changed, 91 insertions(+)
diff --git a/net-misc/r8125/Manifest b/net-misc/r8125/Manifest
index b5d3ff64ee13..aa5cf2759eea 100644
--- a/net-misc/r8125/Manifest
+++ b/net-misc/r8125/Manifest
@@ -1,3 +1,4 @@
DIST r8125-9.013.02.tar.bz2 105923 BLAKE2B
0ae1a6a7ad651d30ac2ca29ab98af06c6facc26bfacac8ce5b51e92e8c7955c150a995c424f875a9a1cb315fe41f474ea3429cd7675ceec1ef82d454ad2bd434
SHA512
acb16992182c4c6b79357a511cfcedb53bb6513185caec91a5cb76aa41dc922e6c74099546886b32dba584d614f9bcaf36d31e40f3328b9ebc4ccd6b91296065
DIST r8125-9.014.01.tar.bz2 111465 BLAKE2B
ae09f27b617422e03484b10dfe7dcee14f58bc05650a80b654f9c02ba678424643575346312dae9ce327c309bf1afc575aec00e740a20fc4347c9c3bd00744ba
SHA512
a12902e3e9dc34ae999080c1971a8ec9640d62f12a5648ddca0812d93d6c411c2c270e8c6de481fef23a982e8722e8515e5a3aa5c2d84cbdb4e6fa9da730c1e2
DIST r8125-9.015.00.tar.bz2 112287 BLAKE2B
cadb5fc4fbb633a61284683d6ebb1233692fd496d2c436f7e26352193397cf8e0a23a40b5e3f00273f08ade254d61579474c21a57c5b118aceabd4d1269a2665
SHA512
3dcd3d2a9052738589dc85e7d2ecc79a41e3bd1868c58c370a21d6d6ce9acf758f53e9853fdcf0ef20c28014035ef58934145294269ce758c11e5666f526c008
+DIST r8125-9.016.00.tar.bz2 122011 BLAKE2B
00ffd6d2d31c6425c9cce1b8cb6191d712c940677df9038451ff4719d8b8b243b87e2dcfd5d4f6e502ca6be285203a30fbbb9ae8b809100e3b68628b93535f84
SHA512
46d014e5d1790a1a9f184f25d1df1682970cec2f30f25429b89de2ab461639bd0b36d0d13125bd58534fd6589d96c74ec30a668b33d0d444b8ed3c4cc3b41527
diff --git a/net-misc/r8125/files/r8125-9.016.00-fix-build-with-firmware.patch
b/net-misc/r8125/files/r8125-9.016.00-fix-build-with-firmware.patch
new file mode 100644
index ..1b810e549e06
--- /dev/null
+++ b/net-misc/r8125/files/r8125-9.016.00-fix-build-with-firmware.patch
@@ -0,0 +1,28 @@
+From 6a7458d6b0aec79a5f8aa30db08aea9ec1cba873 Mon Sep 17 00:00:00 2001
+From: "Evgeny Grin (Karlson2k)"
+Date: Thu, 3 Jul 2025 16:28:52 +0200
+Subject: [PATCH] Fix for building with firmware support.
+
+The fix looks reasonable, but not tested deeply.
+---
+ src/r8125_n.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/r8125_n.c b/src/r8125_n.c
+index 0b838b1..b8563bb 100644
+--- a/src/r8125_n.c
b/src/r8125_n.c
+@@ -16582,8 +16582,10 @@ rtl8125_test_phy_ocp_v5(struct rtl8125_private *tp)
+
+ rtl8125_wait_phy_state_ready(tp, HW_PHY_STATUS_INI, 500);
+
++#ifndef ENABLE_USE_FIRMWARE_FILE
+ if (tp->mcfg == CFG_METHOD_10)
+ rtl8125_set_phy_mcu_8125d_1_efuse(tp->dev);
++#endif
+
+ rtl8125_set_eth_phy_ocp_bit(tp, 0xA468, BIT_0);
+
+--
+2.49.0
+
diff --git a/net-misc/r8125/r8125-9.016.00.ebuild
b/net-misc/r8125/r8125-9.016.00.ebuild
new file mode 100644
index ..2bddc9cf84ae
--- /dev/null
+++ b/net-misc/r8125/r8125-9.016.00.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-mod-r1
+
+DESCRIPTION="r8125 vendor driver for Realtek RTL8125 PCI-E NICs"
+HOMEPAGE="https://www.realtek.com/Download/List?cate_id=584";
+# Mirrored to avoid captcha
+SRC_URI="https://github.com/Karlson2k/r8125/releases/download/${PV}/${P}.tar.bz2";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="down-speed-100 fiber hw-acceleration hw-optim-tx +eee +giga-lite
+multi-tx-q ptp +rss s5-keep-mac use-firmware +wol-s5 +wol"
+
+PATCHES=(
+ "${FILESDIR}/${P}-fix-build-with-firmware.patch"
+)
+
+CONFIG_CHECK="~!R8169"
+WARNING_R8169="CONFIG_R8169 is enabled. ${PN} will not be loaded unless kernel
driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED."
+
+src_prepare() {
+ default
+
+ # Replace wrong EXTRA_CFLAGS (stopped working with kernels >= 6.15)
+ # with proper CFLAGS_MODULE (available since 2.6.36).
+ # Bug 957883
+ sed -E -i'' \
+ -e
's/(^|[^A-Za-z0-9_])EXTRA_CFLAGS([^A-Za-z0-9_]|$)/\1CFLAGS_MODULE\2/g' \
+ src/Makefile || die
+}
+
+src_compile() {
+ local modlist=( ${PN}=kernel/drivers/net/ethernet/realtek:src )
+ local modargs=(
+ # Build parameters
+ KERNELDIR="${KV_OUT_DIR}"
+ # Code build options
+ ENABLE_FIBER_SUPPORT=$(usex fiber y n)
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: 879f3604f53ad1caa8526bf2b94ea8b30e5e2b90
Author: Evgeny Grin (Karlson2k) drgrin dev>
AuthorDate: Sun Apr 13 14:55:43 2025 +
Commit: Sam James gentoo org>
CommitDate: Thu Jun 12 11:42:06 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=879f3604
net-misc/r8125: add USE flags
This commit adds more USE flags, reflecting similar changes for r8168
driver.
Signed-off-by: Evgeny Grin (Karlson2k) drgrin.dev>
Part-of: https://github.com/gentoo/gentoo/pull/41575
Closes: https://github.com/gentoo/gentoo/pull/41575
Signed-off-by: Sam James gentoo.org>
net-misc/r8125/r8125-9.014.01-r1.ebuild | 60 +
1 file changed, 60 insertions(+)
diff --git a/net-misc/r8125/r8125-9.014.01-r1.ebuild
b/net-misc/r8125/r8125-9.014.01-r1.ebuild
new file mode 100644
index ..87ca1a08b6c2
--- /dev/null
+++ b/net-misc/r8125/r8125-9.014.01-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-mod-r1
+
+DESCRIPTION="r8125 vendor driver for Realtek RTL8125 PCI-E NICs"
+HOMEPAGE="https://www.realtek.com/Download/List?cate_id=584";
+# Mirrored to avoid captcha
+SRC_URI="https://github.com/Karlson2k/r8125/releases/download/${PV}/${P}.tar.bz2";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="down-speed-100 hw-acceleration hw-optim-tx +eee +multi-tx-q ptp +rss
s5-keep-mac use-firmware +wol-s5 +wol"
+
+PATCHES=(
+ "${FILESDIR}/${P}-ptp-linux-6.11.patch"
+)
+
+CONFIG_CHECK="~!R8169"
+WARNING_R8169="CONFIG_R8169 is enabled. ${PN} will not be loaded unless kernel
driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED."
+
+src_prepare() {
+ default
+
+ # Replace wrong EXTRA_CFLAGS (stopped working with kernels >= 6.15)
+ # with proper CFLAGS_MODULE (available since 2.6.36).
+ # Bug 957883
+ sed -E -i'' \
+ -e
's/(^|[^A-Za-z0-9_])EXTRA_CFLAGS([^A-Za-z0-9_]|$)/\1CFLAGS_MODULE\2/g' \
+ src/Makefile || die
+}
+
+src_compile() {
+ local modlist=( ${PN}=kernel/drivers/net/ethernet/realtek:src )
+ local modargs=(
+ # Build parameters
+ KERNELDIR="${KV_OUT_DIR}"
+ # Code build options
+ ENABLE_RSS_SUPPORT=$(usex rss y n)
+ ENABLE_MULTIPLE_TX_QUEUE=$(usex multi-tx-q y n)
+ ENABLE_USE_FIRMWARE_FILE=$(usex use-firmware y n)
+ CONFIG_DOWN_SPEED_100=$(usex down-speed-100 y n)
+ ENABLE_PTP_SUPPORT=$(usex ptp y n)
+ ENABLE_PAGE_REUSE=y
+ ENABLE_RX_PACKET_FRAGMENT=y
+ # Driver defaults
+ CONFIG_SOC_LAN=$(usex hw-acceleration y n)
+ ENABLE_TX_NO_CLOSE=$(usex hw-optim-tx y n)
+ ENABLE_EEE=$(usex eee y n)
+ DISABLE_WOL_SUPPORT=$(usex wol n y)
+ ENABLE_S5WOL=$(usex wol-s5 y n)
+ ENABLE_S5_KEEP_CURR_MAC=$(usex s5-keep-mac y n)
+ )
+
+ linux-mod-r1_src_compile
+}
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: 3921fd954ea1d486b1b6383890e740084e27e6b6
Author: Evgeny Grin (Karlson2k) drgrin dev>
AuthorDate: Sat May 31 22:47:15 2025 +
Commit: Sam James gentoo org>
CommitDate: Thu Jun 12 11:33:43 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3921fd95
net-misc/r8125: new upstream version 9.015.00
Signed-off-by: Evgeny Grin (Karlson2k) drgrin.dev>
Part-of: https://github.com/gentoo/gentoo/pull/42377
Closes: https://github.com/gentoo/gentoo/pull/42377
Signed-off-by: Sam James gentoo.org>
net-misc/r8125/Manifest | 1 +
net-misc/r8125/metadata.xml | 11 ++-
net-misc/r8125/r8125-9.015.00.ebuild | 62
3 files changed, 73 insertions(+), 1 deletion(-)
diff --git a/net-misc/r8125/Manifest b/net-misc/r8125/Manifest
index 786e4afeddcd..b5d3ff64ee13 100644
--- a/net-misc/r8125/Manifest
+++ b/net-misc/r8125/Manifest
@@ -1,2 +1,3 @@
DIST r8125-9.013.02.tar.bz2 105923 BLAKE2B
0ae1a6a7ad651d30ac2ca29ab98af06c6facc26bfacac8ce5b51e92e8c7955c150a995c424f875a9a1cb315fe41f474ea3429cd7675ceec1ef82d454ad2bd434
SHA512
acb16992182c4c6b79357a511cfcedb53bb6513185caec91a5cb76aa41dc922e6c74099546886b32dba584d614f9bcaf36d31e40f3328b9ebc4ccd6b91296065
DIST r8125-9.014.01.tar.bz2 111465 BLAKE2B
ae09f27b617422e03484b10dfe7dcee14f58bc05650a80b654f9c02ba678424643575346312dae9ce327c309bf1afc575aec00e740a20fc4347c9c3bd00744ba
SHA512
a12902e3e9dc34ae999080c1971a8ec9640d62f12a5648ddca0812d93d6c411c2c270e8c6de481fef23a982e8722e8515e5a3aa5c2d84cbdb4e6fa9da730c1e2
+DIST r8125-9.015.00.tar.bz2 112287 BLAKE2B
cadb5fc4fbb633a61284683d6ebb1233692fd496d2c436f7e26352193397cf8e0a23a40b5e3f00273f08ade254d61579474c21a57c5b118aceabd4d1269a2665
SHA512
3dcd3d2a9052738589dc85e7d2ecc79a41e3bd1868c58c370a21d6d6ce9acf758f53e9853fdcf0ef20c28014035ef58934145294269ce758c11e5666f526c008
diff --git a/net-misc/r8125/metadata.xml b/net-misc/r8125/metadata.xml
index dfeac4126777..55f6f120d58f 100644
--- a/net-misc/r8125/metadata.xml
+++ b/net-misc/r8125/metadata.xml
@@ -11,9 +11,18 @@
Official Realtek r8125 vendor linux driver. This
driver supports NICs based on RTL8125 family.
+ Reduce speed to 100 Mbps in
WOL-only modes
+ Enable Energy-Efficient Ethernet by
default
+ Enable Fiber PHY support
+ Enable support of "Giga Lite"
(500 Mbps over just two CAT5 pairs) by default
+ Enable use of hardware
acceleration by default. HW acceleration may cause problems on Realtek
NICs!
+ Enable hardware optimised TX ("TX
No Close" driver option) by default
Enable Multiple Tx Queue ("RSS"
for sending)
Enable Precision Time Protocol support
Enable Receive Side Scaling (RSS)
- Support automatic firmware
loading
+ Keep set MAC address in S5 (switched
off) by default
+ Enable support for automatic firmware
loading
+ Enable Wake-On-LAN by default
+ Enable start from S5 (switched off) by
Wake-On-LAN by default
diff --git a/net-misc/r8125/r8125-9.015.00.ebuild
b/net-misc/r8125/r8125-9.015.00.ebuild
new file mode 100644
index ..111e30ae9bc6
--- /dev/null
+++ b/net-misc/r8125/r8125-9.015.00.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-mod-r1
+
+DESCRIPTION="r8125 vendor driver for Realtek RTL8125 PCI-E NICs"
+HOMEPAGE="https://www.realtek.com/Download/List?cate_id=584";
+# Mirrored to avoid captcha
+SRC_URI="https://github.com/Karlson2k/r8125/releases/download/${PV}/${P}.tar.bz2";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="down-speed-100 +fiber hw-acceleration hw-optim-tx +eee +giga-lite
+multi-tx-q ptp +rss s5-keep-mac use-firmware +wol-s5 +wol"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-9.014.01-ptp-linux-6.11.patch"
+)
+
+CONFIG_CHECK="~!R8169"
+WARNING_R8169="CONFIG_R8169 is enabled. ${PN} will not be loaded unless kernel
driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED."
+
+src_prepare() {
+ default
+
+ # Replace wrong EXTRA_CFLAGS (stopped working with kernels >= 6.15)
+ # with proper CFLAGS_MODULE (available since 2.6.36).
+ # Bug 957883
+ sed -E -i'' \
+ -e
's/(^|[^A-Za-z0-9_])EXTRA_CFLAGS([^A-Za-z0-9_]|$)/\1CFLAGS_MODULE\2/g' \
+ src/Makefile || die
+}
+
+src_compile() {
+ local modlist=( ${PN}=kernel/drivers/net/ethernet/realtek:src )
+ local modargs=(
+ # Build parameters
+ KERNELDIR="${KV_OUT_DIR}"
+ # Code build options
+ ENABLE_FIBER_SUPPORT=$(usex fiber y n)
+ ENABLE_RSS_SUPPORT=$(usex rss y n)
+ ENABLE_MULTIPLE_TX_QUEUE=$(usex multi-tx-q y n)
+ ENABLE_USE_FIRMWARE_FILE=$(usex use-firmware
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: 84b00f370a9c8cd4ad26a1757200e106768469d0
Author: Evgeny Grin (Karlson2k) drgrin dev>
AuthorDate: Thu Jun 12 08:32:37 2025 +
Commit: Sam James gentoo org>
CommitDate: Thu Jun 12 11:33:34 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84b00f37
net-misc/r8125: fixed build with kernel >=6.15
Closes: https://bugs.gentoo.org/957883
Signed-off-by: Evgeny Grin (Karlson2k) drgrin.dev>
Part-of: https://github.com/gentoo/gentoo/pull/42556
Closes: https://github.com/gentoo/gentoo/pull/42556
Signed-off-by: Sam James gentoo.org>
net-misc/r8125/r8125-9.013.02-r1.ebuild | 13 -
net-misc/r8125/r8125-9.014.01.ebuild| 11 +++
2 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/net-misc/r8125/r8125-9.013.02-r1.ebuild
b/net-misc/r8125/r8125-9.013.02-r1.ebuild
index 37bb1267d83b..58cb8135aa04 100644
--- a/net-misc/r8125/r8125-9.013.02-r1.ebuild
+++ b/net-misc/r8125/r8125-9.013.02-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -19,6 +19,17 @@ IUSE="+multi-tx-q ptp +rss use-firmware"
CONFIG_CHECK="~!R8169"
WARNING_R8169="CONFIG_R8169 is enabled. ${PN} will not be loaded unless kernel
driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED."
+src_prepare() {
+ default
+
+ # Replace wrong EXTRA_CFLAGS (stopped working with kernels >= 6.15)
+ # with proper CFLAGS_MODULE (available since 2.6.36).
+ # Bug 957883
+ sed -E -i'' \
+ -e
's/(^|[^A-Za-z0-9_])EXTRA_CFLAGS([^A-Za-z0-9_]|$)/\1CFLAGS_MODULE\2/g' \
+ src/Makefile || die
+}
+
src_compile() {
local modlist=( ${PN}=kernel/drivers/net/ethernet/realtek:src )
local modargs=(
diff --git a/net-misc/r8125/r8125-9.014.01.ebuild
b/net-misc/r8125/r8125-9.014.01.ebuild
index c03c4b4de53e..5dc53cd5e0a9 100644
--- a/net-misc/r8125/r8125-9.014.01.ebuild
+++ b/net-misc/r8125/r8125-9.014.01.ebuild
@@ -23,6 +23,17 @@ PATCHES=(
CONFIG_CHECK="~!R8169"
WARNING_R8169="CONFIG_R8169 is enabled. ${PN} will not be loaded unless kernel
driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED."
+src_prepare() {
+ default
+
+ # Replace wrong EXTRA_CFLAGS (stopped working with kernels >= 6.15)
+ # with proper CFLAGS_MODULE (available since 2.6.36).
+ # Bug 957883
+ sed -E -i'' \
+ -e
's/(^|[^A-Za-z0-9_])EXTRA_CFLAGS([^A-Za-z0-9_]|$)/\1CFLAGS_MODULE\2/g' \
+ src/Makefile || die
+}
+
src_compile() {
local modlist=( ${PN}=kernel/drivers/net/ethernet/realtek:src )
local modargs=(
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: dfa563137441a9e486b1096ba7475eed09a6527a
Author: Joonas Niilola gentoo org>
AuthorDate: Sat May 10 05:36:29 2025 +
Commit: Joonas Niilola gentoo org>
CommitDate: Sat May 10 05:36:29 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfa56313
net-misc/r8125: Stabilize 9.014.01 x86, #954927
Signed-off-by: Joonas Niilola gentoo.org>
net-misc/r8125/r8125-9.014.01.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net-misc/r8125/r8125-9.014.01.ebuild
b/net-misc/r8125/r8125-9.014.01.ebuild
index 49ccf8f00195..c03c4b4de53e 100644
--- a/net-misc/r8125/r8125-9.014.01.ebuild
+++ b/net-misc/r8125/r8125-9.014.01.ebuild
@@ -12,7 +12,7 @@
SRC_URI="https://github.com/Karlson2k/r8125/releases/download/${PV}/${P}.tar.bz2
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="amd64 ~x86"
+KEYWORDS="amd64 x86"
IUSE="+multi-tx-q ptp +rss use-firmware"
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: c32edc2102d45e0f0f262d524ddb8ad927e0955d
Author: Karlson2k (Evgeny Grin) narod ru>
AuthorDate: Sat Nov 23 06:40:55 2024 +
Commit: Eli Schwartz gentoo org>
CommitDate: Tue Nov 26 05:00:51 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c32edc21
net-misc/r8125: drop 9.013.02
This ebuild has been replaced with fixed version 9.013.02-r1.
Signed-off-by: Karlson2k (Evgeny Grin) narod.ru>
Closes: https://github.com/gentoo/gentoo/pull/39423
Signed-off-by: Eli Schwartz gentoo.org>
net-misc/r8125/r8125-9.013.02.ebuild | 37
1 file changed, 37 deletions(-)
diff --git a/net-misc/r8125/r8125-9.013.02.ebuild
b/net-misc/r8125/r8125-9.013.02.ebuild
deleted file mode 100644
index f331c3c35866..
--- a/net-misc/r8125/r8125-9.013.02.ebuild
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit linux-mod-r1
-
-DESCRIPTION="r8125 vendor driver for Realtek RTL8125 PCI-E NICs"
-HOMEPAGE="https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software";
-# Mirrored to avoid captcha
-SRC_URI="https://github.com/Karlson2k/r8125/releases/download/${PV}/${P}.tar.bz2";
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 x86"
-
-IUSE="+multi-tx-q ptp +rss use-firmware"
-
-CONFIG_CHECK="~!R8169"
-WARNING_R8169="CONFIG_R8169 is enabled. ${PN} will not be loaded unless kernel
driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED."
-
-src_compile() {
- local modlist=( ${PN}=kernel/drivers/net/ethernet/realtek:src )
- local modargs=(
- # Build parameters
- KERNELDIR="${KV_OUT_DIR}"
- # Configuration settings
- ENABLE_PTP_SUPPORT=$(usex ptp y n)
- ENABLE_RSS_SUPPORT=$(usex rss y n)
- ENABLE_MULTIPLE_TX_QUEUE=$(usex multi-tx-q y n)
- ENABLE_USE_FIRMWARE_FILE=$(usex use-firmware y n)
- ENABLE_PAGE_REUSE=$(usex ptp n y) # Not compatible with PTP
- ENABLE_RX_PACKET_FRAGMENT=$(usex ptp n y) # Not compatible with
PTP
- )
-
- linux-mod-r1_src_compile
-}
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/files/, net-misc/r8125/
commit: c93671f1eeef8d82264e4229ffb221d95b0a4092
Author: Karlson2k (Evgeny Grin) narod ru>
AuthorDate: Sun Nov 24 07:52:54 2024 +
Commit: Joonas Niilola gentoo org>
CommitDate: Sun Nov 24 08:16:15 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c93671f1
net-misc/r8125: fix for kernels 6.9-6.10
Previously patch was incorrectly used for kernels >=6.9, while it should be
used only for kernels >= 6.11
Signed-off-by: Karlson2k (Evgeny Grin) narod.ru>
Closes: https://github.com/gentoo/gentoo/pull/39442
Signed-off-by: Joonas Niilola gentoo.org>
...tp-linux-6.9.patch => r8125-9.014.01-ptp-linux-6.11.patch} | 11 +--
net-misc/r8125/r8125-9.014.01.ebuild | 2 +-
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/net-misc/r8125/files/r8125-9.014.01-ptp-linux-6.9.patch
b/net-misc/r8125/files/r8125-9.014.01-ptp-linux-6.11.patch
similarity index 86%
rename from net-misc/r8125/files/r8125-9.014.01-ptp-linux-6.9.patch
rename to net-misc/r8125/files/r8125-9.014.01-ptp-linux-6.11.patch
index 775e8eef2f85..294f8ba0ef4f 100644
--- a/net-misc/r8125/files/r8125-9.014.01-ptp-linux-6.9.patch
+++ b/net-misc/r8125/files/r8125-9.014.01-ptp-linux-6.11.patch
@@ -1,7 +1,7 @@
-From 0da7d93621651788505c3670890ee32c6619ddcd Mon Sep 17 00:00:00 2001
+From 2c3c008b5ee7bc87fc8f146b787533c334fa3cf9 Mon Sep 17 00:00:00 2001
From: Evgeny Grin
-Date: Sat, 23 Nov 2024 13:34:45 +0300
-Subject: [PATCH] Fixed missing changes for PTP on kernels >= 6.9
+Date: Sun, 24 Nov 2024 10:44:00 +0300
+Subject: [PATCH] Fixed missing changes for PTP on kernels >= 6.11
---
src/r8125_ptp.h | 9 -
@@ -9,7 +9,7 @@ Subject: [PATCH] Fixed missing changes for PTP on kernels >= 6.9
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/r8125_ptp.h b/src/r8125_ptp.h
-index b24136a..50c0e50 100644
+index b24136a..ca137b1 100644
--- a/src/r8125_ptp.h
+++ b/src/r8125_ptp.h
@@ -35,12 +35,19 @@
@@ -23,7 +23,7 @@ index b24136a..50c0e50 100644
#include
#include
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,9,0)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
+# define rtl_ethtool_ts_info ethtool_ts_info
+#else
+# define rtl_ethtool_ts_info kernel_ethtool_ts_info
@@ -56,4 +56,3 @@ index 812fced..02a6e41 100644
--
2.47.0.windows.2
-
diff --git a/net-misc/r8125/r8125-9.014.01.ebuild
b/net-misc/r8125/r8125-9.014.01.ebuild
index 85c5c355be29..982f68d8b27d 100644
--- a/net-misc/r8125/r8125-9.014.01.ebuild
+++ b/net-misc/r8125/r8125-9.014.01.ebuild
@@ -17,7 +17,7 @@ KEYWORDS="~amd64 ~x86"
IUSE="+multi-tx-q ptp +rss use-firmware"
PATCHES=(
- "${FILESDIR}/${P}-ptp-linux-6.9.patch"
+ "${FILESDIR}/${P}-ptp-linux-6.11.patch"
)
CONFIG_CHECK="~!R8169"
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/files/, net-misc/r8125/
commit: 997db16d225880b5762b5fa2e68a8665a6be8c50
Author: Karlson2k (Evgeny Grin) narod ru>
AuthorDate: Fri Nov 8 16:16:53 2024 +
Commit: Joonas Niilola gentoo org>
CommitDate: Sun Nov 24 07:30:08 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=997db16d
net-misc/r8125: new upstream version 9.014.01
Closes: https://bugs.gentoo.org/933359
Signed-off-by: Karlson2k (Evgeny Grin) narod.ru>
Closes: https://github.com/gentoo/gentoo/pull/39243
Signed-off-by: Joonas Niilola gentoo.org>
net-misc/r8125/Manifest| 1 +
.../r8125/files/r8125-9.014.01-ptp-linux-6.9.patch | 59 ++
net-misc/r8125/metadata.xml| 3 +-
net-misc/r8125/r8125-9.014.01.ebuild | 41 +++
4 files changed, 102 insertions(+), 2 deletions(-)
diff --git a/net-misc/r8125/Manifest b/net-misc/r8125/Manifest
index dfd10434a30c..786e4afeddcd 100644
--- a/net-misc/r8125/Manifest
+++ b/net-misc/r8125/Manifest
@@ -1 +1,2 @@
DIST r8125-9.013.02.tar.bz2 105923 BLAKE2B
0ae1a6a7ad651d30ac2ca29ab98af06c6facc26bfacac8ce5b51e92e8c7955c150a995c424f875a9a1cb315fe41f474ea3429cd7675ceec1ef82d454ad2bd434
SHA512
acb16992182c4c6b79357a511cfcedb53bb6513185caec91a5cb76aa41dc922e6c74099546886b32dba584d614f9bcaf36d31e40f3328b9ebc4ccd6b91296065
+DIST r8125-9.014.01.tar.bz2 111465 BLAKE2B
ae09f27b617422e03484b10dfe7dcee14f58bc05650a80b654f9c02ba678424643575346312dae9ce327c309bf1afc575aec00e740a20fc4347c9c3bd00744ba
SHA512
a12902e3e9dc34ae999080c1971a8ec9640d62f12a5648ddca0812d93d6c411c2c270e8c6de481fef23a982e8722e8515e5a3aa5c2d84cbdb4e6fa9da730c1e2
diff --git a/net-misc/r8125/files/r8125-9.014.01-ptp-linux-6.9.patch
b/net-misc/r8125/files/r8125-9.014.01-ptp-linux-6.9.patch
new file mode 100644
index ..775e8eef2f85
--- /dev/null
+++ b/net-misc/r8125/files/r8125-9.014.01-ptp-linux-6.9.patch
@@ -0,0 +1,59 @@
+From 0da7d93621651788505c3670890ee32c6619ddcd Mon Sep 17 00:00:00 2001
+From: Evgeny Grin
+Date: Sat, 23 Nov 2024 13:34:45 +0300
+Subject: [PATCH] Fixed missing changes for PTP on kernels >= 6.9
+
+---
+ src/r8125_ptp.h | 9 -
+ src/r8125_ptp.c | 2 +-
+ 2 files changed, 9 insertions(+), 2 deletions(-)
+
+diff --git a/src/r8125_ptp.h b/src/r8125_ptp.h
+index b24136a..50c0e50 100644
+--- a/src/r8125_ptp.h
b/src/r8125_ptp.h
+@@ -35,12 +35,19 @@
+ #ifndef _LINUX_rtl8125_PTP_H
+ #define _LINUX_rtl8125_PTP_H
+
++#include
+ #include
+ #include
+ #include
+ #include
+ #include
+
++#if LINUX_VERSION_CODE < KERNEL_VERSION(6,9,0)
++# define rtl_ethtool_ts_info ethtool_ts_info
++#else
++# define rtl_ethtool_ts_info kernel_ethtool_ts_info
++#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(6,9,0) */
++
+ struct rtl8125_ptp_info {
+ s64 time_sec;
+ u32 time_ns;
+@@ -66,7 +73,7 @@ struct rtl8125_private;
+ struct RxDescV3;
+
+ int rtl8125_get_ts_info(struct net_device *netdev,
+-struct ethtool_ts_info *info);
++struct rtl_ethtool_ts_info *info);
+
+ void rtl8125_ptp_reset(struct rtl8125_private *tp);
+ void rtl8125_ptp_init(struct rtl8125_private *tp);
+diff --git a/src/r8125_ptp.c b/src/r8125_ptp.c
+index 812fced..02a6e41 100644
+--- a/src/r8125_ptp.c
b/src/r8125_ptp.c
+@@ -304,7 +304,7 @@ static int rtl8125_phc_enable(struct ptp_clock_info *ptp,
+ }
+
+ int rtl8125_get_ts_info(struct net_device *netdev,
+-struct ethtool_ts_info *info)
++struct rtl_ethtool_ts_info *info)
+ {
+ struct rtl8125_private *tp = netdev_priv(netdev);
+
+--
+2.47.0.windows.2
+
diff --git a/net-misc/r8125/metadata.xml b/net-misc/r8125/metadata.xml
index a0cb8723713f..dfeac4126777 100644
--- a/net-misc/r8125/metadata.xml
+++ b/net-misc/r8125/metadata.xml
@@ -9,8 +9,7 @@
[email protected]
Proxy Maintainers
- Official Realtek r8125 vendor linux driver. The
following cards are currently supported:
-RTL8125 RTL8125A RTL8125B(S)(G)
+ Official Realtek r8125 vendor linux driver. This
driver supports NICs based on RTL8125 family.
Enable Multiple Tx Queue ("RSS"
for sending)
Enable Precision Time Protocol support
diff --git a/net-misc/r8125/r8125-9.014.01.ebuild
b/net-misc/r8125/r8125-9.014.01.ebuild
new file mode 100644
index ..85c5c355be29
--- /dev/null
+++ b/net-misc/r8125/r8125-9.014.01.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-mod-r1
+
+DESCRIPTION="r8125 vendor driver for Realtek RTL8125 PCI-E NICs"
+HOMEPAGE="https://www.realtek.com/Download/List?cate_id=584";
+# Mirrored to avoid captcha
+SRC_URI="https://github.com/Karlson2k/r8125/releases/download/${PV}/${P}.tar.bz2";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="+multi-tx-q ptp +rss use-firmware"
+
+PA
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: d7beeb979ec31a92f5682ac184461ddae23769f8
Author: Joonas Niilola gentoo org>
AuthorDate: Fri Nov 22 15:39:52 2024 +
Commit: Joonas Niilola gentoo org>
CommitDate: Fri Nov 22 15:40:17 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7beeb97
net-misc/r8125: Stabilize 9.013.02-r1 x86, #943032
Signed-off-by: Joonas Niilola gentoo.org>
net-misc/r8125/r8125-9.013.02-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net-misc/r8125/r8125-9.013.02-r1.ebuild
b/net-misc/r8125/r8125-9.013.02-r1.ebuild
index d5d297847ac2..37bb1267d83b 100644
--- a/net-misc/r8125/r8125-9.013.02-r1.ebuild
+++ b/net-misc/r8125/r8125-9.013.02-r1.ebuild
@@ -12,7 +12,7 @@
SRC_URI="https://github.com/Karlson2k/r8125/releases/download/${PV}/${P}.tar.bz2
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="amd64 ~x86"
+KEYWORDS="amd64 x86"
IUSE="+multi-tx-q ptp +rss use-firmware"
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: d726b4dea6af7508f0b2f428a686147328e52d4c
Author: Joonas Niilola gentoo org>
AuthorDate: Fri Nov 22 15:39:17 2024 +
Commit: Joonas Niilola gentoo org>
CommitDate: Fri Nov 22 15:40:17 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d726b4de
net-misc/r8125: Stabilize 9.013.02-r1 amd64, #943032
Signed-off-by: Joonas Niilola gentoo.org>
net-misc/r8125/r8125-9.013.02-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net-misc/r8125/r8125-9.013.02-r1.ebuild
b/net-misc/r8125/r8125-9.013.02-r1.ebuild
index 9c0cdfaa93f8..d5d297847ac2 100644
--- a/net-misc/r8125/r8125-9.013.02-r1.ebuild
+++ b/net-misc/r8125/r8125-9.013.02-r1.ebuild
@@ -12,7 +12,7 @@
SRC_URI="https://github.com/Karlson2k/r8125/releases/download/${PV}/${P}.tar.bz2
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="amd64 ~x86"
IUSE="+multi-tx-q ptp +rss use-firmware"
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/, net-misc/r8125/files/
commit: ea7d391e6ddcf0bd579ed5ed8d954d8285639039
Author: Andreas K. Hüttel gentoo org>
AuthorDate: Fri Nov 1 14:54:17 2024 +
Commit: Andreas K. Hüttel gentoo org>
CommitDate: Fri Nov 1 15:41:06 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea7d391e
net-misc/r8125: drop versions
Bug: https://bugs.gentoo.org/928303
Signed-off-by: Andreas K. Hüttel gentoo.org>
net-misc/r8125/Manifest| 4 -
.../r8125/files/r8125-9.008.00-linux-5.17.patch| 115 -
.../r8125/files/r8125-9.008.00-linux-5.18.patch| 31 --
.../r8125/files/r8125-9.009.01-linux-5.19.patch| 35 ---
.../r8125/files/r8125-9.011.00-linux-6.1.patch | 28 -
.../r8125/files/r8125-9.011.01-linux-6.2.patch | 42
net-misc/r8125/r8125-9.008.00-r1.ebuild| 45
net-misc/r8125/r8125-9.009.01-r1.ebuild| 42
net-misc/r8125/r8125-9.009.02-r1.ebuild| 40 ---
net-misc/r8125/r8125-9.011.01-r1.ebuild| 41
10 files changed, 423 deletions(-)
diff --git a/net-misc/r8125/Manifest b/net-misc/r8125/Manifest
index e6a6b380d23b..dfd10434a30c 100644
--- a/net-misc/r8125/Manifest
+++ b/net-misc/r8125/Manifest
@@ -1,5 +1 @@
-DIST r8125-9.008.00.tar.bz2 89622 BLAKE2B
d1106086d1bca53484f8536072cddd506087b5d49983cbb91e921e86674c074b38c8a01cb51d2ea5793d8ffbff6e97ab05e48720ff00a805c4096a1d62a0cc30
SHA512
ff740a49fcc94b3de826f6299c489ed3f92ba9123ca2b2fe3c9035eecd16d518b6a4e6c2fa2531bb670c52097a52a0fb2fdf71b721efb20c83bb59d94d99c6c6
-DIST r8125-9.009.01.tar.bz2 89897 BLAKE2B
65f64f504cedc7244bdae10fd1638e031eb103f562cd71d32b5f36b15541704086df8cea16829b289e8be61bacf3de559616884d1672a4d6b8e47211816de8d3
SHA512
8b717447e2048df0d88d8350da2edb58f704e893498fbebea4aa2a3ac45ea050d70e73e78d41ab94562228b9c01e6fe59810c501c5bb880db446c05b9b6aee0d
-DIST r8125-9.009.02.tar.bz2 89916 BLAKE2B
2dd8ad226f8ad9dd4e6646cdce66f0c12a6a657aa39c6e91892f410780ed245046fc94f247939958db7b950aa045e011716ecd7f6ebb6099ca3d9ffc54cfd0de
SHA512
29bfe60410727f09b004f172e5046292eff511dfca5af8a21c24719e4068925103ba12af0ce808316ef206b329ce886693e7330c1c68d8e77fc50ab40bd7dcfe
-DIST r8125-9.011.01.tar.bz2 97867 BLAKE2B
0981c71795d3e839b97f7b41dbaddcc0743676c6bd0b656258e6e9b2e0879128ae4869e9ab3ab837d0ae10eb8c963177c3779b4e4a69d8a5c3d95b7b8d54f9c5
SHA512
833199cc0ce8179ef93c202fc89d4c4368b73e9515d1ef2550ebb209243dd2c8943aa9f267903d8fa21c46304b7703410f1c354d4ce1b6f6aee7ece97017dba2
DIST r8125-9.013.02.tar.bz2 105923 BLAKE2B
0ae1a6a7ad651d30ac2ca29ab98af06c6facc26bfacac8ce5b51e92e8c7955c150a995c424f875a9a1cb315fe41f474ea3429cd7675ceec1ef82d454ad2bd434
SHA512
acb16992182c4c6b79357a511cfcedb53bb6513185caec91a5cb76aa41dc922e6c74099546886b32dba584d614f9bcaf36d31e40f3328b9ebc4ccd6b91296065
diff --git a/net-misc/r8125/files/r8125-9.008.00-linux-5.17.patch
b/net-misc/r8125/files/r8125-9.008.00-linux-5.17.patch
deleted file mode 100644
index 1a4afdb31bea..
--- a/net-misc/r8125/files/r8125-9.008.00-linux-5.17.patch
+++ /dev/null
@@ -1,115 +0,0 @@
-Added compatibility with Linux Kernel 5.17+.
-
-Author: Karlson2k (Evgeny Grin)
-Gentoo bug: https://bugs.gentoo.org/839282
-
-diff --git a/src/r8125_n.c b/src/r8125_n.c
a/src/r8125_n.c
-+++ b/src/r8125_n.c
-@@ -349,7 +349,7 @@ static int rtl8125_change_mtu(struct net_device *dev, int
new_mtu);
- static void rtl8125_down(struct net_device *dev);
-
- static int rtl8125_set_mac_address(struct net_device *dev, void *p);
--static void rtl8125_rar_set(struct rtl8125_private *tp, uint8_t *addr);
-+static void rtl8125_rar_set(struct rtl8125_private *tp, const uint8_t *addr);
- static void rtl8125_desc_addr_fill(struct rtl8125_private *);
- static void rtl8125_tx_desc_init(struct rtl8125_private *tp);
- static void rtl8125_rx_desc_init(struct rtl8125_private *tp);
-@@ -1750,7 +1750,13 @@ static void rtl8125_proc_module_init(void)
- static int rtl8125_proc_open(struct inode *inode, struct file *file)
- {
- struct net_device *dev = proc_get_parent_data(inode);
--int (*show)(struct seq_file *, void *) = PDE_DATA(inode);
-+int (*show)(struct seq_file *, void *) =
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,17,0)
-+PDE_DATA(inode);
-+#else
-+pde_data(inode);
-+#endif
-+
-
- return single_open(file, show, dev);
- }
-@@ -5234,8 +5240,15 @@ rtl8125_set_ring_size(struct rtl8125_private *tp, u32
rx, u32 tx)
- }
-
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,17,0)
- static void rtl8125_get_ringparam(struct net_device *dev,
- struct ethtool_ringparam *ring)
-+#else
-+static void rtl8125_get_ringparam(struct net_device* dev,
-+ struct ethtool_ringparam* ring,
-+ struct kernel_ethtool_ringparam*
kernel_ring,
-+ struc
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: 6e2f6420737a085774f8da85fecfbee056df45b3 Author: Sam James gentoo org> AuthorDate: Wed May 22 17:16:30 2024 + Commit: Sam James gentoo org> CommitDate: Wed May 22 17:30:30 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e2f6420 net-misc/r8125: crank copyright Signed-off-by: Sam James gentoo.org> net-misc/r8125/r8125-9.013.02-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-misc/r8125/r8125-9.013.02-r1.ebuild b/net-misc/r8125/r8125-9.013.02-r1.ebuild index 56829dd9ebd5..9c0cdfaa93f8 100644 --- a/net-misc/r8125/r8125-9.013.02-r1.ebuild +++ b/net-misc/r8125/r8125-9.013.02-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: 7ddbe4653c28dc3bd082308bf1818137debb5b3c
Author: Karlson2k (Evgeny Grin) narod ru>
AuthorDate: Wed May 22 10:30:51 2024 +
Commit: Sam James gentoo org>
CommitDate: Wed May 22 17:08:10 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ddbe465
net-misc/r8125: improve setting for 'ptp' USE flag
The upstream fixed compatibility of various build flags, there is no
need anymore to disable some features, when PTP is enabled.
Also update the upstream homepage URL.
Signed-off-by: Karlson2k (Evgeny Grin) narod.ru>
Closes: https://github.com/gentoo/gentoo/pull/36771
Signed-off-by: Sam James gentoo.org>
net-misc/r8125/r8125-9.013.02-r1.ebuild | 37 +
1 file changed, 37 insertions(+)
diff --git a/net-misc/r8125/r8125-9.013.02-r1.ebuild
b/net-misc/r8125/r8125-9.013.02-r1.ebuild
new file mode 100644
index ..56829dd9ebd5
--- /dev/null
+++ b/net-misc/r8125/r8125-9.013.02-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-mod-r1
+
+DESCRIPTION="r8125 vendor driver for Realtek RTL8125 PCI-E NICs"
+HOMEPAGE="https://www.realtek.com/Download/List?cate_id=584";
+# Mirrored to avoid captcha
+SRC_URI="https://github.com/Karlson2k/r8125/releases/download/${PV}/${P}.tar.bz2";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="+multi-tx-q ptp +rss use-firmware"
+
+CONFIG_CHECK="~!R8169"
+WARNING_R8169="CONFIG_R8169 is enabled. ${PN} will not be loaded unless kernel
driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED."
+
+src_compile() {
+ local modlist=( ${PN}=kernel/drivers/net/ethernet/realtek:src )
+ local modargs=(
+ # Build parameters
+ KERNELDIR="${KV_OUT_DIR}"
+ # Configuration settings
+ ENABLE_PTP_SUPPORT=$(usex ptp y n)
+ ENABLE_RSS_SUPPORT=$(usex rss y n)
+ ENABLE_MULTIPLE_TX_QUEUE=$(usex multi-tx-q y n)
+ ENABLE_USE_FIRMWARE_FILE=$(usex use-firmware y n)
+ ENABLE_PAGE_REUSE=y
+ ENABLE_RX_PACKET_FRAGMENT=y
+ )
+
+ linux-mod-r1_src_compile
+}
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: 82798ecb788646dabc394df2c6066c257cb3a826
Author: Karlson2k (Evgeny Grin) narod ru>
AuthorDate: Tue Apr 16 16:54:32 2024 +
Commit: Yixun Lan gentoo org>
CommitDate: Thu Apr 18 10:48:30 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82798ecb
net-misc/r8125: new upstream version 9.013.02
Bug: https://bugs.gentoo.org/928293
Bug: https://bugs.gentoo.org/928303
Closes: https://github.com/gentoo/gentoo/pull/36281
Signed-off-by: Karlson2k (Evgeny Grin) narod.ru>
Signed-off-by: Yixun Lan gentoo.org>
net-misc/r8125/Manifest | 1 +
net-misc/r8125/r8125-9.013.02.ebuild | 37
2 files changed, 38 insertions(+)
diff --git a/net-misc/r8125/Manifest b/net-misc/r8125/Manifest
index 81aa650817b3..e6a6b380d23b 100644
--- a/net-misc/r8125/Manifest
+++ b/net-misc/r8125/Manifest
@@ -2,3 +2,4 @@ DIST r8125-9.008.00.tar.bz2 89622 BLAKE2B
d1106086d1bca53484f8536072cddd506087b5
DIST r8125-9.009.01.tar.bz2 89897 BLAKE2B
65f64f504cedc7244bdae10fd1638e031eb103f562cd71d32b5f36b15541704086df8cea16829b289e8be61bacf3de559616884d1672a4d6b8e47211816de8d3
SHA512
8b717447e2048df0d88d8350da2edb58f704e893498fbebea4aa2a3ac45ea050d70e73e78d41ab94562228b9c01e6fe59810c501c5bb880db446c05b9b6aee0d
DIST r8125-9.009.02.tar.bz2 89916 BLAKE2B
2dd8ad226f8ad9dd4e6646cdce66f0c12a6a657aa39c6e91892f410780ed245046fc94f247939958db7b950aa045e011716ecd7f6ebb6099ca3d9ffc54cfd0de
SHA512
29bfe60410727f09b004f172e5046292eff511dfca5af8a21c24719e4068925103ba12af0ce808316ef206b329ce886693e7330c1c68d8e77fc50ab40bd7dcfe
DIST r8125-9.011.01.tar.bz2 97867 BLAKE2B
0981c71795d3e839b97f7b41dbaddcc0743676c6bd0b656258e6e9b2e0879128ae4869e9ab3ab837d0ae10eb8c963177c3779b4e4a69d8a5c3d95b7b8d54f9c5
SHA512
833199cc0ce8179ef93c202fc89d4c4368b73e9515d1ef2550ebb209243dd2c8943aa9f267903d8fa21c46304b7703410f1c354d4ce1b6f6aee7ece97017dba2
+DIST r8125-9.013.02.tar.bz2 105923 BLAKE2B
0ae1a6a7ad651d30ac2ca29ab98af06c6facc26bfacac8ce5b51e92e8c7955c150a995c424f875a9a1cb315fe41f474ea3429cd7675ceec1ef82d454ad2bd434
SHA512
acb16992182c4c6b79357a511cfcedb53bb6513185caec91a5cb76aa41dc922e6c74099546886b32dba584d614f9bcaf36d31e40f3328b9ebc4ccd6b91296065
diff --git a/net-misc/r8125/r8125-9.013.02.ebuild
b/net-misc/r8125/r8125-9.013.02.ebuild
new file mode 100644
index ..f331c3c35866
--- /dev/null
+++ b/net-misc/r8125/r8125-9.013.02.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-mod-r1
+
+DESCRIPTION="r8125 vendor driver for Realtek RTL8125 PCI-E NICs"
+HOMEPAGE="https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software";
+# Mirrored to avoid captcha
+SRC_URI="https://github.com/Karlson2k/r8125/releases/download/${PV}/${P}.tar.bz2";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+IUSE="+multi-tx-q ptp +rss use-firmware"
+
+CONFIG_CHECK="~!R8169"
+WARNING_R8169="CONFIG_R8169 is enabled. ${PN} will not be loaded unless kernel
driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED."
+
+src_compile() {
+ local modlist=( ${PN}=kernel/drivers/net/ethernet/realtek:src )
+ local modargs=(
+ # Build parameters
+ KERNELDIR="${KV_OUT_DIR}"
+ # Configuration settings
+ ENABLE_PTP_SUPPORT=$(usex ptp y n)
+ ENABLE_RSS_SUPPORT=$(usex rss y n)
+ ENABLE_MULTIPLE_TX_QUEUE=$(usex multi-tx-q y n)
+ ENABLE_USE_FIRMWARE_FILE=$(usex use-firmware y n)
+ ENABLE_PAGE_REUSE=$(usex ptp n y) # Not compatible with PTP
+ ENABLE_RX_PACKET_FRAGMENT=$(usex ptp n y) # Not compatible with
PTP
+ )
+
+ linux-mod-r1_src_compile
+}
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: 448c5be84318e40fa935882d03308616de15544b
Author: Joonas Niilola gentoo org>
AuthorDate: Tue Aug 22 05:45:24 2023 +
Commit: Joonas Niilola gentoo org>
CommitDate: Tue Aug 22 05:45:24 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=448c5be8
net-misc/r8125: Stabilize 9.011.01-r1 amd64, #912390
Signed-off-by: Joonas Niilola gentoo.org>
net-misc/r8125/r8125-9.011.01-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net-misc/r8125/r8125-9.011.01-r1.ebuild
b/net-misc/r8125/r8125-9.011.01-r1.ebuild
index 5bdd6342933a..e206e4deaa7c 100644
--- a/net-misc/r8125/r8125-9.011.01-r1.ebuild
+++ b/net-misc/r8125/r8125-9.011.01-r1.ebuild
@@ -12,7 +12,7 @@
SRC_URI="http://rtitwww.realtek.com/rtdrivers/cn/nic1/${P}.tar.bz2";
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~amd64 x86"
+KEYWORDS="amd64 x86"
IUSE="+multi-tx-q ptp +rss use-firmware"
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: 8cee7ed39aed43971410902ea7602f25585618d7
Author: Sam James gentoo org>
AuthorDate: Mon Aug 21 06:10:35 2023 +
Commit: Sam James gentoo org>
CommitDate: Mon Aug 21 06:10:35 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cee7ed3
net-misc/r8125: Stabilize 9.011.01-r1 x86, #912390
Signed-off-by: Sam James gentoo.org>
net-misc/r8125/r8125-9.011.01-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net-misc/r8125/r8125-9.011.01-r1.ebuild
b/net-misc/r8125/r8125-9.011.01-r1.ebuild
index ed61c4d34909..5bdd6342933a 100644
--- a/net-misc/r8125/r8125-9.011.01-r1.ebuild
+++ b/net-misc/r8125/r8125-9.011.01-r1.ebuild
@@ -12,7 +12,7 @@
SRC_URI="http://rtitwww.realtek.com/rtdrivers/cn/nic1/${P}.tar.bz2";
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64 x86"
IUSE="+multi-tx-q ptp +rss use-firmware"
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/, net-misc/r8125/files/
commit: 3ac79141575343cbbde2a1e97ad29b6c20c4956e
Author: Karlson2k (Evgeny Grin) narod ru>
AuthorDate: Tue Jun 27 14:31:09 2023 +
Commit: Ionen Wolkens gentoo org>
CommitDate: Thu Jul 20 18:57:38 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ac79141
net-misc/r8125: fix build with PTP for Linux >=6.2
Bug: https://bugs.gentoo.org/908645
Signed-off-by: Karlson2k (Evgeny Grin) narod.ru>
Signed-off-by: Ionen Wolkens gentoo.org>
.../r8125/files/r8125-9.011.01-linux-6.2.patch | 42 ++
net-misc/r8125/r8125-9.008.00.ebuild | 1 +
net-misc/r8125/r8125-9.009.01.ebuild | 1 +
net-misc/r8125/r8125-9.009.02.ebuild | 1 +
net-misc/r8125/r8125-9.011.01.ebuild | 7 +++-
5 files changed, 51 insertions(+), 1 deletion(-)
diff --git a/net-misc/r8125/files/r8125-9.011.01-linux-6.2.patch
b/net-misc/r8125/files/r8125-9.011.01-linux-6.2.patch
new file mode 100644
index ..26bb8620fbfd
--- /dev/null
+++ b/net-misc/r8125/files/r8125-9.011.01-linux-6.2.patch
@@ -0,0 +1,42 @@
+From 2ef10e8ccbd16a67a1585ebb627af0f1ae172e0f Mon Sep 17 00:00:00 2001
+From: Evgeny Grin
+Date: Tue, 27 Jun 2023 11:16:26 +0300
+Subject: [PATCH] Patched PTP functionality for Linux 6.2+
+
+---
+ src/r8125_ptp.c | 11 +++
+ 1 file changed, 11 insertions(+)
+
+diff --git a/src/r8125_ptp.c b/src/r8125_ptp.c
+index 6010a18..b92fb18 100644
+--- a/src/r8125_ptp.c
b/src/r8125_ptp.c
+@@ -195,6 +195,13 @@ static int rtl8125_phc_adjfreq(struct ptp_clock_info
*ptp, s32 delta)
+ return 0;
+ }
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,2,0)
++static int rtl8125_phc_adjfine(struct ptp_clock_info *ptp, long scaled_ppm)
++{
++return rtl8125_phc_adjfreq(ptp, scaled_ppm_to_ppb(scaled_ppm));
++}
++#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(6,2,0) */
++
+ static int rtl8125_phc_gettime(struct ptp_clock_info *ptp, struct timespec64
*ts64)
+ {
+ struct rtl8125_private *tp = container_of(ptp, struct
rtl8125_private, ptp_clock_info);
+@@ -296,7 +303,11 @@ static const struct ptp_clock_info rtl_ptp_clock_info = {
+ .n_per_out = 0,
+ .n_pins = 0,
+ .pps= 1,
++#if LINUX_VERSION_CODE < KERNEL_VERSION(6,2,0)
+ .adjfreq= rtl8125_phc_adjfreq,
++#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(6,2,0) */
++.adjfine= rtl8125_phc_adjfine,
++#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(6,2,0) */
+ .adjtime= rtl8125_phc_adjtime,
+ .gettime64 = rtl8125_phc_gettime,
+ .settime64 = rtl8125_phc_settime,
+--
+2.41.0.windows.1
+
diff --git a/net-misc/r8125/r8125-9.008.00.ebuild
b/net-misc/r8125/r8125-9.008.00.ebuild
index ba9eb264d3da..378ced667e5b 100644
--- a/net-misc/r8125/r8125-9.008.00.ebuild
+++ b/net-misc/r8125/r8125-9.008.00.ebuild
@@ -25,6 +25,7 @@ PATCHES=(
"${FILESDIR}/${PN}-9.008.00-linux-5.18.patch" # bug 852311
"${FILESDIR}/${PN}-9.009.01-linux-5.19.patch"
"${FILESDIR}/${PN}-9.011.00-linux-6.1.patch" # bug 890714
+ "${FILESDIR}/${PN}-9.011.01-linux-6.2.patch" # bug 908645
)
CONFIG_CHECK="~!R8169"
diff --git a/net-misc/r8125/r8125-9.009.01.ebuild
b/net-misc/r8125/r8125-9.009.01.ebuild
index a88080038413..d85f17950eeb 100644
--- a/net-misc/r8125/r8125-9.009.01.ebuild
+++ b/net-misc/r8125/r8125-9.009.01.ebuild
@@ -22,6 +22,7 @@ PATCHES=(
"${FILESDIR}/${PN}-9.008.00-linux-5.18.patch" # bug 852311
"${FILESDIR}/${PN}-9.009.01-linux-5.19.patch"
"${FILESDIR}/${PN}-9.011.00-linux-6.1.patch" # bug 890714
+ "${FILESDIR}/${PN}-9.011.01-linux-6.2.patch" # bug 908645
)
CONFIG_CHECK="~!R8169"
diff --git a/net-misc/r8125/r8125-9.009.02.ebuild
b/net-misc/r8125/r8125-9.009.02.ebuild
index bdeb5b0245c5..922d00c7e9d0 100644
--- a/net-misc/r8125/r8125-9.009.02.ebuild
+++ b/net-misc/r8125/r8125-9.009.02.ebuild
@@ -20,6 +20,7 @@ IUSE="+multi-tx-q ptp +rss use-firmware"
PATCHES=(
"${FILESDIR}/${PN}-9.011.00-linux-6.1.patch" # bug 890714
+ "${FILESDIR}/${PN}-9.011.01-linux-6.2.patch" # bug 908645
)
CONFIG_CHECK="~!R8169"
diff --git a/net-misc/r8125/r8125-9.011.01.ebuild
b/net-misc/r8125/r8125-9.011.01.ebuild
index d092e674..bc1351818977 100644
--- a/net-misc/r8125/r8125-9.011.01.ebuild
+++ b/net-misc/r8125/r8125-9.011.01.ebuild
@@ -18,6 +18,10 @@ MODULE_NAMES="r8125(net:${S}/src)"
BUILD_TARGETS="modules"
IUSE="+multi-tx-q ptp +rss use-firmware"
+PATCHES=(
+ "${FILESDIR}/${P}-linux-6.2.patch" # bug 908645
+)
+
CONFIG_CHECK="~!R8169"
WARNING_R8169="CONFIG_R8169 is enabled. ${PN} will not be loaded unless kernel
driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED."
@@ -28,7 +32,8 @@ pkg_setup() {
BUILD_PARAMS+=" ENABLE_RSS_SUPPORT=$(usex rss y n)"
BUILD_PARAMS+=" ENABLE_MULTIPLE_TX_QUEUE=$(usex multi-tx-q y n)"
BUILD_PARAMS+=" ENABLE_USE_FIRMWARE_FILE=$(usex use-firmware y
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: 439ee110dea289c23f6940833d6f0dfd42db8a56
Author: Karlson2k (Evgeny Grin) narod ru>
AuthorDate: Tue Jun 27 15:02:24 2023 +
Commit: Ionen Wolkens gentoo org>
CommitDate: Thu Jul 20 18:57:38 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=439ee110
net-misc/r8125: migrate to linux-mod-r1.eclass
Closes: https://bugs.gentoo.org/908704
Signed-off-by: Karlson2k (Evgeny Grin) narod.ru>
Closes: https://github.com/gentoo/gentoo/pull/31642
Signed-off-by: Ionen Wolkens gentoo.org>
...25-9.008.00.ebuild => r8125-9.008.00-r1.ebuild} | 29 +--
...25-9.009.01.ebuild => r8125-9.009.01-r1.ebuild} | 29 +--
...25-9.009.02.ebuild => r8125-9.009.02-r1.ebuild} | 29 +--
...25-9.011.01.ebuild => r8125-9.011.01-r1.ebuild} | 33 +++---
4 files changed, 58 insertions(+), 62 deletions(-)
diff --git a/net-misc/r8125/r8125-9.008.00.ebuild
b/net-misc/r8125/r8125-9.008.00-r1.ebuild
similarity index 70%
rename from net-misc/r8125/r8125-9.008.00.ebuild
rename to net-misc/r8125/r8125-9.008.00-r1.ebuild
index 378ced667e5b..3779fd117278 100644
--- a/net-misc/r8125/r8125-9.008.00.ebuild
+++ b/net-misc/r8125/r8125-9.008.00-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit linux-info linux-mod
+inherit linux-mod-r1
DESCRIPTION="r8125 vendor driver for Realtek RTL8125 PCI-E NICs"
HOMEPAGE="https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software";
@@ -16,8 +16,6 @@ LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-MODULE_NAMES="r8125(net:${S}/src)"
-BUILD_TARGETS="modules"
IUSE="+multi-tx-q ptp +rss use-firmware"
PATCHES=(
@@ -31,16 +29,17 @@ PATCHES=(
CONFIG_CHECK="~!R8169"
WARNING_R8169="CONFIG_R8169 is enabled. ${PN} will not be loaded unless kernel
driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED."
-pkg_setup() {
- linux-mod_pkg_setup
- BUILD_PARAMS="KERNELDIR=${KV_DIR}"
- BUILD_PARAMS+=" ENABLE_PTP_SUPPORT=$(usex ptp y n)"
- BUILD_PARAMS+=" ENABLE_RSS_SUPPORT=$(usex rss y n)"
- BUILD_PARAMS+=" ENABLE_MULTIPLE_TX_QUEUE=$(usex multi-tx-q y n)"
- BUILD_PARAMS+=" ENABLE_USE_FIRMWARE_FILE=$(usex use-firmware y n)"
-}
-
-src_install() {
- linux-mod_src_install
- einstalldocs
+src_compile() {
+ local modlist=( ${PN}=kernel/drivers/net/ethernet/realtek:src )
+ local modargs=(
+ # Build parameters
+ KERNELDIR="${KV_OUT_DIR}"
+ # Configuration settings
+ ENABLE_PTP_SUPPORT=$(usex ptp y n)
+ ENABLE_RSS_SUPPORT=$(usex rss y n)
+ ENABLE_MULTIPLE_TX_QUEUE=$(usex multi-tx-q y n)
+ ENABLE_USE_FIRMWARE_FILE=$(usex use-firmware y n)
+ )
+
+ linux-mod-r1_src_compile
}
diff --git a/net-misc/r8125/r8125-9.009.01.ebuild
b/net-misc/r8125/r8125-9.009.01-r1.ebuild
similarity index 66%
rename from net-misc/r8125/r8125-9.009.01.ebuild
rename to net-misc/r8125/r8125-9.009.01-r1.ebuild
index d85f17950eeb..87bff3e7fb42 100644
--- a/net-misc/r8125/r8125-9.009.01.ebuild
+++ b/net-misc/r8125/r8125-9.009.01-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit linux-info linux-mod
+inherit linux-mod-r1
DESCRIPTION="r8125 vendor driver for Realtek RTL8125 PCI-E NICs"
HOMEPAGE="https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software";
@@ -14,8 +14,6 @@ LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-MODULE_NAMES="r8125(net:${S}/src)"
-BUILD_TARGETS="modules"
IUSE="+multi-tx-q ptp +rss use-firmware"
PATCHES=(
@@ -28,16 +26,17 @@ PATCHES=(
CONFIG_CHECK="~!R8169"
WARNING_R8169="CONFIG_R8169 is enabled. ${PN} will not be loaded unless kernel
driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED."
-pkg_setup() {
- linux-mod_pkg_setup
- BUILD_PARAMS="KERNELDIR=${KV_DIR}"
- BUILD_PARAMS+=" ENABLE_PTP_SUPPORT=$(usex ptp y n)"
- BUILD_PARAMS+=" ENABLE_RSS_SUPPORT=$(usex rss y n)"
- BUILD_PARAMS+=" ENABLE_MULTIPLE_TX_QUEUE=$(usex multi-tx-q y n)"
- BUILD_PARAMS+=" ENABLE_USE_FIRMWARE_FILE=$(usex use-firmware y n)"
-}
-
-src_install() {
- linux-mod_src_install
- einstalldocs
+src_compile() {
+ local modlist=( ${PN}=kernel/drivers/net/ethernet/realtek:src )
+ local modargs=(
+ # Build parameters
+ KERNELDIR="${KV_OUT_DIR}"
+ # Configuration settings
+ ENABLE_PTP_SUPPORT=$(usex ptp y n)
+ ENABLE_RSS_SUPPORT=$(usex rss y n)
+ ENABLE_MULTIPLE_TX_QUEUE=$(usex multi-tx-q y n)
+ ENABLE_USE_FIRMWARE_FILE=$(usex use-firmware y n)
+ )
+
+ linux-mod-r1_src_compile
}
diff --git a/net-misc/r8125/r8125-9.009.02.ebuild
b/net-misc/r8125/r8125-9.009.02-r1.ebuild
similarity index 63%
rename from net-misc/r8125/r8125-9.009.02.ebuild
rena
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: 222b2e3d77ba28bc281f964239c7d56e3c6630bb
Author: Karlson2k (Evgeny Grin) narod ru>
AuthorDate: Wed May 10 16:41:22 2023 +
Commit: Sam James gentoo org>
CommitDate: Sat May 13 03:30:59 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=222b2e3d
net-misc/r8125: added new version 9.011.01
Signed-off-by: Karlson2k (Evgeny Grin) narod.ru>
Signed-off-by: Sam James gentoo.org>
net-misc/r8125/Manifest | 1 +
net-misc/r8125/r8125-9.011.01.ebuild | 37
2 files changed, 38 insertions(+)
diff --git a/net-misc/r8125/Manifest b/net-misc/r8125/Manifest
index 56ef9e521565..e514276a4494 100644
--- a/net-misc/r8125/Manifest
+++ b/net-misc/r8125/Manifest
@@ -2,3 +2,4 @@ DIST r8125-9.008.00.tar.bz2 89622 BLAKE2B
d1106086d1bca53484f8536072cddd506087b5
DIST r8125-9.009.01.tar.bz2 89897 BLAKE2B
65f64f504cedc7244bdae10fd1638e031eb103f562cd71d32b5f36b15541704086df8cea16829b289e8be61bacf3de559616884d1672a4d6b8e47211816de8d3
SHA512
8b717447e2048df0d88d8350da2edb58f704e893498fbebea4aa2a3ac45ea050d70e73e78d41ab94562228b9c01e6fe59810c501c5bb880db446c05b9b6aee0d
DIST r8125-9.009.02.tar.bz2 89916 BLAKE2B
2dd8ad226f8ad9dd4e6646cdce66f0c12a6a657aa39c6e91892f410780ed245046fc94f247939958db7b950aa045e011716ecd7f6ebb6099ca3d9ffc54cfd0de
SHA512
29bfe60410727f09b004f172e5046292eff511dfca5af8a21c24719e4068925103ba12af0ce808316ef206b329ce886693e7330c1c68d8e77fc50ab40bd7dcfe
DIST r8125-9.011.00.tar.bz2 98082 BLAKE2B
306a4fc36149986a24d73cfc3f78e2494a71977640cf7676ae17c2d4f5cff1bf3f5a7ca209fa83bb43a8770acbdc45290b29bbbacc418518271ac316bef9cdd1
SHA512
c2efce2d01025d5dbbd3552390e157b0859ee7ea4e9200d44af61efd7531362bd9f754b5728c89aa2c287915f99492c84c52ee11eec1a4d759bf4228ca75a6c4
+DIST r8125-9.011.01.tar.bz2 97867 BLAKE2B
0981c71795d3e839b97f7b41dbaddcc0743676c6bd0b656258e6e9b2e0879128ae4869e9ab3ab837d0ae10eb8c963177c3779b4e4a69d8a5c3d95b7b8d54f9c5
SHA512
833199cc0ce8179ef93c202fc89d4c4368b73e9515d1ef2550ebb209243dd2c8943aa9f267903d8fa21c46304b7703410f1c354d4ce1b6f6aee7ece97017dba2
diff --git a/net-misc/r8125/r8125-9.011.01.ebuild
b/net-misc/r8125/r8125-9.011.01.ebuild
new file mode 100644
index ..d092e674
--- /dev/null
+++ b/net-misc/r8125/r8125-9.011.01.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-info linux-mod
+
+DESCRIPTION="r8125 vendor driver for Realtek RTL8125 PCI-E NICs"
+HOMEPAGE="https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software";
+
+SRC_URI="http://rtitwww.realtek.com/rtdrivers/cn/nic1/${P}.tar.bz2";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+MODULE_NAMES="r8125(net:${S}/src)"
+BUILD_TARGETS="modules"
+IUSE="+multi-tx-q ptp +rss use-firmware"
+
+CONFIG_CHECK="~!R8169"
+WARNING_R8169="CONFIG_R8169 is enabled. ${PN} will not be loaded unless kernel
driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED."
+
+pkg_setup() {
+ linux-mod_pkg_setup
+ BUILD_PARAMS="KERNELDIR=${KV_DIR}"
+ BUILD_PARAMS+=" ENABLE_PTP_SUPPORT=$(usex ptp y n)"
+ BUILD_PARAMS+=" ENABLE_RSS_SUPPORT=$(usex rss y n)"
+ BUILD_PARAMS+=" ENABLE_MULTIPLE_TX_QUEUE=$(usex multi-tx-q y n)"
+ BUILD_PARAMS+=" ENABLE_USE_FIRMWARE_FILE=$(usex use-firmware y n)"
+ BUILD_PARAMS+=" ENABLE_PAGE_REUSE=y ENABLE_RX_PACKET_FRAGMENT=y"
+}
+
+src_install() {
+ linux-mod_src_install
+ einstalldocs
+}
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: fcfc1d17cda205198d6933c45a47664438281c2e
Author: Karlson2k (Evgeny Grin) narod ru>
AuthorDate: Wed May 10 16:42:07 2023 +
Commit: Sam James gentoo org>
CommitDate: Sat May 13 03:30:59 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcfc1d17
net-misc/r8125: dropped version 9.011.00
Signed-off-by: Karlson2k (Evgeny Grin) narod.ru>
Closes: https://github.com/gentoo/gentoo/pull/30976
Signed-off-by: Sam James gentoo.org>
net-misc/r8125/Manifest | 1 -
net-misc/r8125/r8125-9.011.00.ebuild | 41
2 files changed, 42 deletions(-)
diff --git a/net-misc/r8125/Manifest b/net-misc/r8125/Manifest
index e514276a4494..81aa650817b3 100644
--- a/net-misc/r8125/Manifest
+++ b/net-misc/r8125/Manifest
@@ -1,5 +1,4 @@
DIST r8125-9.008.00.tar.bz2 89622 BLAKE2B
d1106086d1bca53484f8536072cddd506087b5d49983cbb91e921e86674c074b38c8a01cb51d2ea5793d8ffbff6e97ab05e48720ff00a805c4096a1d62a0cc30
SHA512
ff740a49fcc94b3de826f6299c489ed3f92ba9123ca2b2fe3c9035eecd16d518b6a4e6c2fa2531bb670c52097a52a0fb2fdf71b721efb20c83bb59d94d99c6c6
DIST r8125-9.009.01.tar.bz2 89897 BLAKE2B
65f64f504cedc7244bdae10fd1638e031eb103f562cd71d32b5f36b15541704086df8cea16829b289e8be61bacf3de559616884d1672a4d6b8e47211816de8d3
SHA512
8b717447e2048df0d88d8350da2edb58f704e893498fbebea4aa2a3ac45ea050d70e73e78d41ab94562228b9c01e6fe59810c501c5bb880db446c05b9b6aee0d
DIST r8125-9.009.02.tar.bz2 89916 BLAKE2B
2dd8ad226f8ad9dd4e6646cdce66f0c12a6a657aa39c6e91892f410780ed245046fc94f247939958db7b950aa045e011716ecd7f6ebb6099ca3d9ffc54cfd0de
SHA512
29bfe60410727f09b004f172e5046292eff511dfca5af8a21c24719e4068925103ba12af0ce808316ef206b329ce886693e7330c1c68d8e77fc50ab40bd7dcfe
-DIST r8125-9.011.00.tar.bz2 98082 BLAKE2B
306a4fc36149986a24d73cfc3f78e2494a71977640cf7676ae17c2d4f5cff1bf3f5a7ca209fa83bb43a8770acbdc45290b29bbbacc418518271ac316bef9cdd1
SHA512
c2efce2d01025d5dbbd3552390e157b0859ee7ea4e9200d44af61efd7531362bd9f754b5728c89aa2c287915f99492c84c52ee11eec1a4d759bf4228ca75a6c4
DIST r8125-9.011.01.tar.bz2 97867 BLAKE2B
0981c71795d3e839b97f7b41dbaddcc0743676c6bd0b656258e6e9b2e0879128ae4869e9ab3ab837d0ae10eb8c963177c3779b4e4a69d8a5c3d95b7b8d54f9c5
SHA512
833199cc0ce8179ef93c202fc89d4c4368b73e9515d1ef2550ebb209243dd2c8943aa9f267903d8fa21c46304b7703410f1c354d4ce1b6f6aee7ece97017dba2
diff --git a/net-misc/r8125/r8125-9.011.00.ebuild
b/net-misc/r8125/r8125-9.011.00.ebuild
deleted file mode 100644
index 40413bb9c984..
--- a/net-misc/r8125/r8125-9.011.00.ebuild
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit linux-info linux-mod
-
-DESCRIPTION="r8125 vendor driver for Realtek RTL8125 PCI-E NICs"
-HOMEPAGE="https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software";
-
-SRC_URI="http://rtitwww.realtek.com/rtdrivers/cn/nic1/${P}.tar.bz2";
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-MODULE_NAMES="r8125(net:${S}/src)"
-BUILD_TARGETS="modules"
-IUSE="+multi-tx-q ptp +rss use-firmware"
-
-PATCHES=(
- "${FILESDIR}/${P}-linux-6.1.patch" # bug 890714
-)
-
-CONFIG_CHECK="~!R8169"
-WARNING_R8169="CONFIG_R8169 is enabled. ${PN} will not be loaded unless kernel
driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED."
-
-pkg_setup() {
- linux-mod_pkg_setup
- BUILD_PARAMS="KERNELDIR=${KV_DIR}"
- BUILD_PARAMS+=" ENABLE_PTP_SUPPORT=$(usex ptp y n)"
- BUILD_PARAMS+=" ENABLE_RSS_SUPPORT=$(usex rss y n)"
- BUILD_PARAMS+=" ENABLE_MULTIPLE_TX_QUEUE=$(usex multi-tx-q y n)"
- BUILD_PARAMS+=" ENABLE_USE_FIRMWARE_FILE=$(usex use-firmware y n)"
- BUILD_PARAMS+=" ENABLE_PAGE_REUSE=y ENABLE_RX_PACKET_FRAGMENT=y"
-}
-
-src_install() {
- linux-mod_src_install
- einstalldocs
-}
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/files/, net-misc/r8125/
commit: b82711c3408a300773ef144af00193128b64d836
Author: Karlson2k (Evgeny Grin) narod ru>
AuthorDate: Mon Apr 3 15:31:54 2023 +
Commit: Joonas Niilola gentoo org>
CommitDate: Sat Apr 15 12:41:15 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b82711c3
net-misc/r8125: New upstream version 9.011.00
Closes: https://bugs.gentoo.org/890716
Signed-off-by: Karlson2k (Evgeny Grin) narod.ru>
Signed-off-by: Joonas Niilola gentoo.org>
net-misc/r8125/Manifest| 1 +
.../r8125/files/r8125-9.011.00-linux-6.1.patch | 28 +++
net-misc/r8125/r8125-9.011.00.ebuild | 41 ++
3 files changed, 70 insertions(+)
diff --git a/net-misc/r8125/Manifest b/net-misc/r8125/Manifest
index 4d4d53475a11..56ef9e521565 100644
--- a/net-misc/r8125/Manifest
+++ b/net-misc/r8125/Manifest
@@ -1,3 +1,4 @@
DIST r8125-9.008.00.tar.bz2 89622 BLAKE2B
d1106086d1bca53484f8536072cddd506087b5d49983cbb91e921e86674c074b38c8a01cb51d2ea5793d8ffbff6e97ab05e48720ff00a805c4096a1d62a0cc30
SHA512
ff740a49fcc94b3de826f6299c489ed3f92ba9123ca2b2fe3c9035eecd16d518b6a4e6c2fa2531bb670c52097a52a0fb2fdf71b721efb20c83bb59d94d99c6c6
DIST r8125-9.009.01.tar.bz2 89897 BLAKE2B
65f64f504cedc7244bdae10fd1638e031eb103f562cd71d32b5f36b15541704086df8cea16829b289e8be61bacf3de559616884d1672a4d6b8e47211816de8d3
SHA512
8b717447e2048df0d88d8350da2edb58f704e893498fbebea4aa2a3ac45ea050d70e73e78d41ab94562228b9c01e6fe59810c501c5bb880db446c05b9b6aee0d
DIST r8125-9.009.02.tar.bz2 89916 BLAKE2B
2dd8ad226f8ad9dd4e6646cdce66f0c12a6a657aa39c6e91892f410780ed245046fc94f247939958db7b950aa045e011716ecd7f6ebb6099ca3d9ffc54cfd0de
SHA512
29bfe60410727f09b004f172e5046292eff511dfca5af8a21c24719e4068925103ba12af0ce808316ef206b329ce886693e7330c1c68d8e77fc50ab40bd7dcfe
+DIST r8125-9.011.00.tar.bz2 98082 BLAKE2B
306a4fc36149986a24d73cfc3f78e2494a71977640cf7676ae17c2d4f5cff1bf3f5a7ca209fa83bb43a8770acbdc45290b29bbbacc418518271ac316bef9cdd1
SHA512
c2efce2d01025d5dbbd3552390e157b0859ee7ea4e9200d44af61efd7531362bd9f754b5728c89aa2c287915f99492c84c52ee11eec1a4d759bf4228ca75a6c4
diff --git a/net-misc/r8125/files/r8125-9.011.00-linux-6.1.patch
b/net-misc/r8125/files/r8125-9.011.00-linux-6.1.patch
new file mode 100644
index ..343ab8ccf125
--- /dev/null
+++ b/net-misc/r8125/files/r8125-9.011.00-linux-6.1.patch
@@ -0,0 +1,28 @@
+From cc2a99963b0039573464816f0cf86803381d5f11 Mon Sep 17 00:00:00 2001
+From: Evgeny Grin
+Date: Mon, 3 Apr 2023 16:46:39 +0300
+Subject: [PATCH] Fixed compatibility with Linux kernel versions >= 6.1
+
+---
+ src/r8125.h | 4
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/r8125.h b/src/r8125.h
+index 9eac0eb..4a29116 100644
+--- a/src/r8125.h
b/src/r8125.h
+@@ -676,7 +676,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 // LINUX_VERSION_CODE < KERNEL_VERSION(6,1,0)
+ #define RTL_NAPI_CONFIG(ndev, priv, function, weight) netif_napi_add(ndev,
&priv->napi, function, weight)
++#endif // LINUX_VERSION_CODE < KERNEL_VERSION(6,1,0)
+ #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;
+--
+2.40.0
+
diff --git a/net-misc/r8125/r8125-9.011.00.ebuild
b/net-misc/r8125/r8125-9.011.00.ebuild
new file mode 100644
index ..0714e4b6d50a
--- /dev/null
+++ b/net-misc/r8125/r8125-9.011.00.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-info linux-mod
+
+DESCRIPTION="r8125 vendor driver for Realtek RTL8125 PCI-E NICs"
+HOMEPAGE="https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software";
+
+SRC_URI="http://rtitwww.realtek.com/rtdrivers/cn/nic1/${P}.tar.bz2";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+MODULE_NAMES="r8125(net:${S}/src)"
+BUILD_TARGETS="modules"
+IUSE="+multi-tx-q ptp +rss use-firmware"
+
+PATCHES=(
+ "${FILESDIR}/${P}-linux-6.1.patch" # bug 890714
+)
+
+CONFIG_CHECK="~!R8169"
+WARNING_R8169="CONFIG_R8169 is enabled. ${PN} will not be loaded unless kernel
driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED."
+
+pkg_setup() {
+ linux-mod_pkg_setup
+ BUILD_PARAMS="KERNELDIR=${KV_DIR}"
+ BUILD_PARAMS+=" ENABLE_PTP_SUPPORT=$(usex ptp y n)"
+ BUILD_PARAMS+=" ENABLE_RSS_SUPPORT=$(usex rss y n)"
+ BUILD_PARAMS+=" ENABLE_MULTIPLE_TX_QUEUE=$(usex multi-tx-q y n)"
+ BUILD_PARAMS+=" ENABLE_USE_FIRMWARE_FILE=$(usex use-firmware y n)"
+
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/, net-misc/r8125/files/
commit: 8212d430a2de8bbe74e842ad54ec744b81463384
Author: Karlson2k (Evgeny Grin) narod ru>
AuthorDate: Mon Apr 3 15:52:22 2023 +
Commit: Joonas Niilola gentoo org>
CommitDate: Sat Apr 15 12:41:16 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8212d430
net-misc/r8125: Fixes for kernels 5.19 and 6.1
Closes: https://bugs.gentoo.org/890714
Signed-off-by: Karlson2k (Evgeny Grin) narod.ru>
Closes: https://github.com/gentoo/gentoo/pull/30461
Signed-off-by: Joonas Niilola gentoo.org>
.../r8125/files/r8125-9.009.01-linux-5.19.patch| 35 ++
net-misc/r8125/r8125-9.008.00.ebuild | 2 ++
net-misc/r8125/r8125-9.009.01.ebuild | 2 ++
net-misc/r8125/r8125-9.009.02.ebuild | 4 +++
4 files changed, 43 insertions(+)
diff --git a/net-misc/r8125/files/r8125-9.009.01-linux-5.19.patch
b/net-misc/r8125/files/r8125-9.009.01-linux-5.19.patch
new file mode 100644
index ..8dc3f8749a11
--- /dev/null
+++ b/net-misc/r8125/files/r8125-9.009.01-linux-5.19.patch
@@ -0,0 +1,35 @@
+From c96e5ffc40585d463bea056f2fe02c29d43dcba7 Mon Sep 17 00:00:00 2001
+From: Evgeny Grin
+Date: Mon, 3 Apr 2023 18:17:24 +0300
+Subject: [PATCH] Backport kernel 5.19 compatibility
+
+---
+ src/r8125_n.c | 5 +
+ 1 file changed, 5 insertions(+)
+
+diff --git a/src/r8125_n.c b/src/r8125_n.c
+index 0bc5eec..e35e557 100644
+--- a/src/r8125_n.c
b/src/r8125_n.c
+@@ -12715,6 +12715,10 @@ rtl8125_init_one(struct pci_dev *pdev,
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
+ dev->hw_features |= NETIF_F_IPV6_CSUM | NETIF_F_TSO6;
+ dev->features |= NETIF_F_IPV6_CSUM;
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,19,0)
++netif_set_tso_max_size(dev, LSO_64K);
++netif_set_tso_max_segs(dev, NIC_MAX_PHYS_BUF_COUNT_LSO2);
++#else //LINUX_VERSION_CODE >= KERNEL_VERSION(5,19,0)
+ netif_set_gso_max_size(dev, LSO_64K);
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)
+ dev->gso_max_segs = NIC_MAX_PHYS_BUF_COUNT_LSO2;
+@@ -12722,6 +12726,7 @@ rtl8125_init_one(struct pci_dev *pdev,
+ dev->gso_min_segs = NIC_MIN_PHYS_BUF_COUNT;
+ #endif //LINUX_VERSION_CODE < KERNEL_VERSION(4,7,0)
+ #endif //LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)
++#endif //LINUX_VERSION_CODE >= KERNEL_VERSION(5,19,0)
+
+ #endif //LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
+ #endif //LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0)
+--
+2.40.0
+
diff --git a/net-misc/r8125/r8125-9.008.00.ebuild
b/net-misc/r8125/r8125-9.008.00.ebuild
index b848421ede7e..d3d593df5844 100644
--- a/net-misc/r8125/r8125-9.008.00.ebuild
+++ b/net-misc/r8125/r8125-9.008.00.ebuild
@@ -23,6 +23,8 @@ IUSE="+multi-tx-q ptp +rss use-firmware"
PATCHES=(
"${FILESDIR}/${PN}-9.008.00-linux-5.17.patch" # bug 839282
"${FILESDIR}/${PN}-9.008.00-linux-5.18.patch" # bug 852311
+ "${FILESDIR}/${PN}-9.009.01-linux-5.19.patch"
+ "${FILESDIR}/${PN}-9.011.00-linux-6.1.patch" # bug 890714
)
CONFIG_CHECK="~!R8169"
diff --git a/net-misc/r8125/r8125-9.009.01.ebuild
b/net-misc/r8125/r8125-9.009.01.ebuild
index 2a1b7c235358..6c64d2ff981b 100644
--- a/net-misc/r8125/r8125-9.009.01.ebuild
+++ b/net-misc/r8125/r8125-9.009.01.ebuild
@@ -20,6 +20,8 @@ IUSE="+multi-tx-q ptp +rss use-firmware"
PATCHES=(
"${FILESDIR}/${PN}-9.008.00-linux-5.18.patch" # bug 852311
+ "${FILESDIR}/${PN}-9.009.01-linux-5.19.patch"
+ "${FILESDIR}/${PN}-9.011.00-linux-6.1.patch" # bug 890714
)
CONFIG_CHECK="~!R8169"
diff --git a/net-misc/r8125/r8125-9.009.02.ebuild
b/net-misc/r8125/r8125-9.009.02.ebuild
index 9178eeaa64df..60221798a097 100644
--- a/net-misc/r8125/r8125-9.009.02.ebuild
+++ b/net-misc/r8125/r8125-9.009.02.ebuild
@@ -18,6 +18,10 @@ MODULE_NAMES="r8125(net:${S}/src)"
BUILD_TARGETS="modules"
IUSE="+multi-tx-q ptp +rss use-firmware"
+PATCHES=(
+ "${FILESDIR}/${PN}-9.011.00-linux-6.1.patch" # bug 890714
+)
+
CONFIG_CHECK="~!R8169"
WARNING_R8169="CONFIG_R8169 is enabled. ${PN} will not be loaded unless kernel
driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED."
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: 95a47387d9854a8f9d6d3459c3454a860cb12f75 Author: Joonas Niilola gentoo org> AuthorDate: Sat Apr 15 12:41:01 2023 + Commit: Joonas Niilola gentoo org> CommitDate: Sat Apr 15 12:41:16 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95a47387 net-misc/r8125: fix IncorrectCopyright Signed-off-by: Joonas Niilola gentoo.org> net-misc/r8125/r8125-9.008.00.ebuild | 2 +- net-misc/r8125/r8125-9.009.01.ebuild | 2 +- net-misc/r8125/r8125-9.009.02.ebuild | 2 +- net-misc/r8125/r8125-9.011.00.ebuild | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/net-misc/r8125/r8125-9.008.00.ebuild b/net-misc/r8125/r8125-9.008.00.ebuild index d3d593df5844..ba9eb264d3da 100644 --- a/net-misc/r8125/r8125-9.008.00.ebuild +++ b/net-misc/r8125/r8125-9.008.00.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/net-misc/r8125/r8125-9.009.01.ebuild b/net-misc/r8125/r8125-9.009.01.ebuild index 6c64d2ff981b..a88080038413 100644 --- a/net-misc/r8125/r8125-9.009.01.ebuild +++ b/net-misc/r8125/r8125-9.009.01.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/net-misc/r8125/r8125-9.009.02.ebuild b/net-misc/r8125/r8125-9.009.02.ebuild index 60221798a097..bdeb5b0245c5 100644 --- a/net-misc/r8125/r8125-9.009.02.ebuild +++ b/net-misc/r8125/r8125-9.009.02.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/net-misc/r8125/r8125-9.011.00.ebuild b/net-misc/r8125/r8125-9.011.00.ebuild index 0714e4b6d50a..40413bb9c984 100644 --- a/net-misc/r8125/r8125-9.011.00.ebuild +++ b/net-misc/r8125/r8125-9.011.00.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: 950b5c13a1e94241205c05d9c0904adaea8b41ac
Author: Karlson2k (Evgeny Grin) narod ru>
AuthorDate: Fri Jul 8 12:20:15 2022 +
Commit: Florian Schmaus gentoo org>
CommitDate: Sat Jul 9 10:45:15 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=950b5c13
net-misc/r8125: new upstream version 9.009.02
Fixed compatibility with kernel 5.19+
Signed-off-by: Karlson2k (Evgeny Grin) narod.ru>
Closes: https://github.com/gentoo/gentoo/pull/26282
Signed-off-by: Florian Schmaus gentoo.org>
net-misc/r8125/Manifest | 1 +
net-misc/r8125/r8125-9.009.02.ebuild | 36
2 files changed, 37 insertions(+)
diff --git a/net-misc/r8125/Manifest b/net-misc/r8125/Manifest
index 45e8abd8602a..4d4d53475a11 100644
--- a/net-misc/r8125/Manifest
+++ b/net-misc/r8125/Manifest
@@ -1,2 +1,3 @@
DIST r8125-9.008.00.tar.bz2 89622 BLAKE2B
d1106086d1bca53484f8536072cddd506087b5d49983cbb91e921e86674c074b38c8a01cb51d2ea5793d8ffbff6e97ab05e48720ff00a805c4096a1d62a0cc30
SHA512
ff740a49fcc94b3de826f6299c489ed3f92ba9123ca2b2fe3c9035eecd16d518b6a4e6c2fa2531bb670c52097a52a0fb2fdf71b721efb20c83bb59d94d99c6c6
DIST r8125-9.009.01.tar.bz2 89897 BLAKE2B
65f64f504cedc7244bdae10fd1638e031eb103f562cd71d32b5f36b15541704086df8cea16829b289e8be61bacf3de559616884d1672a4d6b8e47211816de8d3
SHA512
8b717447e2048df0d88d8350da2edb58f704e893498fbebea4aa2a3ac45ea050d70e73e78d41ab94562228b9c01e6fe59810c501c5bb880db446c05b9b6aee0d
+DIST r8125-9.009.02.tar.bz2 89916 BLAKE2B
2dd8ad226f8ad9dd4e6646cdce66f0c12a6a657aa39c6e91892f410780ed245046fc94f247939958db7b950aa045e011716ecd7f6ebb6099ca3d9ffc54cfd0de
SHA512
29bfe60410727f09b004f172e5046292eff511dfca5af8a21c24719e4068925103ba12af0ce808316ef206b329ce886693e7330c1c68d8e77fc50ab40bd7dcfe
diff --git a/net-misc/r8125/r8125-9.009.02.ebuild
b/net-misc/r8125/r8125-9.009.02.ebuild
new file mode 100644
index ..9178eeaa64df
--- /dev/null
+++ b/net-misc/r8125/r8125-9.009.02.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-info linux-mod
+
+DESCRIPTION="r8125 vendor driver for Realtek RTL8125 PCI-E NICs"
+HOMEPAGE="https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software";
+
+SRC_URI="http://rtitwww.realtek.com/rtdrivers/cn/nic1/${P}.tar.bz2";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+MODULE_NAMES="r8125(net:${S}/src)"
+BUILD_TARGETS="modules"
+IUSE="+multi-tx-q ptp +rss use-firmware"
+
+CONFIG_CHECK="~!R8169"
+WARNING_R8169="CONFIG_R8169 is enabled. ${PN} will not be loaded unless kernel
driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED."
+
+pkg_setup() {
+ linux-mod_pkg_setup
+ BUILD_PARAMS="KERNELDIR=${KV_DIR}"
+ BUILD_PARAMS+=" ENABLE_PTP_SUPPORT=$(usex ptp y n)"
+ BUILD_PARAMS+=" ENABLE_RSS_SUPPORT=$(usex rss y n)"
+ BUILD_PARAMS+=" ENABLE_MULTIPLE_TX_QUEUE=$(usex multi-tx-q y n)"
+ BUILD_PARAMS+=" ENABLE_USE_FIRMWARE_FILE=$(usex use-firmware y n)"
+}
+
+src_install() {
+ linux-mod_src_install
+ einstalldocs
+}
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: 21629bca1c0f37cb7740685ed488326a5f4b8987
Author: Karlson2k (Evgeny Grin) narod ru>
AuthorDate: Thu Jun 16 11:16:01 2022 +
Commit: Sam James gentoo org>
CommitDate: Thu Jun 16 16:35:04 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21629bca
net-misc/r8125: added new version 9.009.01
Signed-off-by: Karlson2k (Evgeny Grin) narod.ru>
Closes: https://github.com/gentoo/gentoo/pull/25923
Signed-off-by: Sam James gentoo.org>
net-misc/r8125/Manifest | 1 +
net-misc/r8125/r8125-9.009.01.ebuild | 40
2 files changed, 41 insertions(+)
diff --git a/net-misc/r8125/Manifest b/net-misc/r8125/Manifest
index 227f8d147425..45e8abd8602a 100644
--- a/net-misc/r8125/Manifest
+++ b/net-misc/r8125/Manifest
@@ -1 +1,2 @@
DIST r8125-9.008.00.tar.bz2 89622 BLAKE2B
d1106086d1bca53484f8536072cddd506087b5d49983cbb91e921e86674c074b38c8a01cb51d2ea5793d8ffbff6e97ab05e48720ff00a805c4096a1d62a0cc30
SHA512
ff740a49fcc94b3de826f6299c489ed3f92ba9123ca2b2fe3c9035eecd16d518b6a4e6c2fa2531bb670c52097a52a0fb2fdf71b721efb20c83bb59d94d99c6c6
+DIST r8125-9.009.01.tar.bz2 89897 BLAKE2B
65f64f504cedc7244bdae10fd1638e031eb103f562cd71d32b5f36b15541704086df8cea16829b289e8be61bacf3de559616884d1672a4d6b8e47211816de8d3
SHA512
8b717447e2048df0d88d8350da2edb58f704e893498fbebea4aa2a3ac45ea050d70e73e78d41ab94562228b9c01e6fe59810c501c5bb880db446c05b9b6aee0d
diff --git a/net-misc/r8125/r8125-9.009.01.ebuild
b/net-misc/r8125/r8125-9.009.01.ebuild
new file mode 100644
index ..2a1b7c235358
--- /dev/null
+++ b/net-misc/r8125/r8125-9.009.01.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-info linux-mod
+
+DESCRIPTION="r8125 vendor driver for Realtek RTL8125 PCI-E NICs"
+HOMEPAGE="https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software";
+
+SRC_URI="http://rtitwww.realtek.com/rtdrivers/cn/nic1/${P}.tar.bz2";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+MODULE_NAMES="r8125(net:${S}/src)"
+BUILD_TARGETS="modules"
+IUSE="+multi-tx-q ptp +rss use-firmware"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-9.008.00-linux-5.18.patch" # bug 852311
+)
+
+CONFIG_CHECK="~!R8169"
+WARNING_R8169="CONFIG_R8169 is enabled. ${PN} will not be loaded unless kernel
driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED."
+
+pkg_setup() {
+ linux-mod_pkg_setup
+ BUILD_PARAMS="KERNELDIR=${KV_DIR}"
+ BUILD_PARAMS+=" ENABLE_PTP_SUPPORT=$(usex ptp y n)"
+ BUILD_PARAMS+=" ENABLE_RSS_SUPPORT=$(usex rss y n)"
+ BUILD_PARAMS+=" ENABLE_MULTIPLE_TX_QUEUE=$(usex multi-tx-q y n)"
+ BUILD_PARAMS+=" ENABLE_USE_FIRMWARE_FILE=$(usex use-firmware y n)"
+}
+
+src_install() {
+ linux-mod_src_install
+ einstalldocs
+}
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/, net-misc/r8125/files/
commit: b6c29fdb0d3795cffabca4805bf11ac51b633351
Author: Karlson2k (Evgeny Grin) narod ru>
AuthorDate: Thu Jun 16 11:14:44 2022 +
Commit: Sam James gentoo org>
CommitDate: Thu Jun 16 16:35:03 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6c29fdb
net-misc/r8125: fixed build with kernel 5.18+
Bug: https://bugs.gentoo.org/852311
Signed-off-by: Karlson2k (Evgeny Grin) narod.ru>
Signed-off-by: Sam James gentoo.org>
.../r8125/files/r8125-9.008.00-linux-5.18.patch| 31 ++
net-misc/r8125/r8125-9.008.00.ebuild | 1 +
2 files changed, 32 insertions(+)
diff --git a/net-misc/r8125/files/r8125-9.008.00-linux-5.18.patch
b/net-misc/r8125/files/r8125-9.008.00-linux-5.18.patch
new file mode 100644
index ..6da1bdae6b6a
--- /dev/null
+++ b/net-misc/r8125/files/r8125-9.008.00-linux-5.18.patch
@@ -0,0 +1,31 @@
+Added compatibility with Linux Kernel 5.18+.
+
+Author: Karlson2k (Evgeny Grin)
+Gentoo bug: https://bugs.gentoo.org/852311
+
+diff --git a/src/r8125_n.c b/src/r8125_n.c
+
+--- a/src/r8125_n.c
b/src/r8125_n.c
+@@ -11852,11 +11852,20 @@ rtl8125_init_board(struct pci_dev *pdev,
+
+ if ((sizeof(dma_addr_t) > 4) &&
+ use_dac &&
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0)
+ !pci_set_dma_mask(pdev, DMA_BIT_MASK(64)) &&
+ !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) {
++#else // LINUX_VERSION_CODE >= KERNEL_VERSION(5,18,0)
++!dma_set_mask(&pdev->dev, DMA_BIT_MASK(64)) &&
++!dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(64))) {
++#endif // LINUX_VERSION_CODE >= KERNEL_VERSION(5,18,0)
+ dev->features |= NETIF_F_HIGHDMA;
+ } else {
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0)
+ rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
++#else // LINUX_VERSION_CODE >= KERNEL_VERSION(5,18,0)
++rc = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32));
++#endif // LINUX_VERSION_CODE >= KERNEL_VERSION(5,18,0)
+ if (rc < 0) {
+ #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0)
+ if (netif_msg_probe(tp))
+
diff --git a/net-misc/r8125/r8125-9.008.00.ebuild
b/net-misc/r8125/r8125-9.008.00.ebuild
index 7b0093e09b81..b848421ede7e 100644
--- a/net-misc/r8125/r8125-9.008.00.ebuild
+++ b/net-misc/r8125/r8125-9.008.00.ebuild
@@ -22,6 +22,7 @@ IUSE="+multi-tx-q ptp +rss use-firmware"
PATCHES=(
"${FILESDIR}/${PN}-9.008.00-linux-5.17.patch" # bug 839282
+ "${FILESDIR}/${PN}-9.008.00-linux-5.18.patch" # bug 852311
)
CONFIG_CHECK="~!R8169"
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: cdb25926e8bcfb4262324c16689970f8fd219602
Author: Joonas Niilola gentoo org>
AuthorDate: Sun Apr 24 08:38:25 2022 +
Commit: Joonas Niilola gentoo org>
CommitDate: Sun Apr 24 08:38:52 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdb25926
net-misc/r8125: drop 9.007.01
Signed-off-by: Joonas Niilola gentoo.org>
net-misc/r8125/Manifest | 1 -
net-misc/r8125/r8125-9.007.01.ebuild | 38
2 files changed, 39 deletions(-)
diff --git a/net-misc/r8125/Manifest b/net-misc/r8125/Manifest
index 28f0877dca1b..227f8d147425 100644
--- a/net-misc/r8125/Manifest
+++ b/net-misc/r8125/Manifest
@@ -1,2 +1 @@
-DIST r8125-9.007.01.tar.bz2 88973 BLAKE2B
fda3be9bded138bb6ee6b131c4d89d2dc777153eb1d003f11803d412d28957c944f220452762ca92ebb1cbfe2d5e7bdc0f9944517a0bb58ed0f3f112986c21ee
SHA512
753c328d5a962366ea1bd495ca3860309bc6ff8b2f3fb367a9f184441dd7c507d0eb4d63cc9b23851d0287e75ad2d602caee5ffed911691349cf8d0f37477a5c
DIST r8125-9.008.00.tar.bz2 89622 BLAKE2B
d1106086d1bca53484f8536072cddd506087b5d49983cbb91e921e86674c074b38c8a01cb51d2ea5793d8ffbff6e97ab05e48720ff00a805c4096a1d62a0cc30
SHA512
ff740a49fcc94b3de826f6299c489ed3f92ba9123ca2b2fe3c9035eecd16d518b6a4e6c2fa2531bb670c52097a52a0fb2fdf71b721efb20c83bb59d94d99c6c6
diff --git a/net-misc/r8125/r8125-9.007.01.ebuild
b/net-misc/r8125/r8125-9.007.01.ebuild
deleted file mode 100644
index f49305bd78cf..
--- a/net-misc/r8125/r8125-9.007.01.ebuild
+++ /dev/null
@@ -1,38 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit linux-info linux-mod
-
-DESCRIPTION="r8125 vendor driver for Realtek RTL8125 PCI-E NICs"
-HOMEPAGE="https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software";
-
-# The alternative direct URL for the file from the link above with description
-# "2.5G Ethernet LINUX driver r8125 for kernel up to 5.6" to avoid CAPTCHA
-SRC_URI="http://rtitwww.realtek.com/rtdrivers/cn/nic1/${P}.tar.bz2";
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-MODULE_NAMES="r8125(net:${S}/src)"
-BUILD_TARGETS="modules"
-IUSE="multi-tx-q ptp rss use-firmware"
-
-CONFIG_CHECK="~!R8169"
-WARNING_R8169="CONFIG_R8169 is enabled. ${PN} will not be loaded unless kernel
driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED."
-
-pkg_setup() {
- linux-mod_pkg_setup
- BUILD_PARAMS="KERNELDIR=${KV_DIR}"
- BUILD_PARAMS+=" ENABLE_PTP_SUPPORT=$(usex ptp y n)"
- BUILD_PARAMS+=" ENABLE_RSS_SUPPORT=$(usex rss y n)"
- BUILD_PARAMS+=" ENABLE_MULTIPLE_TX_QUEUE=$(usex multi-tx-q y n)"
- BUILD_PARAMS+=" ENABLE_USE_FIRMWARE_FILE=$(usex use-firmware y n)"
-}
-
-src_install() {
- linux-mod_src_install
- einstalldocs
-}
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: 9399aa9f353d1e186261f57daa842720ee419f22
Author: Joonas Niilola gentoo org>
AuthorDate: Sun Apr 24 07:39:50 2022 +
Commit: Joonas Niilola gentoo org>
CommitDate: Sun Apr 24 07:39:50 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9399aa9f
net-misc/r8125: WhitespaceFound
Signed-off-by: Joonas Niilola gentoo.org>
net-misc/r8125/r8125-9.008.00.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net-misc/r8125/r8125-9.008.00.ebuild
b/net-misc/r8125/r8125-9.008.00.ebuild
index 744699f8d859..7b0093e09b81 100644
--- a/net-misc/r8125/r8125-9.008.00.ebuild
+++ b/net-misc/r8125/r8125-9.008.00.ebuild
@@ -21,7 +21,7 @@ BUILD_TARGETS="modules"
IUSE="+multi-tx-q ptp +rss use-firmware"
PATCHES=(
-"${FILESDIR}/${PN}-9.008.00-linux-5.17.patch" # bug 839282
+ "${FILESDIR}/${PN}-9.008.00-linux-5.17.patch" # bug 839282
)
CONFIG_CHECK="~!R8169"
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/files/, net-misc/r8125/
commit: 1ab7a6af57556b2c20749d363d1980cf47458be3
Author: Karlson2k (Evgeny Grin) narod ru>
AuthorDate: Tue Apr 19 06:58:44 2022 +
Commit: Joonas Niilola gentoo org>
CommitDate: Sun Apr 24 07:38:43 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ab7a6af
net-misc/r8125: 9.008.00: fixed build with Linux Kernel 5.17.x
No revbump, no need to rebuild if module works.
Closes: https://bugs.gentoo.org/839282
Signed-off-by: Karlson2k (Evgeny Grin) narod.ru>
Signed-off-by: Joonas Niilola gentoo.org>
.../r8125/files/r8125-9.008.00-linux-5.17.patch| 115 +
net-misc/r8125/r8125-9.008.00.ebuild | 4 +
2 files changed, 119 insertions(+)
diff --git a/net-misc/r8125/files/r8125-9.008.00-linux-5.17.patch
b/net-misc/r8125/files/r8125-9.008.00-linux-5.17.patch
new file mode 100644
index ..1a4afdb31bea
--- /dev/null
+++ b/net-misc/r8125/files/r8125-9.008.00-linux-5.17.patch
@@ -0,0 +1,115 @@
+Added compatibility with Linux Kernel 5.17+.
+
+Author: Karlson2k (Evgeny Grin)
+Gentoo bug: https://bugs.gentoo.org/839282
+
+diff --git a/src/r8125_n.c b/src/r8125_n.c
+--- a/src/r8125_n.c
b/src/r8125_n.c
+@@ -349,7 +349,7 @@ static int rtl8125_change_mtu(struct net_device *dev, int
new_mtu);
+ static void rtl8125_down(struct net_device *dev);
+
+ static int rtl8125_set_mac_address(struct net_device *dev, void *p);
+-static void rtl8125_rar_set(struct rtl8125_private *tp, uint8_t *addr);
++static void rtl8125_rar_set(struct rtl8125_private *tp, const uint8_t *addr);
+ static void rtl8125_desc_addr_fill(struct rtl8125_private *);
+ static void rtl8125_tx_desc_init(struct rtl8125_private *tp);
+ static void rtl8125_rx_desc_init(struct rtl8125_private *tp);
+@@ -1750,7 +1750,13 @@ static void rtl8125_proc_module_init(void)
+ static int rtl8125_proc_open(struct inode *inode, struct file *file)
+ {
+ struct net_device *dev = proc_get_parent_data(inode);
+-int (*show)(struct seq_file *, void *) = PDE_DATA(inode);
++int (*show)(struct seq_file *, void *) =
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,17,0)
++PDE_DATA(inode);
++#else
++pde_data(inode);
++#endif
++
+
+ return single_open(file, show, dev);
+ }
+@@ -5234,8 +5240,15 @@ rtl8125_set_ring_size(struct rtl8125_private *tp, u32
rx, u32 tx)
+ }
+
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,17,0)
+ static void rtl8125_get_ringparam(struct net_device *dev,
+ struct ethtool_ringparam *ring)
++#else
++static void rtl8125_get_ringparam(struct net_device* dev,
++ struct ethtool_ringparam* ring,
++ struct kernel_ethtool_ringparam*
kernel_ring,
++ struct netlink_ext_ack* extack)
++#endif
+ {
+ struct rtl8125_private *tp = netdev_priv(dev);
+
+@@ -5245,8 +5258,15 @@ static void rtl8125_get_ringparam(struct net_device
*dev,
+ ring->tx_pending = tp->tx_ring[0].num_tx_desc;
+ }
+
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,17,0)
+ static int rtl8125_set_ringparam(struct net_device *dev,
+ struct ethtool_ringparam *ring)
++#else
++static int rtl8125_set_ringparam(struct net_device* dev,
++ struct ethtool_ringparam* ring,
++ struct kernel_ethtool_ringparam* kernel_ring,
++ struct netlink_ext_ack* extack)
++#endif
+ {
+ struct rtl8125_private *tp = netdev_priv(dev);
+ u32 new_rx_count, new_tx_count;
+@@ -10889,6 +10909,9 @@ rtl8125_get_mac_address(struct net_device *dev)
+ struct rtl8125_private *tp = netdev_priv(dev);
+ int i;
+ u8 mac_addr[MAC_ADDR_LEN];
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,17,0)
++u8 addr[ETH_ALEN];
++#endif
+
+ for (i = 0; i < MAC_ADDR_LEN; i++)
+ mac_addr[i] = RTL_R8(tp, MAC0 + i);
+@@ -10916,9 +10939,17 @@ rtl8125_get_mac_address(struct net_device *dev)
+ rtl8125_rar_set(tp, mac_addr);
+
+ for (i = 0; i < MAC_ADDR_LEN; i++) {
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,17,0)
+ dev->dev_addr[i] = RTL_R8(tp, MAC0 + i);
+ tp->org_mac_addr[i] = dev->dev_addr[i]; /* keep the original
MAC address */
++#else
++addr[i] = RTL_R8(tp, MAC0 + i);
++tp->org_mac_addr[i] = addr[i]; /* keep the original MAC
address */
++#endif
+ }
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,17,0)
++eth_hw_addr_set(dev, addr);
++#endif
+ #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,13)
+ memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len);
+ #endif
+@@ -10944,7 +10975,11 @@ rtl8125_set_mac_address(struct net_device *dev,
+ if (!is_valid_ether_addr(addr->sa_data))
+ return -EADDRNOTAVAIL;
+
++#if LINUX_VERSIO
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: 3f95554739a85b5feef6da33b05a00577e9d1afa Author: Karlson2k (Evgeny Grin) narod ru> AuthorDate: Sat Apr 23 10:19:57 2022 + Commit: Joonas Niilola gentoo org> CommitDate: Sun Apr 24 07:39:01 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f955547 net-misc/r8125: bump EAPI Signed-off-by: Karlson2k (Evgeny Grin) narod.ru> Closes: https://github.com/gentoo/gentoo/pull/25099 Signed-off-by: Joonas Niilola gentoo.org> net-misc/r8125/r8125-9.007.01.ebuild | 2 +- net-misc/r8125/r8125-9.008.00.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net-misc/r8125/r8125-9.007.01.ebuild b/net-misc/r8125/r8125-9.007.01.ebuild index 7389ba42cca3..f49305bd78cf 100644 --- a/net-misc/r8125/r8125-9.007.01.ebuild +++ b/net-misc/r8125/r8125-9.007.01.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit linux-info linux-mod diff --git a/net-misc/r8125/r8125-9.008.00.ebuild b/net-misc/r8125/r8125-9.008.00.ebuild index 8ea07b7634bc..744699f8d859 100644 --- a/net-misc/r8125/r8125-9.008.00.ebuild +++ b/net-misc/r8125/r8125-9.008.00.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit linux-info linux-mod
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: 373fb9c4264a8fabcbb567c4d9a2b343873006d1
Author: Karlson2k (Evgeny Grin) narod ru>
AuthorDate: Fri Mar 11 14:52:12 2022 +
Commit: Sam James gentoo org>
CommitDate: Fri Mar 11 15:21:09 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=373fb9c4
net-misc/r8125: new upstream version 9.008.0
Updated to the new upstream version 9.008.0.
Enabled by default 'rss' and 'multi-tx-q' use flags.
Signed-off-by: Karlson2k (Evgeny Grin) narod.ru>
Closes: https://github.com/gentoo/gentoo/pull/24491
Signed-off-by: Sam James gentoo.org>
net-misc/r8125/Manifest | 1 +
net-misc/r8125/r8125-9.008.00.ebuild | 38
2 files changed, 39 insertions(+)
diff --git a/net-misc/r8125/Manifest b/net-misc/r8125/Manifest
index e8457bed63e4..28f0877dca1b 100644
--- a/net-misc/r8125/Manifest
+++ b/net-misc/r8125/Manifest
@@ -1 +1,2 @@
DIST r8125-9.007.01.tar.bz2 88973 BLAKE2B
fda3be9bded138bb6ee6b131c4d89d2dc777153eb1d003f11803d412d28957c944f220452762ca92ebb1cbfe2d5e7bdc0f9944517a0bb58ed0f3f112986c21ee
SHA512
753c328d5a962366ea1bd495ca3860309bc6ff8b2f3fb367a9f184441dd7c507d0eb4d63cc9b23851d0287e75ad2d602caee5ffed911691349cf8d0f37477a5c
+DIST r8125-9.008.00.tar.bz2 89622 BLAKE2B
d1106086d1bca53484f8536072cddd506087b5d49983cbb91e921e86674c074b38c8a01cb51d2ea5793d8ffbff6e97ab05e48720ff00a805c4096a1d62a0cc30
SHA512
ff740a49fcc94b3de826f6299c489ed3f92ba9123ca2b2fe3c9035eecd16d518b6a4e6c2fa2531bb670c52097a52a0fb2fdf71b721efb20c83bb59d94d99c6c6
diff --git a/net-misc/r8125/r8125-9.008.00.ebuild
b/net-misc/r8125/r8125-9.008.00.ebuild
new file mode 100644
index ..a028be892582
--- /dev/null
+++ b/net-misc/r8125/r8125-9.008.00.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit linux-info linux-mod
+
+DESCRIPTION="r8125 vendor driver for Realtek RTL8125 PCI-E NICs"
+HOMEPAGE="https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software";
+
+# The alternative direct URL for the file from the link above with description
+# "2.5G Ethernet LINUX driver r8125 for kernel up to 5.6" to avoid CAPTCHA
+SRC_URI="http://rtitwww.realtek.com/rtdrivers/cn/nic1/${P}.tar.bz2";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+MODULE_NAMES="r8125(net:${S}/src)"
+BUILD_TARGETS="modules"
+IUSE="+multi-tx-q ptp +rss use-firmware"
+
+CONFIG_CHECK="~!R8169"
+WARNING_R8169="CONFIG_R8169 is enabled. ${PN} will not be loaded unless kernel
driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED."
+
+pkg_setup() {
+ linux-mod_pkg_setup
+ BUILD_PARAMS="KERNELDIR=${KV_DIR}"
+ BUILD_PARAMS+=" ENABLE_PTP_SUPPORT=$(usex ptp y n)"
+ BUILD_PARAMS+=" ENABLE_RSS_SUPPORT=$(usex rss y n)"
+ BUILD_PARAMS+=" ENABLE_MULTIPLE_TX_QUEUE=$(usex multi-tx-q y n)"
+ BUILD_PARAMS+=" ENABLE_USE_FIRMWARE_FILE=$(usex use-firmware y n)"
+}
+
+src_install() {
+ linux-mod_src_install
+ einstalldocs
+}
[gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/
commit: 1cc56fae05662314257f70a7a768ab82737ca31a Author: Karlson2k (Evgeny Grin) narod ru> AuthorDate: Fri Feb 18 13:13:14 2022 + Commit: Sam James gentoo org> CommitDate: Tue Mar 8 13:17:58 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1cc56fae net-misc/r8125: new package for Realtek r8125 driver This package is vendor drivers for Realtek RTL8125 network cards. While Linux kernel has support for these card, vendor driver provides more features, which are not available in in-tree driver. Closes: https://bugs.gentoo.org/736400 Closes: https://bugs.gentoo.org/834576 Signed-off-by: Karlson2k (Evgeny Grin) narod.ru> Closes: https://github.com/gentoo/gentoo/pull/24250 Signed-off-by: Sam James gentoo.org> net-misc/r8125/Manifest | 1 + net-misc/r8125/metadata.xml | 20 +++ net-misc/r8125/r8125-9.007.01.ebuild | 38 3 files changed, 59 insertions(+) diff --git a/net-misc/r8125/Manifest b/net-misc/r8125/Manifest new file mode 100644 index ..e8457bed63e4 --- /dev/null +++ b/net-misc/r8125/Manifest @@ -0,0 +1 @@ +DIST r8125-9.007.01.tar.bz2 88973 BLAKE2B fda3be9bded138bb6ee6b131c4d89d2dc777153eb1d003f11803d412d28957c944f220452762ca92ebb1cbfe2d5e7bdc0f9944517a0bb58ed0f3f112986c21ee SHA512 753c328d5a962366ea1bd495ca3860309bc6ff8b2f3fb367a9f184441dd7c507d0eb4d63cc9b23851d0287e75ad2d602caee5ffed911691349cf8d0f37477a5c diff --git a/net-misc/r8125/metadata.xml b/net-misc/r8125/metadata.xml new file mode 100644 index ..a0cb8723713f --- /dev/null +++ b/net-misc/r8125/metadata.xml @@ -0,0 +1,20 @@ + +https://www.gentoo.org/dtd/metadata.dtd";> + + + [email protected] + Evgeny Grin + + + [email protected] + Proxy Maintainers + + Official Realtek r8125 vendor linux driver. The following cards are currently supported: +RTL8125 RTL8125A RTL8125B(S)(G) + + Enable Multiple Tx Queue ("RSS" for sending) + Enable Precision Time Protocol support + Enable Receive Side Scaling (RSS) + Support automatic firmware loading + + diff --git a/net-misc/r8125/r8125-9.007.01.ebuild b/net-misc/r8125/r8125-9.007.01.ebuild new file mode 100644 index ..7389ba42cca3 --- /dev/null +++ b/net-misc/r8125/r8125-9.007.01.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit linux-info linux-mod + +DESCRIPTION="r8125 vendor driver for Realtek RTL8125 PCI-E NICs" +HOMEPAGE="https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software"; + +# The alternative direct URL for the file from the link above with description +# "2.5G Ethernet LINUX driver r8125 for kernel up to 5.6" to avoid CAPTCHA +SRC_URI="http://rtitwww.realtek.com/rtdrivers/cn/nic1/${P}.tar.bz2"; + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +MODULE_NAMES="r8125(net:${S}/src)" +BUILD_TARGETS="modules" +IUSE="multi-tx-q ptp rss use-firmware" + +CONFIG_CHECK="~!R8169" +WARNING_R8169="CONFIG_R8169 is enabled. ${PN} will not be loaded unless kernel driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED." + +pkg_setup() { + linux-mod_pkg_setup + BUILD_PARAMS="KERNELDIR=${KV_DIR}" + BUILD_PARAMS+=" ENABLE_PTP_SUPPORT=$(usex ptp y n)" + BUILD_PARAMS+=" ENABLE_RSS_SUPPORT=$(usex rss y n)" + BUILD_PARAMS+=" ENABLE_MULTIPLE_TX_QUEUE=$(usex multi-tx-q y n)" + BUILD_PARAMS+=" ENABLE_USE_FIRMWARE_FILE=$(usex use-firmware y n)" +} + +src_install() { + linux-mod_src_install + einstalldocs +}
