HomeFreeBSD

netinet6: simplify defrouter_select_fib()

Description

netinet6: simplify defrouter_select_fib()

  • factor out underlying llentry check into a separate function and use it consistently
  • enter epoch once instead of per-router enter/exit
  • don't execute body with fibnum = RT_ALL_FIBS

Differential Revision: https://reviews.freebsd.org/D35523
MFC after: 2 weeks

Details

Provenance
melifaroAuthored on Aug 12 2022, 11:43 AM
Differential Revision
D35523: netinet6: simplify defrouter_select_fib()
Parents
rG730bfa280574: routing: add rib_match_gw() helper
Branches
Unknown
Tags
Unknown