From patchwork Mon Oct 24 11:32:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9153 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp457724wru; Mon, 24 Oct 2022 06:36:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4buSqIfhp2RXKjhVT3TuRDdBuw2gndCNp4vgrlYFQwqriHt1NOnpUG97ZZ8W0sAU+rmw7c X-Received: by 2002:a17:90a:e592:b0:20d:3b10:3817 with SMTP id g18-20020a17090ae59200b0020d3b103817mr23726663pjz.43.1666618586067; Mon, 24 Oct 2022 06:36:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666618586; cv=none; d=google.com; s=arc-20160816; b=hOw2BK886MMhsqaDGVvsLchsINzB8t4alhvZojlnHHSM1QieRzVNmbxOIMFxzhWWS/ I5cqCNSUoS5MdKgAqX9gdgqVwOGOPKEWTM26lxezY3dYds2luCdHMY73E1VGrGESBPOu HqvdIe+B7PfptpVfVBPkW2oDmNLwB3jU3ENLTcyFqvy7ROtDBnPSoDy4eDtgGrrOFf4A ScQMNExWMpoGGVXQROTQYxnrsRkIk41Pm2Zq20gTR75zmEL3H0amDyfiI5djKx4jurgw UFiMZoDct6lMj6LnxSxU/OeCRKa1wiGuLgjZmPHPHfz3MJcEUIq4QovI/NnXZ61eJTbb YOVg== 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=lgcRTXpqPH6qcXn873teujM27SxFsJ+8rE+yw2Ag7+g=; b=wIhFpkaTgvhQION4Nqe3/wILPZaDJQxy+4mNK7dWhayumxKntlCK2Pnwpu2rfxJDIy jnlmwBGDbiEi3XIZLAxVXIZD13n1dpgmoT4iuGvnzbdH9+NliAiixCZInRh/5KdbLVTM NIxT7NBKgiCcDryDZPsmdEl8OexnKpRkiOG8bhDSNmDTvlXyyRHXk30AKBD9lP1DmUeZ OLJBuNns/oO4WqqrHlHPqR+UOreqNNFpWxf1ie/HqPunHs748VR6XHVoLow1U8YQyI/j T7QO0M3sL25N1R/GwENosfVKHhxlzDlOLFvp7+sxvOTW8zEDTFUpUMJpIuz0YcT2T2D7 60yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Dh9kj4+Z; 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 oc9-20020a17090b1c0900b001fe2de6a2c9si19243957pjb.4.2022.10.24.06.36.12; Mon, 24 Oct 2022 06:36:26 -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=Dh9kj4+Z; 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 S233775AbiJXN1b (ORCPT + 99 others); Mon, 24 Oct 2022 09:27:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236259AbiJXNYw (ORCPT ); Mon, 24 Oct 2022 09:24:52 -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 62D2FA9258; Mon, 24 Oct 2022 05:31:01 -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 23DA7612A1; Mon, 24 Oct 2022 12:30:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FFA3C43142; Mon, 24 Oct 2022 12:30:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666614602; bh=gFrW7cGD5JJ4ll2P3SrnHW8IEKo4ms+qt3S6ja08OKM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dh9kj4+ZIUqFc7qpDRpC2ffvN4oQY2mFxr1vTpoaMaknEeVew4orZS4g9ec/wscKc vZGy/kFNigq9CXN+a3nY+IrjpjjVzOHFCyYh23GnGgS8d1o2ode2S6W2ro7DcfBA/Y hVuSks7QypKLMvPNWYe8eQj2jfS1PiPLD8xS/wsU= 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.10 324/390] r8152: Rate limit overflow messages Date: Mon, 24 Oct 2022 13:32:01 +0200 Message-Id: <20221024113036.797564152@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113022.510008560@linuxfoundation.org> References: <20221024113022.510008560@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?1747576250474901973?= X-GMAIL-MSGID: =?utf-8?q?1747576250474901973?= 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 0bb5b1c78654..a526242a3e36 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -1689,7 +1689,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: