HomeFreeBSD

net80211: de-inline ieee80211_ref_node()

Description

net80211: de-inline ieee80211_ref_node()

Make ieee80211_ref_node() a macro so we can pass func, LINE
in for IEEE80211_DEBUG_REFCNT as we do for other refcount related
functions. Add the appropriate IEEE80211_DPRINTF() call to the
_ieee80211_ref_node() implementation to support wlandebug(8) +node
printf style tracing.
As a plus we can now also use Dtrace fbt on the
_ieee80211_{ref,free}_node() implementations with futher logic,
gathering backtraces, etc. more flexibly.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 2188852196151e5f04533eaa928a7ad0896e4bd6)

Details

Provenance
bzAuthored on Oct 2 2023, 8:20 PM
Parents
rGb50d8a160880: net80211: make ieee80211_alloc_node() private
Branches
Unknown
Tags
Unknown