From patchwork Sat Oct 22 07:27:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7605 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1106565wrr; Sat, 22 Oct 2022 01:38:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM76BMDdWNFf89e2oqtVgNuridn1SBHHa86EFSIseVMjyt76trs1+l4tZeciHfS7011JC9hn X-Received: by 2002:a05:6402:1286:b0:461:4acc:6db with SMTP id w6-20020a056402128600b004614acc06dbmr6747658edv.183.1666427898952; Sat, 22 Oct 2022 01:38:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666427898; cv=none; d=google.com; s=arc-20160816; b=SQ4oh5xmf+CnOM+5eFsArIiVLSgugTbgaR9qb0xxVA3ZJjSVbUdpo4Ipo4DhmlPw3V cYVxP4/ikPZ0U/9ZZc01ppW1wQdXXUvfz9vyff8Hrl9j93g8yxsafdGxI9/jzINNSBzH SQyxFcCQXK0lTYPWO6NeWh3qWdRNhGsKPMiuY/j+3rO6Oy8tpk+gvLe+aLhYA69xmHxu ZA7hUluI4J80hszYFYLdZJ/U+UMEa/Pv8PqNA8A4XtrliL+DNN7EPpYnxL9dpKFxShlx 4TpfQmPDATI8cfSo7smR6MDdYuRGVv6DVyEhWhCjjA/C5jqKOmgmjNwC1HmiZQe0Znas GkoA== 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=c0l5gxqBBdga3PraDLkGqYt5J5D3EYi2nfUCTkp4KqmSSxilChP3+iQDZuSIKQlkV5 GN3hfrBeAUtrrdbwxfXWb598pbgIsPnZxnQlK3l1aa9b6XiE6poFDEqsBFMLXR0Ocdso kcp/qf2zXaJ65NynW6DwNp7c4tdi1vQNrjZwF3eTBhOwlODY9sT+hkYxtayNbJAs2W4h QW4OcizWzlStjqoEg8jtjIPUUr/tHTwlsvpEbdYYPd5ZzAYxNVPSUZBq0CAI4I+6TCfN rWeufctDZ0F/zIJQ4MlsaMpkikjOymqwA76vsDCz7JRfJk8nCdcs3sBhR+rv8Ab6rv4Q K1mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RWVVGjyS; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bt14-20020a0564020a4e00b004604906b23csi5788913edb.545.2022.10.22.01.37.45; Sat, 22 Oct 2022 01:38:18 -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=RWVVGjyS; 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 S234158AbiJVIeM (ORCPT + 99 others); Sat, 22 Oct 2022 04:34:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234343AbiJVIaa (ORCPT ); Sat, 22 Oct 2022 04:30:30 -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 662DB285982; Sat, 22 Oct 2022 01:02:50 -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 08286B82E1D; Sat, 22 Oct 2022 08:02:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 574F1C433D6; Sat, 22 Oct 2022 08:02:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666425728; bh=Q7nL0WEUtaTUZsGTu8PhNbsvfvjXK7qqWWgILZtc6rQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RWVVGjySayjJ+7FDPKVnnl+y9/2H3Usq6W0xrGj9SJtV1bMlCS6PrYbyHdOFjndEc +Ie5aLd3inmNurGHqJ7WEtHVLwca1/A0vcCqVIpQaBcSeSfJcQJ868Z6Cu3ECkaN1t 6pPqEgSgUc4ux/jG0QDiO4aDRA9V4A9Jr1pRxaMQ= 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 5.19 597/717] r8152: Rate limit overflow messages Date: Sat, 22 Oct 2022 09:27:56 +0200 Message-Id: <20221022072524.855613955@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747376300686258712?= X-GMAIL-MSGID: =?utf-8?q?1747376300686258712?= 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: