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
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
Unknown Object (File)
Thu, Oct 1, 8:24 PM
Unknown Object (File)
Thu, Oct 1, 3:28 PM
Unknown Object (File)
Thu, Oct 1, 2:13 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