Re: [PATCH v3 4/5] net: hpe: Add GXP UMAC Driver

From: Andrew Lunn
Date: Thu Aug 17 2023 - 15:45:08 EST


> > > + if (length > 1514) {
> > > + netdev_err(ndev, "send data %d bytes > 1514, clamp it to 1514\n",
> > > + skb->len);
>
> > Than should be rate limited.
>
> How is this done? Is there a particular function to call that
> will handle it in the backend?

Sorry, i was ambiguous. I meant the netdev_err() should be rate
limited, otherwise some user space application could DOS your system
by sending big packets at line rate flooding your logs.

Andrew