Search Linux Wireless

[RFC v2 PATCH 00/10] Convert mac80211 to TXQs only

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This series switches all TX handling in mac80211 to TXQs.
With TXQs taking over buffering many - or even all - buffering can be
taken over by them. This also reduces the complexity of the TX paths and
always use the same set of core functions for TX.

These patches continue the work to get rid of the legacy TX path we
started here for the drivers:
https://lore.kernel.org/r/20221009163040.25637-1-alexander@xxxxxxxxxxxxxx

Changes compared to RFC v1 are documented in the individual patches.
But I've also cut off the patches TXQ flush and monitor interface
handling. (These or the redesigned versions were submitted as
independent patches.)

A quick overview of the patches in the series:
  wifi: mac80211: move rate control setup
	Broken off from "Add new TX queues to replace legacy TX" as
	requested. Moves some exiting code around.

  wifi: mac80211: Always provide the MMPDU TXQ
	When only using TXQs for TX we can't have this queue optionally.
	Creates and uses MMPDU TXQs even for drivers not supporting
	them.

  wifi: mac80211: Convert vif->txq to an array
	We need some more TXQs for the patch below. Create them.

  wifi: mac80211: Add new TX queues to replace legacy TX
	This starts the core of the move to TXQs.
	Creats all the missing TXQs and updates the support function for
	them. It also directly switches traffic to them, when possible.
	(Only offchannel is sticking to legacy TX after that.)

  wifi: mac80211: Stop using legacy TX path
	Drop the legacy TX functions and move offchannel TX to the new
	alternate TXQ path named TXQ_NOQUEUE (so far).
        With that mac80211 has two TX paths both using TXQ:
         - The existing one, which uses the TXQ for queuing and
         - TXQ_NOQUEUE. Which just puts frames into a TXQ and
           immediately sends out the frame by also calling drv_tx() for
           it. There never can be more than one frame in any of these
           TXQs. They never see a wake_tx_queue call by the driver or
           mac80211.

  wifi: mac80211: Call ieee80211_tx_h_select_key only once
	A optimization which could be without the patches, too. Would
	just be done differently. (Not required)

  wifi: mac80211: Rename IEEE80211_TX_INTFL_OFFCHAN_TX_OK
	Rename the flag used to select the NOQUEU TX path to make its
	use more obvious.

  wifi: mac80211: Simplify AMPDU handling
	Uses TXQs to buffer frames when AMPDU is started/stopped.

  wifi: mac80211: Migrate TX to kthread
	Moves all TX operation except TXQ_NOQUEUE to a new kthread.
        This hooks into the existing txq scheduling and uses local->active_txqs
        to determine which TXQs need to run.

  wifi: mac80211: Cleanup *ieee80211_wake_txq* naming
	Rename a few functions.

 drivers/net/wireless/ath/ath10k/mac.c         |   8 +-
 drivers/net/wireless/ath/ath9k/ath9k.h        |   2 +-
 .../net/wireless/intel/iwlwifi/mvm/mac80211.c |   6 +-
 .../net/wireless/mediatek/mt76/mt7603/main.c  |   3 +-
 .../net/wireless/mediatek/mt76/mt7615/main.c  |   5 +-
 .../net/wireless/mediatek/mt76/mt76x02_util.c |   3 +-
 .../net/wireless/mediatek/mt76/mt7915/main.c  |   6 +-
 .../net/wireless/mediatek/mt76/mt7921/main.c  |   5 +-
 .../net/wireless/mediatek/mt76/mt7925/main.c  |   5 +-
 .../net/wireless/mediatek/mt76/mt7996/main.c  |   5 +-
 drivers/net/wireless/realtek/rtw88/mac80211.c |   4 +-
 drivers/net/wireless/realtek/rtw88/main.c     |   2 +-
 drivers/net/wireless/realtek/rtw89/mac80211.c |   2 +-
 include/net/mac80211.h                        |  60 +-
 net/mac80211/agg-tx.c                         | 129 +---
 net/mac80211/cfg.c                            |   8 +-
 net/mac80211/debugfs_netdev.c                 |  46 +-
 net/mac80211/debugfs_sta.c                    |   2 -
 net/mac80211/driver-ops.h                     |  28 +-
 net/mac80211/ieee80211_i.h                    |  32 +-
 net/mac80211/iface.c                          | 144 ++--
 net/mac80211/main.c                           |   9 +-
 net/mac80211/mesh.c                           |  13 +-
 net/mac80211/mlme.c                           |   2 +-
 net/mac80211/offchannel.c                     |   2 +-
 net/mac80211/rx.c                             |  11 +-
 net/mac80211/scan.c                           |   2 +-
 net/mac80211/sta_info.c                       |   6 +-
 net/mac80211/sta_info.h                       |  30 +-
 net/mac80211/tx.c                             | 616 ++++--------------
 net/mac80211/util.c                           | 162 +++--
 31 files changed, 534 insertions(+), 824 deletions(-)

-- 
2.48.1





[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux