Page MenuHomeFreeBSD

ifconfig: improve trimming off interface number at end
ClosedPublic

Authored by bz on May 17 2023, 8:46 PM.
Tags
None
Referenced Files
F108592419: D40137.id122074.diff
Sun, Jan 26, 5:59 PM
Unknown Object (File)
Fri, Jan 24, 5:40 PM
Unknown Object (File)
Thu, Jan 23, 6:34 PM
Unknown Object (File)
Thu, Jan 2, 1:10 AM
Unknown Object (File)
Nov 21 2024, 3:29 AM
Unknown Object (File)
Nov 18 2024, 9:57 AM
Unknown Object (File)
Nov 8 2024, 6:59 AM
Unknown Object (File)
Oct 28 2024, 8:48 AM
Subscribers

Details

Summary

When trying to auto-load a module, we trim the interface number off
the end. Currently we stop at the first digit. For interfaces which
have numbers in the driver name this does not work well.
In the current example ifconfig ath10k0 would load ath(4) instead of
ath10k(4). For module/interface names like rtw88[0] we never guess
correctly.
To improve for the case we can, start trimming off digits from the
end rather than the front.

Sponsored by: The FreeBSD Foundation
Reported by: thierry
MFC after: 20 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable