Commit 93e2be34 authored by Andrew Gaul's avatar Andrew Gaul Committed by Jakub Kicinski

r8152: Rate limit overflow messages

My system shows almost 10 million of these messages over a 24-hour
period which pollutes my logs.
Signed-off-by: default avatarAndrew Gaul <gaul@google.com>
Link: https://lore.kernel.org/r/20221002034128.2026653-1-gaul@google.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent ad061cf4
...@@ -1874,7 +1874,9 @@ static void intr_callback(struct urb *urb) ...@@ -1874,7 +1874,9 @@ static void intr_callback(struct urb *urb)
"Stop submitting intr, status %d\n", status); "Stop submitting intr, status %d\n", status);
return; return;
case -EOVERFLOW: case -EOVERFLOW:
netif_info(tp, intr, tp->netdev, "intr status -EOVERFLOW\n"); if (net_ratelimit())
netif_info(tp, intr, tp->netdev,
"intr status -EOVERFLOW\n");
goto resubmit; goto resubmit;
/* -EPIPE: should clear the halt */ /* -EPIPE: should clear the halt */
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment