[PATCH net-next] FDDI: defza: Rate-limit memory allocation errors

Maciej W. Rozycki posted 1 patch 3 days, 20 hours ago
drivers/net/fddi/defza.c |    5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
[PATCH net-next] FDDI: defza: Rate-limit memory allocation errors
Posted by Maciej W. Rozycki 3 days, 20 hours ago
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:
Re: [PATCH net-next] FDDI: defza: Rate-limit memory allocation errors
Posted by Andrew Lunn 2 days, 20 hours ago
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