Page MenuHomeFreeBSD

aue(4): fix link flaps from MII bus
Needs ReviewPublic

Authored by rkitover_gmail.com on Jun 14 2026, 3:28 AM.
Referenced Files
F168073086: D57567.diff
Wed, Aug 26, 6:20 AM
Unknown Object (File)
Wed, Aug 26, 2:14 AM
Unknown Object (File)
Tue, Aug 25, 8:16 PM
Unknown Object (File)
Sat, Aug 22, 10:13 AM
Unknown Object (File)
Sat, Aug 22, 10:06 AM
Unknown Object (File)
Wed, Aug 19, 2:48 AM
Unknown Object (File)
Tue, Aug 18, 9:07 PM
Unknown Object (File)
Tue, Aug 11, 11:40 PM
Subscribers
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

A race condition in the MII layer causes spurious events, see:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252165

. Add a lock to serialize operations on the MII bus and skip ticks while
it is held.

I have tested this patch with my Belkin USB 10/100 Ethernet Adapter
F5D5050.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 73860
Build 70743: arc lint + arc unit