[PATCH 0/2] wifi: mt76: fix RX NAPI teardown on mt7996 removal

Goliath Zhu posted 2 patches 1 week ago
Only 0 patches received!
drivers/net/wireless/mediatek/mt76/dma.c         |  4 +++-
drivers/net/wireless/mediatek/mt76/mt7996/init.c | 11 +++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
[PATCH 0/2] wifi: mt76: fix RX NAPI teardown on mt7996 removal
Posted by Goliath Zhu 1 week ago
Fix two RX NAPI teardown issues in the mt7996 removal path.

The first patch disables the RX NAPI instances before the common DMA
cleanup deletes them. This is the RX counterpart of commit 78ab4be54953
("wifi: mt76: disable napi on driver removal"), which fixed the same
warning for TX NAPI.

The second patch fixes a regression introduced by commit 6b470f36616e
("wifi: mt76: Fix memory leak destroying device"). Keep visiting WED RRO
queues to release their page pools, but do not delete NAPI instances
which were never registered while WED is active.

Build-tested with CONFIG_MT7996E=m, CONFIG_NET_MEDIATEK_SOC_WED=y and
W=1.

Goliath Zhu (2):
  wifi: mt76: mt7996: disable RX NAPI on driver removal
  wifi: mt76: skip NAPI deletion for WED RRO queues

 drivers/net/wireless/mediatek/mt76/dma.c         |  4 +++-
 drivers/net/wireless/mediatek/mt76/mt7996/init.c | 11 +++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

base-commit: 58717b2a1365d06c8c64b72aa948541b53fe31eb
-- 
2.55.0