Skip to content

Commit 93e2be3

Browse files
Andrew Gaulkuba-moo
authored andcommitted
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: Andrew Gaul <gaul@google.com> Link: https://lore.kernel.org/r/20221002034128.2026653-1-gaul@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent ad061cf commit 93e2be3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/net/usb/r8152.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1874,7 +1874,9 @@ static void intr_callback(struct urb *urb)
18741874
"Stop submitting intr, status %d\n", status);
18751875
return;
18761876
case -EOVERFLOW:
1877-
netif_info(tp, intr, tp->netdev, "intr status -EOVERFLOW\n");
1877+
if (net_ratelimit())
1878+
netif_info(tp, intr, tp->netdev,
1879+
"intr status -EOVERFLOW\n");
18781880
goto resubmit;
18791881
/* -EPIPE: should clear the halt */
18801882
default:

0 commit comments

Comments
 (0)