public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] FDDI: defza: Rate-limit memory allocation errors
@ 2026-03-29 12:32 Maciej W. Rozycki
  2026-03-30 12:47 ` Andrew Lunn
  2026-03-31  2:00 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Maciej W. Rozycki @ 2026-03-29 12:32 UTC (permalink / raw)
  To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni
  Cc: netdev, linux-kernel

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

Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
---
 drivers/net/fddi/defza.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

linux-defza-ratelimit.diff
Index: linux-macro/drivers/net/fddi/defza.c
===================================================================
--- linux-macro.orig/drivers/net/fddi/defza.c
+++ 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:

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] FDDI: defza: Rate-limit memory allocation errors
  2026-03-29 12:32 [PATCH net-next] FDDI: defza: Rate-limit memory allocation errors Maciej W. Rozycki
@ 2026-03-30 12:47 ` Andrew Lunn
  2026-03-31  2:00 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Lunn @ 2026-03-30 12:47 UTC (permalink / raw)
  To: Maciej W. Rozycki
  Cc: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, netdev, linux-kernel

On Sun, Mar 29, 2026 at 01:32:34PM +0100, Maciej W. Rozycki wrote:
> Prevent the system from becoming unstable or unusable due to a flood of 
> memory allocation error messages under memory pressure.
> 
> Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] FDDI: defza: Rate-limit memory allocation errors
  2026-03-29 12:32 [PATCH net-next] FDDI: defza: Rate-limit memory allocation errors Maciej W. Rozycki
  2026-03-30 12:47 ` Andrew Lunn
@ 2026-03-31  2:00 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-03-31  2:00 UTC (permalink / raw)
  To: Maciej W. Rozycki
  Cc: andrew+netdev, davem, edumazet, kuba, pabeni, netdev,
	linux-kernel

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

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.
> 
> Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
> ---
>  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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-31  2:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-29 12:32 [PATCH net-next] FDDI: defza: Rate-limit memory allocation errors Maciej W. Rozycki
2026-03-30 12:47 ` Andrew Lunn
2026-03-31  2:00 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox