lkml.org 
[lkml]   [2023]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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

\
 
 \ /
  Last update: 2023-08-17 21:45    [W:0.062 / U:0.456 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site