opnsense-src/sys/compat
Bjoern A. Zeeb eac3646fcd LinuxKPI: 802.11: more TXQ implementation and locking
Implement ieee80211_handle_wake_tx_queue() and ieee80211_tx_dequeue_ni()
while looking at the code.  They are needed by various wireless drivers.

Introduce an ltxq lock and protect the skbq by that.
This prevents panics due to a race between a driver upcall and
the net80211 tx downcall.  While the former should be rcu protected we
cannot rely on that.
It remains questionable if we need to protect further fields there
(with a different lock?).

Also introduce a txq_mtx on the lhw which needs to be further deployed
but we need to come up with a good strategy to not end up with 7 different
locks.

Sponsored by:	The FreeBSD Foundation
PR:		274178, 275710
Tested by:	cc
MFC after:	3 days
2023-12-19 00:50:49 +00:00
..
freebsd32 Remove never implemented sbrk and sstk syscalls 2023-12-04 20:36:08 +00:00
ia32 sysentvec: add SV_SIGSYS flag 2023-10-03 01:30:52 +03:00
lindebugfs sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
linprocfs sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
linsysfs linsysfs(5): Remove sys/cdefs.h inclusion where it's not needed due to 685dc743 2023-08-18 13:12:02 +03:00
linux sockets: don't malloc/free sockaddr memory on getpeername/getsockname 2023-11-30 08:31:10 -08:00
linuxkpi LinuxKPI: 802.11: more TXQ implementation and locking 2023-12-19 00:50:49 +00:00
x86bios sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00