]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
LinuxKPI: 802.11: lsta txq locking cleanup
authorBjoern A. Zeeb <bz@FreeBSD.org>
Wed, 14 Feb 2024 21:56:48 +0000 (21:56 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Fri, 16 Feb 2024 15:50:11 +0000 (15:50 +0000)
commitfa4e4257943650c0b5f58c01bb0bdfadea61dfb2
treee3825464426ac90da701e9d145d77311d4cc058e
parent23d4d0fcc1be3d2f44054dd12725098ac7ee34a9
LinuxKPI: 802.11: lsta txq locking cleanup

Rename the LSTA lock to LSTA_TXQ lock as that is really what it is and
put down the full set of macros.  Replace the init and destroy with the
macro invocation rather than direct code.

Put locking around the txq_ready unset and check. Move the taskq_enqueue
call under lock to be sure we do not call it anymore after txq_ready
got unset.

Leave a comment related to the node reference which is passed into the
TX path on the recvif mbuf pointer.

Fixes: 0936c648ad0ee
PR: 274382 (possibly)
MFC after: 1 day
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D43909
sys/compat/linuxkpi/common/src/linux_80211.c
sys/compat/linuxkpi/common/src/linux_80211.h