HomeFreeBSD

ifnet API: Change if_init() to take context argument

Description

ifnet API: Change if_init() to take context argument

Some drivers, like iflib drivers, take a 'context' argument instead of a
ifnet argument, as a single interface may have multiple contexts.
Follow this scheme by passing the context argument down. Most drivers
will likely pass 'ifp' as the context.

Reviewed by: glebius
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D38102

Details

Provenance
jhibbitsAuthored on Jan 12 2023, 6:33 PM
Reviewer
glebius
Differential Revision
D38102: ifnet API: Change if_init() to take context argument
Parents
rG2e6a8c1ae3ce: Mechanically convert etherswitch drivers to IfAPI
Branches
Unknown
Tags
Unknown