Skip to content

wifi: rt2x00: improve the throughput of rt2800usb

Ho Jie Feng linux-wireless lkml 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 0 repliesNew
  2. v27 patches 12 repliesSuperseded
  3. 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 filesSizeRepliesApplied
1/7wifi: rt2x00: start the link tuner when an interface is addeddrivers/net/wireless/ralink/rt2x00/rt2x00mac.c+13 -00 replies
2/7wifi: rt2800: calibrate the crystal of RT3593 with the beaconsdrivers/net/wireless/ralink/rt2x00/rt2800.h drivers/net/wireless/ralink/rt2x00/rt2800lib.c drivers/net/wireless/ralink/rt2x00/rt2800lib.h +6 more+134 -00 replies
3/7wifi: rt2800: make MCS 16 fall back to MCS 8 on devices with 3 TX chainsdrivers/net/wireless/ralink/rt2x00/rt2800lib.c drivers/net/wireless/ralink/rt2x00/rt2x00.h drivers/net/wireless/ralink/rt2x00/rt2x00dev.c+26 -30 replies
4/7wifi: rt2800: don't report an A-MPDU length to minstrel_htdrivers/net/wireless/ralink/rt2x00/rt2800lib.c drivers/net/wireless/ralink/rt2x00/rt2x00dev.c+3 -00 replies
5/7wifi: rt2800usb: enable RX bulk aggregationdrivers/net/wireless/ralink/rt2x00/rt2800usb.c drivers/net/wireless/ralink/rt2x00/rt2800usb.h drivers/net/wireless/ralink/rt2x00/rt2x00.h +3 more+100 -320 replies
6/7wifi: rt2800: support A-MSDU in A-MPDUdrivers/net/wireless/ralink/rt2x00/rt2800lib.c+1 -00 replies
7/7wifi: rt2x00usb: use a threaded NAPI with GRO for RXdrivers/net/wireless/ralink/rt2x00/rt2x00.h drivers/net/wireless/ralink/rt2x00/rt2x00dev.c drivers/net/wireless/ralink/rt2x00/rt2x00usb.c+89 -140 replies

Reviews trailers per patch

2 of 7 patches have a Reviewed-by or Acked-by.

PatchStanislaw Gruszka
1/7A-b
2/7
3/7
4/7A-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.

Read the v3 thread

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.7

RT3070 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