From patchwork Mon Oct 24 11:31:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9010 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp440716wru; Mon, 24 Oct 2022 06:04:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7WHJzGfC2dXBvxIWUcjYJQsexB2ri6I+p78B6v65zqa9kZJuAr9abaFxKhvVyRI7EU/xal X-Received: by 2002:a17:902:c40f:b0:186:b221:f378 with SMTP id k15-20020a170902c40f00b00186b221f378mr2560254plk.69.1666616683395; Mon, 24 Oct 2022 06:04:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666616683; cv=none; d=google.com; s=arc-20160816; b=tMcUeQAO8+/jV+vYFEkRH3oUU2I4fPJEjOW7350xQmHk4KsFkis96vp0zHtlOR0o/1 HhliB126nT18GS4m6nBRhQPD3pz/8Wfc1u8lzqqRdHFM27wYAyHnj1jc5kmGFJL8qi1D jvwE9nyZumBZ8vsM8pbfr7AJQsXdktKVKnS9Hj0tEGmUIdm6/LojOnqj9/Cpc6tjEfP0 8Mu7lt+aGZSWYL7ryJsvPmzSnCwScas5GHj2AcMuQK0ilBuhFj4MB3Uk3MFpeRnfCJ4T tZro8E5lD4+NkCUD7Clok4DgwKZ/1+vR+xOStTRCAxeXRaWyRiFSwx9SlWrHxGe+qJeb 1Ygw== 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=gYfrvbIhLwQY07FpCllgUnQOm2W6keiu3/43KL2PPx8=; b=yBt2uR2gtuMz+uVQ7uscl0lCaAhGC7IYP9xICDryl7hqJh3QB+Hx++8z6MIuZQq9FG 2SKR8XHPj6XLCrG8tCZC3CAC5OIV+hHQ9meq46+J+Y2MYkXgsdmEYtYb+S72fC7hKDGA X8gfHvzr/JrKVI/oOnQhSeLajVkQOqzam22qMW6ecVMG/O9SWHg+0GhcsriIxPo7MlCN +R0yD9Q9o+ZJXabn93R1bH6AF39BjSObBe7DzyVdhgI/qCKh4Hwf9WZsO93HfldqqAvz GzZE11sUwVszt1wJG+AAIN6C+svRCm7si0xd3NBM+WUk3FnoXMulyEN2TDDqThY1fpAs O8iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PjsGWW5l; 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 q85-20020a632a58000000b004394687b653si2139129pgq.253.2022.10.24.06.03.40; Mon, 24 Oct 2022 06:04:43 -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=PjsGWW5l; 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 S235178AbiJXNDE (ORCPT + 99 others); Mon, 24 Oct 2022 09:03:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235226AbiJXM7l (ORCPT ); Mon, 24 Oct 2022 08:59:41 -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 C63659AFBC; Mon, 24 Oct 2022 05:19:13 -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 41B15612FC; Mon, 24 Oct 2022 12:13:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5880BC433C1; Mon, 24 Oct 2022 12:13:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666613629; bh=w0xqP950AUhtyiNNQprU0ph6rEJaTU1Ue73KctpkwPU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PjsGWW5lSRDnXlG5/oVwc3jO75Uol41xk2tA0Y0dP8BVgm5jTrDjTYWDVJP4BnOfu +5TTRVoQQo+tl15eVGo2anlhj0l+eNaHli7iiC+QbznyZHrQlfvr/+Xk/rtyeDt+/X q4+yaDG+ciMcNiVp38Hx8CcO7Zf2/FyhZRgV85sc= 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.4 209/255] r8152: Rate limit overflow messages Date: Mon, 24 Oct 2022 13:31:59 +0200 Message-Id: <20221024113009.991748695@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113002.471093005@linuxfoundation.org> References: <20221024113002.471093005@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 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?1747574255405614271?= X-GMAIL-MSGID: =?utf-8?q?1747574255405614271?= 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 9042db982a08..dafdae6536a3 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -1479,7 +1479,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: