Page MenuHomeFreeBSD

Use more light-weight versions of routing lookup functions in ng_netflow.
ClosedPublic

Authored by melifaro on Dec 18 2020, 8:57 PM.
Tags
None
Referenced Files
F164555477: D27675.id80919.diff
Sun, Aug 2, 1:58 AM
Unknown Object (File)
Fri, Jul 31, 2:05 AM
Unknown Object (File)
Thu, Jul 30, 10:44 AM
Unknown Object (File)
Sun, Jul 26, 4:25 PM
Unknown Object (File)
Sun, Jul 26, 9:49 AM
Unknown Object (File)
Fri, Jul 24, 7:39 PM
Unknown Object (File)
Wed, Jul 22, 12:33 PM
Unknown Object (File)
Tue, Jul 21, 10:18 AM
Subscribers

Details

Summary

Use recently-added combination of fib[46]_lookup_rt() which returns rtentry & raw nexthop with
rt_get_inet[6]_plen() which returns address/prefix length of prefix inside rt instead of rib_lookup_info().

New calls does not require reference counting objects and reduce the amount of copied/processed rtentry data.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 35523
Build 32425: arc lint + arc unit

Event Timeline

melifaro added a reviewer: network.

Excellent example how to apply the new API.

This revision was not accepted when it landed; it landed in state Needs Review.Dec 26 2020, 11:33 AM
This revision was automatically updated to reflect the committed changes.