Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4030371rwb; Sun, 9 Oct 2022 16:21:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Ldqn7jznC1LzHZTbqx6ar6wT0aLCKOP2cL+GWBbnuOBO4DfAWzjJMDsjcjRg6CdtG+Dok X-Received: by 2002:a63:e254:0:b0:459:a2cd:cbfc with SMTP id y20-20020a63e254000000b00459a2cdcbfcmr14773877pgj.275.1665357709270; Sun, 09 Oct 2022 16:21:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665357709; cv=none; d=google.com; s=arc-20160816; b=Pkjf1ArzsoKBrpSwcLIlFx0PBIl107Np65GyG8RbjDBFVtYFjURckFK+rIeoNeYFY6 oYysDt1iDlNHToJYcebWIuynh9b9Cg1lpYnHb2kOgwUG6Bc/cFm17fmR3zSOhy0Jz9X8 VWvcQxicJUN0oSIg+pn0wpgtiA5y4IbIGnKiEFGt8SzwdRX6MFMH/iDzyiwawfzs6Vyo 3TAmIPZ0us2zcCHEvEru+7hcjFKzvXJ8y2WX4OiTGWWI7yT5PPnOg+Vhfu1u6sJe+RYt yg+1cRdJ0WxjNrZ5RII1igUJ2X/VDFw5QRWRFRwS9D5r3WxVnVakxxTK460GOit5rHc2 ipfA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2QcH7gw8Ij3inVsPITSl4QwAPCmbzyaRHL4uOpRaQzQ=; b=pimskkdAsloVqpaCgTnyFOoTGkL0/94iEl8btnZ8DAganLo8RYCv9fHiUK8k7frOe4 AZ9ac6Nqn+SANWY3Ws8smIbMnCyrp0186i6dNOmVtHK4pkhwPhvGTRrhid4kCNxkWeLr AgqO49IUcJX652ckEJ03fCRkG2bRSkm1hV7vyXfJNtBRHGt7POHCSHRoQzQ2iCE613sI G5kZEo18vqEeEhT8l5APhhpI4tEzrLZqp9lRd8lzoy1Jruo43V9HYA2ifiwPeshkCMZH t3RG7ci+IivGRScVJsf5EUabgd2XNjBx9NTWwYJlgN22aA1cNRKK8etYAdCZKlraenH1 d8tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eN551fbh; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k17-20020a63ff11000000b0043bf03d8625si10649733pgi.413.2022.10.09.16.21.37; Sun, 09 Oct 2022 16:21:49 -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=@kernel.org header.s=k20201202 header.b=eN551fbh; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231584AbiJIWUo (ORCPT + 99 others); Sun, 9 Oct 2022 18:20:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231830AbiJIWTb (ORCPT ); Sun, 9 Oct 2022 18:19:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46A7F3CBE0; Sun, 9 Oct 2022 15:16:41 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 2F27F60A1A; Sun, 9 Oct 2022 22:14:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13EFCC433C1; Sun, 9 Oct 2022 22:14:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665353684; bh=Q7nL0WEUtaTUZsGTu8PhNbsvfvjXK7qqWWgILZtc6rQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eN551fbhjCW4YT3vh5RPQIOhquT6GQSrUPPVmH0K/JcOo4HuShfLZFcp8IZgoo7n0 xOvFMGx1sllJWxVHuvPhAiaOzzuMmvXTjRItz0BM1puAtujtg9Ptuxu+RUiWSHrYet g7MpAKGbllxeiOjuhP1yUnZS/efcf/sGkUGt8uAo5PT0cDlaMu0yljBH4X+Ews4TdQ uM6dn+PqWTZZ1ETnlvUl7u/YMjImMM/U94Mrv6gUAmd63bB+4H75ZqzInXqdPdScct qctDSKsyuvDTxp+hwf7C8wTpYlLGGYW7YGGTuSZJYoG+8TJwOEimgdGk1nter9C+e/ +IovQmbXhrkQA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Andrew Gaul , Andrew Gaul , Jakub Kicinski , Sasha Levin , davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, hayeswang@realtek.com, jflf_kernel@gmx.com, aaron.ma@canonical.com, dober6023@gmail.com, svenva@chromium.org, linux-usb@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 6.0 77/77] r8152: Rate limit overflow messages Date: Sun, 9 Oct 2022 18:07:54 -0400 Message-Id: <20221009220754.1214186-77-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221009220754.1214186-1-sashal@kernel.org> References: <20221009220754.1214186-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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