Page MenuHomeFreeBSD

ifnet/API: Move struct ifnet definition to a <net/if_private.h>
AbandonedPublic

Authored by jhibbits on Jan 13 2023, 9:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 6:35 AM
Unknown Object (File)
Dec 12 2023, 8:09 AM
Unknown Object (File)
Nov 15 2023, 5:04 PM
Unknown Object (File)
Nov 10 2023, 2:42 AM
Unknown Object (File)
Nov 9 2023, 11:46 PM
Unknown Object (File)
Nov 1 2023, 7:05 PM
Unknown Object (File)
Sep 30 2023, 7:05 PM
Unknown Object (File)
Sep 9 2023, 2:16 AM
Subscribers

Details

Summary

Hide the ifnet structure definition, no user serviceable parts inside,
it's a netstack implementation detail. Include it temporarily in
<net/if_var.h> until all drivers are updated to use the accessors
exclusively.

Sponsored by: Juniper Networks, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 49099
Build 45988: arc lint + arc unit

Event Timeline

sys/net/if_private.h
37

You probably want to wrap it into _KERNEL, otherwise buildworld headercheck will be unhappy

sys/net/if_private.h
37

Good point, will have it in my next update, with any other feedback I get.

glebius added inline comments.
sys/net/route/route_rtentry.c
51

This doesn't seem related. If it truly is, why not just remove the line?

sys/net/route/route_rtentry.c
51

You're right, this include should be removed. The header isn't needed, and this header is the only reason if_private.h would be needed in this file.

This comment was removed by jhibbits.
This revision is now accepted and ready to land.Jan 23 2023, 6:44 PM
This revision now requires review to proceed.Jan 23 2023, 6:44 PM

Have to close it somehow.