Page MenuHomeFreeBSD

Add nhop parameter to rti_filter callback.
ClosedPublic

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

Details

Summary

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

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

Event Timeline

ae added inline comments.
sys/netinet/in_rmx.c
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.