From patchwork Mon Oct 24 11:31:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 8517 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp405587wru; Mon, 24 Oct 2022 04:57:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM442p1TVLT85bvSxO3RtG8qU9btp2vmC/KAgQCoiLhuDgs2hN2GYX63qKVyBgn37reJkBKb X-Received: by 2002:a63:8942:0:b0:46e:c02e:2eb5 with SMTP id v63-20020a638942000000b0046ec02e2eb5mr13656421pgd.141.1666612639177; Mon, 24 Oct 2022 04:57:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666612639; cv=none; d=google.com; s=arc-20160816; b=nSphqsuTsywsZX1rbXZXH4Hiooloanz0jxWHYV+5oU6SnRU1tT7QyOKxOt8SCqlKbj 8445ZyB72eAM3A/MMABnAjSOLjvDfKv7b/yicse0TsjquLV77iPxLGxUPSBEJ7wqd/+S M+TUjev/bgUcwbD0XlqWTnBj6GUV3ud9RaT7M7jcp8qE7bUvUAOipsCrtsZoamYMEnKd 6vphTZDDgMGlvGqBUz5UHM0M4TD9bD8EPq0sOlvegwgOsN8PS/vnSmcZ4YqTEhkln55k vLnJgBElVU3hGTLIoSebfhWWxikUSMTp/oBuExggOiAkeeitSgQh5V9fulIt/kguj4pX hx7g== 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=rg0OXQnS+Rtpph8AqWPzdqM3xa8dPCi0IuZwOcV/bO8=; b=Bwu4WDNH3+eN5jbiwJrail2hL2iSPZ8bSZABDSHmRlO1GGb9xQlB9At3V5qtZbHYa8 xdl2hksGyrWUcp++BzgOUEEp9pKhwZxDHkrXvhiZBNMgDEt6JClXEhQwyMaSJsl6fZo5 TCNKiRJCTX8dSYAagqMJvqjFkBai65bdD6L/JCNQcY3JQ2gPzBRsfh/T11t37ka52yab UJdvf41UfdVx3oRA91VHgAByjVynkC2U4xZriN+STRP3VgAQcse3y0C/TlTm7kNu8tGl 0OpAUMn+a1plEwqcYw2TqVzLZW3BBAhGFy2svogiUd5S7EqmfVGkFBNN7s8S3HhdeK22 Ryhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fnLcPRFU; 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 u16-20020a170903125000b0017a8a84a3b6si40591382plh.106.2022.10.24.04.57.05; Mon, 24 Oct 2022 04:57:19 -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=fnLcPRFU; 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 S232292AbiJXL4n (ORCPT + 99 others); Mon, 24 Oct 2022 07:56:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232559AbiJXLzA (ORCPT ); Mon, 24 Oct 2022 07:55:00 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7319379624; Mon, 24 Oct 2022 04:45:57 -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 sin.source.kernel.org (Postfix) with ESMTPS id 64876CE1333; Mon, 24 Oct 2022 11:44:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5604BC433D7; Mon, 24 Oct 2022 11:44:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666611854; bh=/DR/Pm6olMKD07sZdtTxvKVfY++LskMxUDTIWs68pxo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fnLcPRFUSrmCFitQQFknzjDRzEIhl+aJkUdMpOyu3uMkroY2q2/Z+EaoIzmaVM3Wf J3PWIPCBXUQ5/tanqTwiQNQodgucnB2qype7kdODHAFWCYACRbGUGaFCWlbNTJgMh4 vYrb73fq8F3AF1xhjRe8SrRp607/U+7FWELLep6Y= 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.9 136/159] r8152: Rate limit overflow messages Date: Mon, 24 Oct 2022 13:31:30 +0200 Message-Id: <20221024112954.430967872@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112949.358278806@linuxfoundation.org> References: <20221024112949.358278806@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?1747570014275487433?= X-GMAIL-MSGID: =?utf-8?q?1747570014275487433?= 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 96f6edcb0062..a354695a22a9 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -1282,7 +1282,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: