<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/rge, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-05-11T15:26:03Z</updated>
<entry>
<title>rge: add the Intel Killer E5000 PCI ID</title>
<updated>2026-05-11T15:26:03Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2026-05-11T15:26:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=92f623e4a98876c897669be0f1220887c996918e'/>
<id>urn:sha1:92f623e4a98876c897669be0f1220887c996918e</id>
<content type='text'>
This and the E3000 are both handled by the r8169 driver in Linux, and
reportedly this is infact just a straight re-brand of the RTL8126.

Tested by:	"Sinetek" on Discord
Reviewed by:	adrian
Differential Revision:	https://reviews.freebsd.org/D56917
</content>
</entry>
<entry>
<title>rge: add disable_aspm tunable for PCIe power management</title>
<updated>2026-04-17T02:34:55Z</updated>
<author>
<name>Christos Longros</name>
<email>chris.longros@gmail.com</email>
</author>
<published>2026-04-17T02:34:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4390c37b5c94b6de4cb4bdbcc3967efe74fa7517'/>
<id>urn:sha1:4390c37b5c94b6de4cb4bdbcc3967efe74fa7517</id>
<content type='text'>
Add a per-interface loader tunable dev.rge.%d.disable_aspm to
disable PCIe ASPM (L0s/L1) and ECPM on the RTL8125/8126/8127.

Disabling ASPM reduces latency at the cost of higher power
consumption. Default is off (ASPM left as configured by BIOS).

Signed-off-by: Christos Longros &lt;chris.longros@gmail.com&gt;

Reviewed by:	adrian
Differential Revision:	https://reviews.freebsd.org/D56103
</content>
</entry>
<entry>
<title>rge: add Wake-on-LAN support for magic packet</title>
<updated>2026-04-10T17:31:38Z</updated>
<author>
<name>Christos Longros</name>
<email>chris.longros@gmail.com</email>
</author>
<published>2026-04-10T17:31:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fc68534a9ad93f6df1756ffa8e707c30a35ce4d7'/>
<id>urn:sha1:fc68534a9ad93f6df1756ffa8e707c30a35ce4d7</id>
<content type='text'>
Advertise IFCAP_WOL_MAGIC when PCI power management is available
and enable it by default.  On suspend or shutdown, rge_setwol()
enables the WOL_MAGIC and WOL_LANWAKE bits in CFG3/CFG5, disables
the RXDV gate, and enables PM so the NIC stays powered to watch
for magic packets.

Move hardware-specific WOL register configuration into
rge_wol_config() in if_rge_hw.c to keep hardware-specific
functions in sync with OpenBSD.

Update rge.4 to document WoL support.

Tested on FreeBSD 16.0-CURRENT bare metal with Realtek RTL8125
on a Gigabyte B650 Gaming X AX motherboard.

Signed-off-by: Christos Longros &lt;chris.longros@gmail.com&gt;

Reviewed by:	adrian
Differential Revision:	https://reviews.freebsd.org/D56259
</content>
</entry>
<entry>
<title>rge: make rx_process_limit a sysctl tunable</title>
<updated>2026-03-25T01:27:14Z</updated>
<author>
<name>Christos Longros</name>
<email>chris.longros@gmail.com</email>
</author>
<published>2026-03-25T01:27:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=930a790c2abb3680a3449a1f9ce2eff2be7acc36'/>
<id>urn:sha1:930a790c2abb3680a3449a1f9ce2eff2be7acc36</id>
<content type='text'>
The number of packets processed per interrupt was hardcoded to 16.
Add a per-interface sysctl dev.rge.%d.rx_process_limit tunable so
users can adjust this value at runtime.

Signed-off-by: Christos Longros &lt;chris.longros@gmail.com&gt;

Reviewed by:	ziaee, adrian
Differential Revision:	https://reviews.freebsd.org/D56014
</content>
</entry>
<entry>
<title>rge: handle interface flags changes</title>
<updated>2026-03-25T01:22:52Z</updated>
<author>
<name>Brad Smith</name>
<email>brad@comstyle.com</email>
</author>
<published>2026-03-25T01:22:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f7fd4e79fa0943446aa5900147f737a70c73d9e3'/>
<id>urn:sha1:f7fd4e79fa0943446aa5900147f737a70c73d9e3</id>
<content type='text'>
Handle interface flags like other drivers do.

