diff options
| author | Andrew Gaul <gaul@gaul.org> | 2022-10-02 12:41:28 +0900 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-10-26 13:25:48 +0200 |
| commit | 484400d433ca1903a87268c55f019e932297538a (patch) | |
| tree | 341aa3001095dbce92fb5a5be269656a715f932c /drivers | |
| parent | 0c108cf3ad386e0084277093b55a351c49e0be27 (diff) | |
| download | linux-484400d433ca1903a87268c55f019e932297538a.tar.gz linux-484400d433ca1903a87268c55f019e932297538a.tar.bz2 linux-484400d433ca1903a87268c55f019e932297538a.zip | |
r8152: Rate limit overflow messages
[ Upstream commit 93e2be344a7db169b7119de21ac1bf253b8c6907 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/net/usb/r8152.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 0bb5b1c78654..a526242a3e36 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -1689,7 +1689,9 @@ static void intr_callback(struct urb *urb) "Stop submitting intr, status %d\n", status); return; 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; /* -EPIPE: should clear the halt */ default: |
