HomeFreeBSD

Split nhop_ref_object().

Description

Split nhop_ref_object().

Now nhop_ref_object() unconditionally acquires a reference, and the new
nhop_try_ref_object() uses refcount_acquire_if_not_zero() to
conditionally acquire a reference. Since the former is cheaper, use it
when we know that the initial counter value is non-zero. No functional
change intended.

Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D25535

Details

Provenance
markjAuthored on
Reviewer
melifaro
Differential Revision
D25535: Introduce nhop_ref_locked_object().
Parents
rS362975: MFC r359154:
Branches
Unknown
Tags
Unknown