wifi: rt2800usb: don't wait for every TX status
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | wifi: rt2x00: add a mode that doesn't wait for every TX statusdrivers/ drivers/ drivers/ +1 more | +202 | 0 replies | |
| 2/3 | wifi: rt2800: support TX status samplingdrivers/ drivers/ drivers/ | +180 | 0 replies | |
| 3/3 | wifi: rt2800usb: don't hold every TX frame until its status is readdrivers/ | +26 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH wireless-next 0/3] wifi: rt2800usb: don't wait for every TX status
rt2800usb keeps each frame in its TX queue until it has read the frame's TX status from TX_STA_FIFO, one USB control transfer per report. On hosts where a control transfer takes several milliseconds (AMD X470 chipset USB 2.0 ports take 3 ms or more), TX is capped at a few hundred frames per second.
Patch 1 adds a mode to rt2x00lib, REQUIRE_TXSTATUS_SAMPLING, in which only frames that need their status (mac80211 asked for one, or BARs) wait for it. All other frames are completed when their DMA is done, and a few of them still ask for a report that only feeds rate control. Patch 2 implements it in rt2800lib using the TXWI packet id: 0 for no report, the queue for waiting frames, and a sample bit plus the low bits of the requested MCS for rate control samples. Patch 3 enables it for rt2800usb. rt2800pci/soc behaviour is unchanged.
RT3070 station, MT7612U AP, channel 6 HT20, WPA2-CCMP, same host, median of three 15 s iperf3 runs:
before after TCP TX 3.4 Mbit/s, ~340 retr 37.8 Mbit/s, 1-8 retr UDP TX (60M sent) 8.9 Mbit/s, 60% loss 43.8 Mbit/s, 0% loss TCP RX 10.2 Mbit/s 29.8 Mbit/s
A GTK rekey every 10 s during 60 s of saturating TX with an A-MPDU session completed every time, with no TX status timeouts or unmatched reports. Each patch builds with W=1 and passes checkpatch --strict.
An AI coding assistant (Claude Code, Claude Opus 5.5) was used to review the series, write the fixes from that review, run the hardware tests and draft this cover letter.
Rosen Penev (3):
wifi: rt2x00: add a mode that doesn't wait for every TX status
wifi: rt2800: support TX status sampling
wifi: rt2800usb: don't hold every TX frame until its status is read
drivers/net/wireless/ralink/rt2x00/rt2800.h | 6 + .../net/wireless/ralink/rt2x00/rt2800lib.c | 175 +++++++++++++++++- .../net/wireless/ralink/rt2x00/rt2800lib.h | 1 + .../net/wireless/ralink/rt2x00/rt2800usb.c | 27 ++- drivers/net/wireless/ralink/rt2x00/rt2x00.h | 22 +++ .../net/wireless/ralink/rt2x00/rt2x00dev.c | 79 +++++++- .../net/wireless/ralink/rt2x00/rt2x00queue.c | 93 ++++++++++ .../net/wireless/ralink/rt2x00/rt2x00queue.h | 13 ++ 8 files changed, 408 insertions(+), 8 deletions(-)
Signature · 1 line
2.56.1