]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: ethernet: mtk_eth_soc: reset all TX queues on DMA free
authorDaniel Golle <daniel@makrotopia.org>
Mon, 5 May 2025 01:07:32 +0000 (02:07 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 6 May 2025 11:37:34 +0000 (13:37 +0200)
commit4db6c75124d871fbabf8243f947d34cc7e0697fc
treeae466a4316528af51f96eb333f3918aaee578c6d
parent4720f9707c783f642332dee3d56dccaefa850e42
net: ethernet: mtk_eth_soc: reset all TX queues on DMA free

The purpose of resetting the TX queue is to reset the byte and packet
count as well as to clear the software flow control XOFF bit.

MediaTek developers pointed out that netdev_reset_queue would only
resets queue 0 of the network device.

Queues that are not reset may cause unexpected issues.

Packets may stop being sent after reset and "transmit timeout" log may
be displayed.

Import fix from MediaTek's SDK to resolve this issue.

Link: https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/319c0d9905579a46dc448579f892f364f1f84818
Fixes: f63959c7eec31 ("net: ethernet: mtk_eth_soc: implement multi-queue support for per-port queues")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Link: https://patch.msgid.link/c9ff9adceac4f152239a0f65c397f13547639175.1746406763.git.daniel@makrotopia.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mediatek/mtk_eth_soc.c