[OpenWrt-Devel] [RFC 6/9] mt7621: fix softirq loop

Bjørn Mork bjorn at mork.no
Mon Oct 15 06:25:00 EDT 2018


Signed-off-by: Bjørn Mork <bjorn at mork.no>
---
 .../2201-mt7621-eth-fix-napi-int.patch             | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 target/linux/ramips/patches-4.14/2201-mt7621-eth-fix-napi-int.patch

diff --git a/target/linux/ramips/patches-4.14/2201-mt7621-eth-fix-napi-int.patch b/target/linux/ramips/patches-4.14/2201-mt7621-eth-fix-napi-int.patch
new file mode 100644
index 000000000000..d52ff56643cb
--- /dev/null
+++ b/target/linux/ramips/patches-4.14/2201-mt7621-eth-fix-napi-int.patch
@@ -0,0 +1,22 @@
+--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
++++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
+@@ -1775,8 +1775,8 @@ static irqreturn_t mtk_handle_irq_rx(int
+ 
+ 	if (likely(napi_schedule_prep(&eth->rx_napi))) {
+ 		__napi_schedule(&eth->rx_napi);
+-		mtk_rx_irq_disable(eth, MTK_RX_DONE_INT);
+ 	}
++	mtk_rx_irq_disable(eth, MTK_RX_DONE_INT);
+ 
+ 	return IRQ_HANDLED;
+ }
+@@ -1787,8 +1787,8 @@ static irqreturn_t mtk_handle_irq_tx(int
+ 
+ 	if (likely(napi_schedule_prep(&eth->tx_napi))) {
+ 		__napi_schedule(&eth->tx_napi);
+-		mtk_tx_irq_disable(eth, MTK_TX_DONE_INT);
+ 	}
++	mtk_tx_irq_disable(eth, MTK_TX_DONE_INT);
+ 
+ 	return IRQ_HANDLED;
+ }
-- 
2.11.0


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list