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

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