HomeFreeBSD

Simplify nhop operations in ip_output().

Description

Simplify nhop operations in ip_output().

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.

Differential Revision: https://reviews.freebsd.org/D31451
Reviewed by: kp

(cherry picked from commit 9748eb742791dcfbb6496dc5c7c72c9283759baf)

Details

Provenance
melifaroAuthored on Aug 7 2021, 11:18 AM
Reviewer
kp
Differential Revision
D31451: Simplify nhop operations in ip_output().
Parents
rG4151d8ccdc64: [lltable] Restructure nd6 code.
Branches
Unknown
Tags
Unknown