Skip to contentSkip to conversation

FDDI: defza: Rate-limit memory allocation errors

PATCH Applied Maciej W. Rozycki 3 participants 3 messages Mar 29 – Mar 31

Subsystems (3)
lore
Share & tools
lore

Maciej W. Rozycki

author maintainer
#0 lore raw

PATCH 1/1 FDDI: defza: Rate-limit memory allocation errors

Prevent the system from becoming unstable or unusable due to a flood of memory allocation error messages under memory pressure.

---
 drivers/net/fddi/defza.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

linux-defza-ratelimit.diff

drivers/net/fddi/defza.c +3 -2
Index: linux-macro/drivers/net/fddi/defza.c
===================================================================
@@ -767,8 +767,9 @@ static void fza_rx(struct net_device *de
 			fp->rx_dma[i] = dma;
 		} else {
 			fp->stats.rx_dropped++;
-			pr_notice("%s: memory squeeze, dropping packet\n",
-				  fp->name);
+			pr_notice_ratelimited(
+				"%s: memory squeeze, dropping packet\n",
+				fp->name);
 		}
 
 err_rx:
#2 lore raw
In reply to Maciej W. Rozycki
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 9 lines · On Sun, 29 Mar 2026 13:32:34 +0100 (BST) you wrote:

Prevent the system from becoming unstable or unusable due to a flood of memory allocation error messages under memory pressure.

---
 drivers/net/fddi/defza.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

[...]

Here is the summary with links:
- [net-next] FDDI: defza: Rate-limit memory allocation errors

    https://git.kernel.org/netdev/net-next/c/f4ef5b1c1331

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html