declance: Rate-limit DMA errors

Prevent the system from becoming unusable due to a flood of DMA error
messages.

Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
Link: https://patch.msgid.link/alpine.DEB.2.21.2603291838370.60268@angie.orcam.me.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Maciej W. Rozycki 2026-03-29 19:07:24 +01:00 committed by Jakub Kicinski
parent a94ddc191f
commit ee769323b1

View File

@ -727,7 +727,7 @@ static irqreturn_t lance_dma_merr_int(int irq, void *dev_id)
{
struct net_device *dev = dev_id;
printk(KERN_ERR "%s: DMA error\n", dev->name);
pr_err_ratelimited("%s: DMA error\n", dev->name);
return IRQ_HANDLED;
}