]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: rtw89: pci: fix PCI doesn't reclaim TX BD properly
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 10 Jun 2022 07:26:09 +0000 (15:26 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 21 Jun 2022 06:15:48 +0000 (09:15 +0300)
commit225407c1791b1a232ea9de58e3c4495106e1e025
treec36671e4d7e1af0611d2e3c6ff78c78ac8f262a4
parentec8442d2f6b0c6cb51eb8605a830fe9dedabc247
wifi: rtw89: pci: fix PCI doesn't reclaim TX BD properly

TX BD (TX ring index) and TX WD (WiFi descriptor buffer) are freed
asynchronously. With burst packets, we free TX WD, but the corresponding
TX BD couldn't be freed yet. Then, TX can possibly get stuck due to no
more TX BD.

To avoid this, ignore reclaiming TX BD only if TX WD is no free space,
because at this moment TX BD must have some spaces. Otherwise, we reclaim
TX BD to resolve TX stuck issue.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220610072610.27095-11-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/pci.c