net80211: de-inline ieee80211_ref_node()
authorBjoern A. Zeeb <bz@FreeBSD.org>
Mon, 2 Oct 2023 20:20:14 +0000 (20:20 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Thu, 5 Oct 2023 14:56:02 +0000 (14:56 +0000)
commit2188852196151e5f04533eaa928a7ad0896e4bd6
tree1fc9174f0d7a061ba8f32c99f987e9b095871976
parent0d2cb6a6ecde3b271ede59d77801cb43a8804688
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
X-MFC: never
sys/net80211/ieee80211_node.c
sys/net80211/ieee80211_node.h