Page MenuHomeFreeBSD

Add nhop parameter to rti_filter callback.

Authored by melifaro on Apr 16 2020, 8:22 AM.



One of the goals of the new routing KPI defined in r359823 is to entirely hide`struct rtentry` from the consumers.
It will allow to improve routing subsystem internals and deliver more features much faster.
This change is one of the ongoing changes to eliminate direct struct rtentry field accesses.

Additionally, with the followup multipath changes, single
rtentry can point to multiple nexthops.

With that in mind, convert rti_filter callback used when traversing the routing table to accept
pair (rt, nhop) instead of nexthop.

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

ae added inline comments.
231 ↗(On Diff #70635)

A space is missed.

This revision is now accepted and ready to land.Apr 16 2020, 11:34 AM
This revision was automatically updated to reflect the committed changes.