History log of /openbsd/sys/dev/pci/if_rge.c (Results 1 – 24 of 24)
Revision Date Author Comments
# 3b9d585e 13-Apr-2024 jsg <jsg@openbsd.org>

correct indentation

no functional change, found by smatch warnings
ok miod@ bluhm@


# 8cbc3b0a 22-Dec-2023 kevlo <kevlo@openbsd.org>

Update microcode, initialization and reset behavior.
Remove two chip versions (identified by MAC_CFG2 and MAC_CFG4) support that
may not be available in the market, and also raise rxring lwm to 32.

Update microcode, initialization and reset behavior.
Remove two chip versions (identified by MAC_CFG2 and MAC_CFG4) support that
may not be available in the market, and also raise rxring lwm to 32.

Tested by Nick Owens.

show more ...


# cf96265b 10-Nov-2023 bluhm <bluhm@openbsd.org>

Make ifq and ifiq interface MP safe.

Rename ifq_set_maxlen() to ifq_init_maxlen(). This function neither
uses WRITE_ONCE() nor a mutex and is called before the ifq mutex
is initialized. The new na

Make ifq and ifiq interface MP safe.

Rename ifq_set_maxlen() to ifq_init_maxlen(). This function neither
uses WRITE_ONCE() nor a mutex and is called before the ifq mutex
is initialized. The new name expresses that it should be used only
during interface attach when there is no concurrency.

Protect ifq_len(), ifq_empty(), ifiq_len(), and ifiq_empty() with
READ_ONCE(). They can be used without lock as they only read a
single integer.

OK dlg@

show more ...


# 93baed4d 21-Dec-2022 kevlo <kevlo@openbsd.org>

Update the Rx descriptor based on the vendor driver for Linux.
This fixes a panic seen by Geoff Steckel on RTL8125 with MCLGETL.

Tested by Geoff Steckel and Nick Owens.

ok dlg@


# 1b7ab755 20-Nov-2022 dlg <dlg@openbsd.org>

port the kstat code from re(4) to rge(4)

this bit of the hardware works the same, so it's straightforward work.

ok jmatthew@


# cd7fda7f 21-Apr-2022 kevlo <kevlo@openbsd.org>

Repair hw vlan tagging. Previously swapped byte RGE_TDEXTSTS_VTAG, this
caused no tag was sent on the outgoing packet.

Bug reported and the fix tested by Andrew Laramore.


# d895c343 12-Mar-2022 jmatthew <jmatthew@openbsd.org>

Constify struct cfattach, not struct cfdriver


# 8d2c75e4 11-Mar-2022 mpi <mpi@openbsd.org>

Constify struct cfattach.


# 67d345de 23-Nov-2021 kevlo <kevlo@openbsd.org>

Fix mbuf leaks after reception error in rge_rxeof().

Being that rge(4) is derived from re(4) it looks like it has the same
issues as fixed in re(4) rev 1.211.

From Brad
ok gnezdo@


# 77e7a1bf 16-Aug-2021 kevlo <kevlo@openbsd.org>

Remove redundant SIOCSIFMTU ioctl handler already handlded by ether_ioctl().

From Brad


# 162a5fba 12-Jul-2021 daniel <daniel@openbsd.org>

fix "evaluation order violation" flagged by coverity

Coverity flagged the self-assignment introduced in the previous commit.
This is CID 1505120.

ok kevlo@


# 804ff404 30-Mar-2021 kevlo <kevlo@openbsd.org>

Move tx/rx descriptors into their own structs.
This is a first step toward making rge work with multiple queues and interrupts.
Only one queue is currently used.

While here, update the RTL8125B micr

Move tx/rx descriptors into their own structs.
This is a first step toward making rge work with multiple queues and interrupts.
Only one queue is currently used.

While here, update the RTL8125B microcode.

ok jmatthew@

show more ...


# df6c2a29 11-Feb-2021 stsp <stsp@openbsd.org>

Add missing break in switch statement of rge_activate().

CID 1501716

ok kevlo@
and mestre@ had the same diff


# 9a04daec 24-Dec-2020 deraadt <deraadt@openbsd.org>

ramdisks do not contain WOL


# 7bcadffe 24-Dec-2020 kevlo <kevlo@openbsd.org>

Add Wake on LAN support to rge(4).

Tested by otto@ and myself.


# 471f2571 12-Dec-2020 jan <jan@openbsd.org>

Rename the macro MCLGETI to MCLGETL and removes the dead parameter ifp.

OK dlg@, bluhm@
No Opinion mpi@
Not against it claudio@


# 61f1e1c4 31-Oct-2020 kevlo <kevlo@openbsd.org>

Update the RTL8125B microcode and use ifiq_input and its return value to
apply backpressure to rxrs.


# 45227170 12-Oct-2020 kevlo <kevlo@openbsd.org>

Set the maximum frame size to RGE_JUMBO_FRAMELEN.

From Brad.
Tweak by myself.


# dfa3bc0b 07-Aug-2020 kevlo <kevlo@openbsd.org>

- Do better work in ifmedia_upd
- Eliminate the redundant bits of code for MTU handling; From Brad


# 81a23f33 22-Jul-2020 kevlo <kevlo@openbsd.org>

Add support for newer RTL8125 chipset (RTL8125B).
Tested for on a TP-LINK TL-NG421.

ok jmatthew@


# 0cae21bd 10-Jul-2020 patrick <patrick@openbsd.org>

Change users of IFQ_SET_MAXLEN() and IFQ_IS_EMPTY() to use the "new" API.

ok dlg@ tobhe@


# 1943b9bc 27-Mar-2020 krw <krw@openbsd.org>

Use correct bit mask to promptly exit rge_set_phy_power() and
rge_exit_oob() timeout loops.

Spotted by CID 1491296 and 1491309.

Fix & ok kevlo@


# 3f3cdc7c 02-Jan-2020 kevlo <kevlo@openbsd.org>

Fix bus_dmamap_sync(9) calls. While here fix a typo in a comment.


# be4e4fa3 18-Nov-2019 kevlo <kevlo@openbsd.org>

Introduce rge(4), a new driver for Realtek 8125 PCI Express 2.5Gb Ethernet
device.

"just commit!" deraadt@
"looks good to me" jmatthew@