Page MenuHomeFreeBSD

ofed: Mechanically convert to IfAPI
ClosedPublic

Authored by jhibbits on Feb 13 2023, 6:43 PM.
Tags
None
Referenced Files
F108430825: D38560.id.diff
Fri, Jan 24, 5:28 PM
Unknown Object (File)
Sat, Jan 18, 9:44 PM
Unknown Object (File)
Tue, Jan 7, 2:49 PM
Unknown Object (File)
Nov 21 2024, 2:37 PM
Unknown Object (File)
Nov 21 2024, 10:07 AM
Unknown Object (File)
Nov 8 2024, 3:03 AM
Unknown Object (File)
Nov 8 2024, 12:36 AM
Unknown Object (File)
Oct 4 2024, 11:32 PM
Subscribers

Details

Summary

Because of the intricacies of this code it wasn't purely scripted, but
instead hand-mechanical.

Diff Detail

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

Event Timeline

Update to use the new if_iter API. Remove rest of struct ifnet uses in the code.

Looks pretty good to me. If any issues pop up I know one commit to look at :-)

One idea that comes to mind:
if_getdrvflags(dev) & IFF_DRV_OACTIVE

Instead of doing bit-tests, maybe we should convert those flags to enums, so that we query a flag based on an enum. Then there can be more than 32-64 flags ...

This revision is now accepted and ready to land.Mar 23 2023, 6:33 PM
This revision was automatically updated to reflect the committed changes.