]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make ng_netflow(9) use new routing KPI.
authormelifaro <melifaro@FreeBSD.org>
Thu, 14 Jan 2016 13:14:12 +0000 (13:14 +0000)
committermelifaro <melifaro@FreeBSD.org>
Thu, 14 Jan 2016 13:14:12 +0000 (13:14 +0000)
commite438997c5ad54ff6759ae8e26136da3bc3163fe6
treeeeb35ad1f5beaf8a2f3a40cecf7071100e5b67a6
parentcb596468343267a3152e121be23e0187d0684a16
Make ng_netflow(9) use new routing KPI.

Netflow module is supposed to store (along with fields like
  gateway address and interface index) matched netmask for each record.
  This (currently) requires returning individual route entries, instead
  of optimized next-hop structure. Given that, use control-plane
  rib_lookup_info() function to avoid accessing rtentries directly.
While rib_lookup_info() might be slower, than fibX_lookup() flavours,
  it is more scalable than rtalloc1_fib(), because rtentry mutex is
  not acquired.
sys/netgraph/netflow/netflow.c