Reviewed by:	zlei, adrian
Differential Revision:	https://reviews.freebsd.org/D55728
</content>
</entry>
<entry>
<title>rge: use C style comments instead of C++</title>
<updated>2026-03-15T20:10:59Z</updated>
<author>
<name>Christos Longros</name>
<email>chris.longros@gmail.com</email>
</author>
<published>2026-03-15T20:09:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9976cff55e8897f74d970567e61512103216cf58'/>
<id>urn:sha1:9976cff55e8897f74d970567e61512103216cf58</id>
<content type='text'>
FreeBSD style(9) mandates C style comments. The initial import from
OpenBSD left several C++ style // comments in if_rge.c and if_rgevar.h.
Replace them with proper /* */ comments.

Also fix a malformed comment that mixed // with a closing */.

Signed-off-by: Christos Longros &lt;chris.longros@gmail.com&gt;

Reviewed by:	adrian
Differential Revision:	https://reviews.freebsd.org/D55743
</content>
</entry>
<entry>
<title>rge: log silicon revision during attach</title>
<updated>2026-02-22T18:07:37Z</updated>
<author>
<name>Christos Longros</name>
<email>chris.longros@gmail.com</email>
</author>
<published>2026-02-22T18:06:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=acbf7498f5e11b00ffcd6c12bdb8bd1eddeb6d7f'/>
<id>urn:sha1:acbf7498f5e11b00ffcd6c12bdb8bd1eddeb6d7f</id>
<content type='text'>
The initial import from OpenBSD contained chip revision printf() calls
commented out, as OpenBSD's bare printf() style does not translate to
FreeBSD's device_printf() idiom. The result is that users cannot
distinguish RTL8125 from RTL8125B, RTL8125D_1, RTL8125D_2 etc. via
dmesg alone, even though all variants show as '&lt;RTL8125&gt;' from the PCI
probe string.

Add proper device_printf() calls including the raw hwrev value,
consistent with how re(4) reports chip revisions.

Signed-off-by: Christos Longros &lt;chris.longros@gmail.com&gt;

Reviewed by:	zlei, imp, adrian
Differential Revision:	https://reviews.freebsd.org/D55402
</content>
</entry>
<entry>
<title>rge: correctly free busdma memory / zero things out only if allocated</title>
<updated>2026-02-22T18:07:34Z</updated>
<author>
<name>John</name>
<email>john@cybersashi.com</email>
</author>
<published>2026-02-22T18:06:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d1947d0a1a55f905e5ed076d46d4f75a00c6f823'/>
<id>urn:sha1:d1947d0a1a55f905e5ed076d46d4f75a00c6f823</id>
<content type='text'>
* Only free busdma memory that was allocated
* Don't free tx/rx rings until their buffers have also been freed

PR:	kern/293307

Reviewed by:	zlei
Differential Revision:	https://reviews.freebsd.org/D55420
</content>
</entry>
<entry>
<title>rge: fix callout setup/teardown; handle invalid ethernet address</title>
<updated>2026-02-22T18:07:29Z</updated>
<author>
<name>John</name>
<email>john@cybersashi.com</email>
</author>
<published>2026-02-22T18:06:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d5ca52182e522a192d0c8fbdaa438f50e200082f'/>
<id>urn:sha1:d5ca52182e522a192d0c8fbdaa438f50e200082f</id>
<content type='text'>
* Do the callout init early; since some of the teardown path expects
  the callout to be valid

* Handle an invalid ethernet address by generating a local one.

PR:	kern/293307

Reviewed by:	zlei
Differential Revision:	https://reviews.freebsd.org/D55419
</content>
</entry>
<entry>
<title>if_rge: sync with up to date OpenBSD code</title>
<updated>2026-02-04T06:29:10Z</updated>
<author>
<name>Brad Smith</name>
<email>brad@comstyle.com</email>
</author>
<published>2026-02-04T06:25:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3f3cc6fd69e4e3abf6b48c242e93b650c00451c1'/>
<id>urn:sha1:3f3cc6fd69e4e3abf6b48c242e93b650c00451c1</id>
<content type='text'>
e574c2d36cbcacf2556088879be336775e80154b
Add support for RTL8125D revision 0x6890000

Reviewed by:	adrian
Differential Revision:	https://reviews.freebsd.org/D54922
MFC after: 2 weeks
</content>
</entry>
</feed>
