rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf

From: Nuno Teixeira <eduardo_at_freebsd.org>
Date: Thu, 24 Apr 2025 11:04:40 UTC
Hello,

At main-n276705-e3e55936ce3b: Wed Apr 23, rtwn driver became almost
useless on my amd64 and aarch64.

Tested with RTL8811AU and RTL8821AU usb dongles.

Should I open a PR?
Any tips to debug this?

Thanks,

`git pull --rebase` takes too long time to complete and sometimes fails.

iperf3 shows bellow resilts on amd64/aarch64 with both cards.

% iperf3 -c hp -R
Connecting to host hp, port 5201
Reverse mode, remote host hp is sending
[  5] local 192.168.1.82 port 43550 connected to 192.168.1.100 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  0.00 Bytes  0.00 bits/sec
[  5]   1.00-2.06   sec  0.00 Bytes  0.00 bits/sec
[  5]   2.06-3.00   sec   128 KBytes  1.11 Mbits/sec
[  5]   3.00-4.03   sec   128 KBytes  1.02 Mbits/sec
[  5]   4.03-5.01   sec  0.00 Bytes  0.00 bits/sec
[  5]   5.01-6.01   sec   256 KBytes  2.10 Mbits/sec
[  5]   6.01-7.06   sec  0.00 Bytes  0.00 bits/sec
[  5]   7.06-8.06   sec  0.00 Bytes  0.00 bits/sec
[  5]   8.06-9.01   sec  0.00 Bytes  0.00 bits/sec
[  5]   9.01-10.01  sec   128 KBytes  1.04 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.01  sec   768 KBytes   628 Kbits/sec  156            sender
[  5]   0.00-10.01  sec   640 KBytes   524 Kbits/sec                  receiver

iperf Done.

-- 
Nuno Teixeira
FreeBSD UNIX:  <eduardo@FreeBSD.org>   Web:  https://FreeBSD.org