wifi: rt2x00: improve the throughput of rt2800usb
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest7 patches 0 repliesNew
- v27 patches 12 repliesSuperseded
- v18 patches 11 repliesSuperseded
Changes in v3 from the cover letter
- Crystal calibration: save the frequency offset of the beacons in rt2x00lib_rxdone_skb() instead of fill_rxdone, through rxdesc
- RX aggregation: enable it for usb_maxpacket >= 512
- GRO: Add locking and reference mt76 on how it is done
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | wifi: rt2x00: start the link tuner when an interface is addeddrivers/ | +13 | 0 replies | |
| 2/7 | wifi: rt2800: calibrate the crystal of RT3593 with the beaconsdrivers/ drivers/ drivers/ +6 more | +134 | 0 replies | |
| 3/7 | wifi: rt2800: make MCS 16 fall back to MCS 8 on devices with 3 TX chainsdrivers/ drivers/ drivers/ | +26 | 0 replies | |
| 4/7 | wifi: rt2800: don't report an A-MPDU length to minstrel_htdrivers/ drivers/ | +3 | 0 replies | |
| 5/7 | wifi: rt2800usb: enable RX bulk aggregationdrivers/ drivers/ drivers/ +3 more | +100 | 0 replies | |
| 6/7 | wifi: rt2800: support A-MSDU in A-MPDUdrivers/ | +1 | 0 replies | |
| 7/7 | wifi: rt2x00usb: use a threaded NAPI with GRO for RXdrivers/ drivers/ drivers/ | +89 | 0 replies |
Reviews trailers per patch
2 of 7 patches have a Reviewed-by or Acked-by.
| Patch | Stanislaw Gruszka |
|---|---|
| 1/7 | A-b |
| 2/7 | |
| 3/7 | |
| 4/7 | A-b |
| 5/7 | |
| 6/7 | |
| 7/7 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH wireless-next v3 0/7] wifi: rt2x00: improve the throughput of rt2800usb
This series improves the throughput of rt2800usb.
Implements
- Frequency offset calibration
- Better fallback rates
- Aggregation
- GRO
Tested on WNDA4100 RT3593, 5 GHz with iperf3
patch before after
TX RX TX RX
2 crystal calibration 27.7 31.6 28.5 69.7
3 MCS16 to MCS8 TX status 27.0 70.0 29.4 70.0
5 RX bulk aggregation 30.5 67.8 30.5 80.9
7 threaded NAPI with GRO 30.5 80.9 30.5 161.7RT3070 did not have any visible change for both TX and RX.
Patch 5 added WARN_ON_ONCE to get_rx_seg_len, but it will always trigger due to a bug due to USB data toggle. The fix will be sent in another patch.
Changes in v3:
- Crystal calibration: save the frequency offset of the beacons in rt2x00lib_rxdone_skb() instead of fill_rxdone, through rxdesc
- RX aggregation: enable it for usb_maxpacket >= 512
- GRO: Add locking and reference mt76 on how it is done
Changes since v2:
- Correct the link tuner start and stop conditions
- Extend fallback and MCS retry calculation to all devices with 3 TX chains
- Remove TX AMSDU and fast-xmit
Ho Jie Feng (7):
wifi: rt2x00: start the link tuner when an interface is added
wifi: rt2800: calibrate the crystal of RT3593 with the beacons
wifi: rt2800: make MCS 16 fall back to MCS 8 on devices with 3 TX
chains
wifi: rt2800: don't report an A-MPDU length to minstrel_ht
wifi: rt2800usb: enable RX bulk aggregation
wifi: rt2800: support A-MSDU in A-MPDU
wifi: rt2x00usb: use a threaded NAPI with GRO for RX
drivers/net/wireless/ralink/rt2x00/rt2800.h | 1 + .../net/wireless/ralink/rt2x00/rt2800lib.c | 89 +++++++++- .../net/wireless/ralink/rt2x00/rt2800lib.h | 1 + .../net/wireless/ralink/rt2x00/rt2800usb.c | 33 +++- .../net/wireless/ralink/rt2x00/rt2800usb.h | 6 + drivers/net/wireless/ralink/rt2x00/rt2x00.h | 37 ++++- .../net/wireless/ralink/rt2x00/rt2x00dev.c | 152 ++++++++++++++---- .../net/wireless/ralink/rt2x00/rt2x00lib.h | 2 + .../net/wireless/ralink/rt2x00/rt2x00link.c | 10 ++ .../net/wireless/ralink/rt2x00/rt2x00mac.c | 13 ++ .../net/wireless/ralink/rt2x00/rt2x00mmio.c | 2 +- .../net/wireless/ralink/rt2x00/rt2x00queue.h | 5 + .../net/wireless/ralink/rt2x00/rt2x00usb.c | 62 +++++-- 13 files changed, 365 insertions(+), 48 deletions(-)
base-commit: 3c311bf321442d4c4f452a1a08bc9efce242a1f9
Signature · 1 line
2.53.0