]> www.infradead.org Git - users/willy/linux.git/commit
wifi: iwlwifi: move TXQ bytecount limit to queue code
authorJohannes Berg <johannes.berg@intel.com>
Wed, 5 Jun 2024 11:05:00 +0000 (14:05 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 12 Jun 2024 11:04:26 +0000 (13:04 +0200)
commit57bb72fad7bcb9ed0b2d7ec1b73a116ac3c6a2ba
tree0106d18e1caa73e1ec75e8647b9e755ec20f4710
parent62a5c4029552a5645d0600fcb311a14131ccced1
wifi: iwlwifi: move TXQ bytecount limit to queue code

This really isn't correct to be in the opmode, do the clamping
(and power-of-2 fixup that may be necessary due to this, or even
otherwise) in the queue code. Also move down the retrying of the
allocation, it should be after all the size fixups, but also it
just makes sense, and avoids retrying same-size allocations in
the case of the BZ-family A-step workaround.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240605140327.000a0a1e807d.Ib822590d5aca76ff3168418ae2c139b3d43d81ed@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c
drivers/net/wireless/intel/iwlwifi/queue/tx.c