Skip to content

staging: wfx: rework the Tx queue

Jerome Pouiller linux-wireless lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest32 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/32staging: wfx: add sanity checks to hif_join()drivers/staging/wfx/hif_tx.c+2 -02 replies
2/32staging: wfx: do not stop mac80211 queueing during tx_policy uploaddrivers/staging/wfx/data_tx.c+1 -90 replies
3/32staging: wfx: take advantage of ieee80211_{stop/start}_queuesdrivers/staging/wfx/data_tx.c drivers/staging/wfx/queue.c drivers/staging/wfx/queue.h+4 -400 replies
4/32staging: wfx: remove "burst" mechanismdrivers/staging/wfx/queue.c drivers/staging/wfx/sta.c drivers/staging/wfx/wfx.h+0 -262 replies
5/32staging: wfx: uniformize queue_id retrievaldrivers/staging/wfx/data_tx.c+1 -10 replies
6/32staging: wfx: drop useless queue_id fielddrivers/staging/wfx/queue.c drivers/staging/wfx/queue.h+1 -40 replies
7/32staging: wfx: avoid useless wake_updrivers/staging/wfx/queue.c+2 -40 replies
8/32staging: wfx: simplify hif_handle_tx_data()drivers/staging/wfx/queue.c+10 -92 replies
9/32staging: wfx: simplify wfx_tx_queues_empty()drivers/staging/wfx/queue.c drivers/staging/wfx/queue.h drivers/staging/wfx/sta.c+8 -140 replies
10/32staging: wfx: drop unused argument in wfx_get_prio_queue()drivers/staging/wfx/queue.c+2 -50 replies
11/32staging: wfx: simplify wfx_tx_queue_mask_get()drivers/staging/wfx/queue.c+6 -90 replies
12/32staging: wfx: drop useless sta_asleep_maskdrivers/staging/wfx/data_tx.c drivers/staging/wfx/main.c drivers/staging/wfx/queue.c +2 more+2 -500 replies
13/32staging: wfx: drop argument tx_allowed_mask since it is constant nowdrivers/staging/wfx/queue.c drivers/staging/wfx/queue.h+12 -380 replies
14/32staging: wfx: do not use link_map_cache to track CABdrivers/staging/wfx/queue.c+8 -50 replies
15/32staging: wfx: drop useless link_map_cachedrivers/staging/wfx/queue.c drivers/staging/wfx/queue.h+12 -510 replies
16/32staging: wfx: do not rely anymore on link_id to choose packet in queuedrivers/staging/wfx/queue.c+6 -50 replies
17/32staging: wfx: drop unused link_id fielddrivers/staging/wfx/data_tx.c drivers/staging/wfx/data_tx.h drivers/staging/wfx/queue.h+0 -80 replies
18/32staging: wfx: drop unused raw_link_id fielddrivers/staging/wfx/data_tx.c drivers/staging/wfx/data_tx.h+1 -30 replies
19/32staging: wfx: rename wfx_tx_get_raw_link_id()drivers/staging/wfx/data_tx.c+3 -40 replies
20/32staging: wfx: replace wfx_tx_queues_get_after_dtim() by wfx_tx_queues_has_cab()drivers/staging/wfx/queue.c drivers/staging/wfx/queue.h drivers/staging/wfx/sta.c+23 -230 replies
21/32staging: wfx: introduce a counter of pending framesdrivers/staging/wfx/queue.c drivers/staging/wfx/queue.h+17 -00 replies
22/32staging: wfx: change the way to choose frame to senddrivers/staging/wfx/queue.c drivers/staging/wfx/queue.h+94 -1480 replies
23/32staging: wfx: drop now useless field edca_paramsdrivers/staging/wfx/sta.c drivers/staging/wfx/wfx.h+0 -20 replies
24/32staging: wfx: drop struct wfx_queue_statsdrivers/staging/wfx/queue.c drivers/staging/wfx/queue.h drivers/staging/wfx/sta.c +1 more+18 -280 replies
25/32staging: wfx: simplify usage of wfx_tx_queues_put()drivers/staging/wfx/data_tx.c drivers/staging/wfx/queue.c drivers/staging/wfx/queue.h+5 -60 replies
26/32staging: wfx: improve interface between data_tx.c and queue.cdrivers/staging/wfx/data_tx.c drivers/staging/wfx/queue.c drivers/staging/wfx/queue.h+8 -170 replies
27/32staging: wfx: relocate wfx_skb_dtor() prior its callersdrivers/staging/wfx/data_tx.c+37 -350 replies
28/32staging: wfx: repair wfx_flush()drivers/staging/wfx/data_tx.c drivers/staging/wfx/data_tx.h drivers/staging/wfx/main.c +4 more+120 -1290 replies
29/32staging: wfx: wfx_flush() did not ensure that frames are processeddrivers/staging/wfx/bh.c+2 -20 replies
30/32staging: wfx: fix potential deadlock in wfx_tx_flush()drivers/staging/wfx/queue.c+2 -00 replies
31/32staging: wfx: fix case where AP stop with CAB traffic pendingdrivers/staging/wfx/sta.c+14 -10 replies
32/32staging: wfx: remove hack about tx_rate policiesdrivers/staging/wfx/data_tx.c+0 -530 replies

