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
F175574029: D57567.id179706.diff
Sun, Oct 11, 7:13 PM
Unknown Object (File)
Sat, Oct 10, 12:25 PM
Unknown Object (File)
Fri, Oct 9, 3:11 PM
Unknown Object (File)
Wed, Oct 7, 11:21 PM
Unknown Object (File)
Mon, Oct 5, 2:41 PM
Unknown Object (File)
Mon, Oct 5, 1:45 PM
Unknown Object (File)
Mon, Oct 5, 11:50 AM
Unknown Object (File)
Mon, Oct 5, 3:22 AM
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