Page MenuHomeFreeBSD

ofed: Mechanically convert to IfAPI
ClosedPublic

Authored by jhibbits on Feb 13 2023, 6:43 PM.
Tags
None
Referenced Files
F175338773: D38560.diff
Sat, Oct 10, 2:49 AM
Unknown Object (File)
Wed, Sep 30, 11:51 PM
Unknown Object (File)
Sun, Sep 20, 9:26 AM
Unknown Object (File)
Sep 10 2026, 6:23 AM
Unknown Object (File)
Sep 2 2026, 2:33 PM
Unknown Object (File)
Sep 2 2026, 12:59 PM
Unknown Object (File)
Sep 2 2026, 12:59 PM
Unknown Object (File)
Aug 30 2026, 4:44 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 49742
Build 46632: arc lint + arc unit

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.