Reviews trailers per patch

None of the 32 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDan Carpenter
SeriesR-b
1/32
2/32
3/32
4/32
5/32
6/32
7/32
8/32
9/32
10/32
11/32
12/32
13/32
14/32
15/32
16/32
17/32
18/32
19/32
20/32
21/32
22/32
23/32
24/32
25/32
26/32
27/32
28/32
29/32
30/32
31/32
32/32

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/32] staging: wfx: rework the Tx queue

From: Jérôme Pouiller <[email protected]>

This current implementation of the Tx queue is far more complex than necessary and its behavior is dubious on some corner cases. This series rework the Tx queue:
- Simplify support for QoS (since device already do the job)
- Simplify support for Power Saving stations (since mac80211 already do the job)
- Improve support of Content After DTIM Beacon (CAB) when device is AP and some station use power save.
- Improve robustness of flushing

Jérôme Pouiller (32):
staging: wfx: add sanity checks to hif_join()
staging: wfx: do not stop mac80211 queueing during tx_policy upload
staging: wfx: take advantage of ieee80211_{stop/start}_queues
staging: wfx: remove "burst" mechanism
staging: wfx: uniformize queue_id retrieval
staging: wfx: drop useless queue_id field
staging: wfx: avoid useless wake_up
staging: wfx: simplify hif_handle_tx_data()
staging: wfx: simplify wfx_tx_queues_empty()
staging: wfx: drop unused argument in wfx_get_prio_queue()
staging: wfx: simplify wfx_tx_queue_mask_get()
staging: wfx: drop useless sta_asleep_mask
staging: wfx: drop argument tx_allowed_mask since it is constant now
staging: wfx: do not use link_map_cache to track CAB
staging: wfx: drop useless link_map_cache
staging: wfx: do not rely anymore on link_id to choose packet in queue
staging: wfx: drop unused link_id field
staging: wfx: drop unused raw_link_id field
staging: wfx: rename wfx_tx_get_raw_link_id()
staging: wfx: replace wfx_tx_queues_get_after_dtim() by

    wfx_tx_queues_has_cab()

staging: wfx: introduce a counter of pending frames
staging: wfx: change the way to choose frame to send
staging: wfx: drop now useless field edca_params
staging: wfx: drop struct wfx_queue_stats
staging: wfx: simplify usage of wfx_tx_queues_put()
staging: wfx: improve interface between data_tx.c and queue.c
staging: wfx: relocate wfx_skb_dtor() prior its callers
staging: wfx: repair wfx_flush()
staging: wfx: wfx_flush() did not ensure that frames are processed
staging: wfx: fix potential deadlock in wfx_tx_flush()
staging: wfx: fix case where AP stop with CAB traffic pending
staging: wfx: remove hack about tx_rate policies

 drivers/staging/wfx/bh.c      |   4 +-
 drivers/staging/wfx/data_tx.c | 196 +++++--------
 drivers/staging/wfx/data_tx.h |   5 +-
 drivers/staging/wfx/hif_tx.c  |   2 +
 drivers/staging/wfx/main.c    |   2 -
 drivers/staging/wfx/queue.c   | 529 +++++++++++-----------------------
 drivers/staging/wfx/queue.h   |  36 +--
 drivers/staging/wfx/sta.c     |  87 ++----
 drivers/staging/wfx/sta.h     |   2 -
 drivers/staging/wfx/wfx.h     |   7 +-
 10 files changed, 281 insertions(+), 589 deletions(-)
Signature · 1 line
2.25.1