Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp872272rwi; Wed, 19 Oct 2022 04:09:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6EHC9+c284YLQOiIblyRdFK/lNPef5QJVbHDD7RSQBI1Z+HLj4tblyMT1Pt2JykPATXxQt X-Received: by 2002:a50:ec15:0:b0:458:a612:f751 with SMTP id g21-20020a50ec15000000b00458a612f751mr6824403edr.111.1666177740832; Wed, 19 Oct 2022 04:09:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666177740; cv=none; d=google.com; s=arc-20160816; b=GFNBKr06p+w5G0km1uPpNFEug+T2aNS3cTRgdL2buM5OPIbPGzZQlnJEdXoGo57Kjc pYPwV+M/gAeSYJc3TxYdHQxT2ooWpvH6JhH+Y9MIhdkArLB4BjEtVTTJkgy9myrpUqJN vhx9VuRx042CMLNViq2sXAJa1bb0PzxhPMoxcASexEPRf+f3gFd19uQWt6Xb93SRWXst DpJRVgRl+j5QLqAEoYJmRo0vZ6dLI6F5OPC9w0eDvgTe9+5y9KD8fOa7L+1F0c7Or5qo bvqCGByQZ4vnaw0mACvnJrq3qu4GR/8F7lnN8Lm8jRWoHfF1lN8aXmOeGWESA+mU8svp bQVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2QcH7gw8Ij3inVsPITSl4QwAPCmbzyaRHL4uOpRaQzQ=; b=a4SnlCERZkQeTJVAzO/THypCgZ7KcYEEvTSWdHGUqOsmBSrxdMOS5GxRtFiZtJ2J3N 9BCaLzswNCfnrQQwU4RB5WcxvpcvnUhdjG/8MdrXubDCS0DWp68Iuj7gVdgsBkSmLOhs 0mW+7VZ+v3SaIdSYGgpzi2lo89nawN6LWZCHHEYpsEw5XOhvVWgjytGepnx6FmhzEEBw l/26fDVYi+gHb3OcCY4L5ZRslImj5KKcUF8U/jK8Id//2Iwy2Zu4Xq0lTwxMeWRQ/yXH 1Ms/ilkZ9iC5oXUd2jDBzVvc8Ld42JjZLEB+EQBt8Dp1ZODP9ZbOuV9LGzobMU8fRGSq ddrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XGFDHqgx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y4-20020a056402440400b0045c2174074asi17055911eda.350.2022.10.19.04.08.34; Wed, 19 Oct 2022 04:09:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XGFDHqgx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234633AbiJSK4f (ORCPT + 99 others); Wed, 19 Oct 2022 06:56:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234500AbiJSKz4 (ORCPT ); Wed, 19 Oct 2022 06:55:56 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C72EA164BEF; Wed, 19 Oct 2022 03:27:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A4751B824B5; Wed, 19 Oct 2022 09:10:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09AC8C433D7; Wed, 19 Oct 2022 09:10:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666170629; bh=Q7nL0WEUtaTUZsGTu8PhNbsvfvjXK7qqWWgILZtc6rQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XGFDHqgxLKOeq0qN+lTbz+LsweL4Uu+I3W1WLuxtq0GKMQhtFQ0ytQQPvJZtt5pAq l/CRLhCOEFGURDoQXQSMtC71w3j5HjRMYYk9uN31UuW6w9ikLR4JEQJuShj+/0Me1P b23VSmH9Q0g58PYaxQBydGKNKKZKhbZi2ShUW0Pc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andrew Gaul , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.0 727/862] r8152: Rate limit overflow messages Date: Wed, 19 Oct 2022 10:33:34 +0200 Message-Id: <20221019083322.055021094@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrew Gaul [ 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 Link: https://lore.kernel.org/r/20221002034128.2026653-1-gaul@google.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/usb/r8152.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 688905ea0a6d..e7b0b59e2bc8 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -1874,7 +1874,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: -- 2.35.1