Page MenuHomeFreeBSD

Simplify nhop operations in ip_output().
ClosedPublic

Authored by melifaro on Aug 7 2021, 11:24 AM.
Tags
None
Referenced Files
F102144872: D31451.diff
Fri, Nov 8, 4:30 AM
Unknown Object (File)
Wed, Oct 23, 7:05 AM
Unknown Object (File)
Oct 7 2024, 8:23 AM
Unknown Object (File)
Oct 7 2024, 3:30 AM
Unknown Object (File)
Oct 6 2024, 10:25 PM
Unknown Object (File)
Oct 4 2024, 7:25 AM
Unknown Object (File)
Oct 3 2024, 9:20 AM
Unknown Object (File)
Oct 2 2024, 11:48 PM
Subscribers

Details

Summary
  • Consistently use nh instead of always dereferencing ro->ro_nh inside the if block.
  • Always use nexthop mtu, as it provides guarantee that mtu is accurate.
  • Pass nh pointer to rt_update_ro_flags() to allow upcoming uses of updating ro flags based on different nexthop.

Diff Detail

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