Messages in this thread | | | Date | Thu, 17 Aug 2023 21:44:03 +0200 | From | Andrew Lunn <> | Subject | Re: [PATCH v3 4/5] net: hpe: Add GXP UMAC Driver |
| |
> > > + 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
| |