Page MenuHomeFreeBSD

LinuxKPI: add KPI for netdev_notifier_info returning ifp
ClosedPublic

Authored by bz on May 28 2021, 12:59 PM.

Details

Summary

While currently the ifp gets cast to a net_device and then returned
and consumers are expecting an ifp again allow parallel usage now and
in the future by extending and also passing the ifp directly back in
the netdev_notifier_info. Add a function to return the ifp instead of
the net_device.

Sponsored by: The FreeBSD Foundation
MFC after: 10 days
Suggested by: hselasky

Test Plan

Currently untested; not even compiled.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.