HomeFreeBSD

Add tracking for rib/nhops/nhgrp objects and provide cumulative number…

Description

Add tracking for rib/nhops/nhgrp objects and provide cumulative number accessors.

The resulting KPI can be used by routing table consumers to estimate the required
scale for route table export.

  • Add tracking for rib routes
  • Add accessors for number of nexthops/nexthop objects
  • Simplify rib_unsubscribe: store rnh we're attached to instead of requiring it up again on destruction. This helps in the cases when rnh is not linked yet/already unlinked.

Differential Revision: https://reviews.freebsd.org/D27404

Details

Provenance
melifaroAuthored on
Differential Revision
D27404: Add tracking for rib/nhops/nhgrp objects and cumulative number accessors.
Parents
rS368145: MFC r368083:
Branches
Unknown
Tags
Unknown