From patchwork Mon Oct 24 11:31:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 8635 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp420953wru; Mon, 24 Oct 2022 05:19:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7/dpRx0mHuGGoVhOKquo3rdHdZ98Q1y5bGLVgfW/XBUhKvvzRYK8b3GhFRAMCWWp3QePcX X-Received: by 2002:a17:907:16a6:b0:78e:f140:a9b9 with SMTP id hc38-20020a17090716a600b0078ef140a9b9mr27333481ejc.502.1666613946120; Mon, 24 Oct 2022 05:19:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666613946; cv=none; d=google.com; s=arc-20160816; b=mH4yCPLJF2WHdlEEa3UqQdBVR82lZlGzh7W4GnM6NCx+HqQMmXrrDgBGg7KXCYhiy6 r4Cked45LiGz376gLzzsEQmNDjw0otGxTASO+MY8ZfmdSI+TcAhYVzgQQ3I3KeOqlaBR BbIbvTxW4CvH7ALooqtil3/Vkx6OmFztl0jhSUlXkNGsn8q9suFIbvIwGBA0lnso70R0 VAFGVz2Q5c3SesW0hkL0gEkyf+jpTG6NWIGZCqgfqutP6rj03kR/v4Zng+SgWqSfer5R TGITnsgZ2W8pFIkw2wKV6XNZA0O30exA6KSpi/+Sze3LhVTqJUveNYRI6W13M/HrH/XZ kDww== 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=AjqEfNE8rwYg4kdwNc0mIjvzNIaxsQeuYdOvzNZuXe0=; b=ebveZc7kGggi8aYK/mJSmpYQMWLdF0HK6uJJ9D5nNfbBulL2U47oPMfTfaWV8em3+k oXS5YGwWQe4gyaLZ1QBxn7t6bQh2pI1x1oEf1pkBWXjRxIBjM2dQjhZXAU9mFAUfFpzj yaoA/jHRKMRZDYOHNvMshjpW+lqhpWoLV2ccPiePHyrz43Xk5uK97OQ+eNP9J02HZwnV E/1bwVa5lp+Z78/ZuWjmzJc/ggzk+kL31DrRg7HACkJah3YcjHGjCWF/J3kaY5heZIjn zH5ZIcli5/O3J5+zK3ay7hF0W168enah8jRcYPfSa6JaRqHA5y/GFJmqfD1ZfsuZtAwO fpFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="A3/h6DPL"; 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 dr8-20020a170907720800b00781b6ce15e1si28886912ejc.101.2022.10.24.05.18.42; Mon, 24 Oct 2022 05:19:06 -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="A3/h6DPL"; 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 S232873AbiJXMNH (ORCPT + 99 others); Mon, 24 Oct 2022 08:13:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232876AbiJXMMV (ORCPT ); Mon, 24 Oct 2022 08:12:21 -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 2ACBDBF5D; Mon, 24 Oct 2022 04:54:25 -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 A5CE4612D6; Mon, 24 Oct 2022 11:53:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6A62C433C1; Mon, 24 Oct 2022 11:53:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666612397; bh=zsc+NPBNRssYvuCi2pIfNAVP01gepb+7Au+cEg+X6mA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A3/h6DPLc39DykkVOxjTecXz2RDh3s/JDgkSAmmyhS3z9BrJp9SHJerkmxde/cS9B CglmrnH3MN/JvCsmI5DOQQJmhcUBpwtTzx8UW5AZbg0nyGYIk8jCFw1GLGm25Y2+yE +PGyDTd9C9cmh44V3Dne7zz30HsLipBPekK72lDY= 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 4.14 183/210] r8152: Rate limit overflow messages Date: Mon, 24 Oct 2022 13:31:40 +0200 Message-Id: <20221024113002.896969208@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112956.797777597@linuxfoundation.org> References: <20221024112956.797777597@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?1747571385224277716?= X-GMAIL-MSGID: =?utf-8?q?1747571385224277716?= 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 a5a4fef09b93..1ed358d0da84 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -1382,7 +1382,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: