r8169: disable interrupt source RxOverflow
Heiner Kallweit
maintainerPATCH 1/1 r8169: disable interrupt source RxOverflow
Vendor driver calls this bit RxDescUnavail. All we do in the interrupt handler in this case is scheduling NAPI. If we should be out of RX descriptors, then NAPI is scheduled anyway. Therefore remove this interrupt source. Tested on RTL8168h.
--- drivers/net/ethernet/realtek/r8169_main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/ethernet/realtek/r8169_main.c +1 -3
@@ -5085,12 +5085,10 @@ static void rtl_set_irq_mask(struct rtl8169_private *tp) tp->irq_mask = RxOK | RxErr | TxOK | TxErr | LinkChg;if (tp->mac_version <=RTL_GIGA_MAC_VER_06 ) - tp->irq_mask |= SYSErr | RxOverflow | RxFIFOOver; + tp->irq_mask |= SYSErr | RxFIFOOver;else if (tp->mac_version ==RTL_GIGA_MAC_VER_11 )/* special workaround needed */ tp->irq_mask |= RxFIFOOver; -else - tp->irq_mask |= RxOverflow; }static int rtl_alloc_irq (struct rtl8169_private *tp)
Signature · 1 line
2.45.1
Quoted 42 lines
-----Original Message-----
From: Heiner Kallweit <[email protected]>
Sent: Tuesday, May 28, 2024 12:47 AM
To: Paolo Abeni <[email protected]>; Jakub Kicinski <[email protected]>; David Miller <[email protected]>; Eric Dumazet <[email protected]>; Realtek linux nic maintainers <[email protected]>
Cc: [email protected]
Subject: [PATCH net-next] r8169: disable interrupt source RxOverflowVendor driver calls this bit RxDescUnavail. All we do in the interrupt handler in this case is scheduling NAPI. If we should be out of RX descriptors, then NAPI is scheduled anyway. Therefore remove this interrupt source. Tested on RTL8168h.
Signed-off-by Heiner Kallweit <[email protected]>--- drivers/net/ethernet/realtek/r8169_main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/net/ethernet/realtek/r8169_main.c +1
-3@@ -5085,12 +5085,10 @@ static void rtl_set_irq_mask(struct rtl8169_private *tp) tp->irq_mask = RxOK | RxErr | TxOK | TxErr | LinkChg;if (tp->mac_version <=RTL_GIGA_MAC_VER_06 ) - tp->irq_mask |= SYSErr | RxOverflow | RxFIFOOver; + tp->irq_mask |= SYSErr | RxFIFOOver;else if (tp->mac_version ==RTL_GIGA_MAC_VER_11 )/* special workaround needed */ tp->irq_mask |= RxFIFOOver; -else - tp->irq_mask |= RxOverflow; }
Quoted 4 lines
static int
rtl_alloc_irq(struct rtl8169_private *tp)
--
2.45.1
LGTM
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Mon, 27 May 2024 21:16:56 +0200 you wrote:
Vendor driver calls this bit RxDescUnavail. All we do in the interrupt handler in this case is scheduling NAPI. If we should be out of RX descriptors, then NAPI is scheduled anyway. Therefore remove this interrupt source. Tested on RTL8168h.
Signed-off-by Heiner Kallweit <[email protected]>[...]
Here is the summary with links:
- [net-next] r8169: disable interrupt source RxOverflow
https://git.kernel.org/netdev/net-next/c/6994520a3328
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html