From patchwork Mon Oct 24 11:31:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 8865 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp433146wru; Mon, 24 Oct 2022 05:48:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7TbsdMeuMuk/zVubngkJicKhHtubPPEjXBu6bqc+lUnxQX+nsSCQ0fuiQBHvmfUOm5Louk X-Received: by 2002:a17:90b:1e0c:b0:20f:bcbf:ab5 with SMTP id pg12-20020a17090b1e0c00b0020fbcbf0ab5mr36760906pjb.187.1666615720154; Mon, 24 Oct 2022 05:48:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666615720; cv=none; d=google.com; s=arc-20160816; b=CGKVAzOjVUUkdykBWdNT6ErPwJY0WAf4sLcIXZFIrBSIjgbRNMJg+NeQrtlwMW65G8 pYcZH/zq8GmG0tOhG7/etvKVz10xmYpMwUmvsrAmiqUGRFXbRaVj5lUoNRMnxQ24a3OK UFF0m9s4RZ2AzPUlb5j4LOg/IH7J46jqSW7rI4JyZwEpVmOc8u2D6Hx2uOhA8QbjJARw sHrKaGrkQ2MDFmlz4DP70FHvWi2dRKCSimAsjkVuD/jCdEpJe0ATjFcC9na+4D44ArHJ RePEAG3pjIlZ87HDzrqkRpXBx4LjxujAdw9dGfncXWZm3azXcqeKghN42osbNLjvKvFN so4Q== 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=QwLT/N1paEeSYq1rnharI9SY2nL+19Ipz0YSxIedqyw=; b=TZdeWf1EYvtdKqo/pxnK4DjV08YLsgduyHlWtfw7B4HK28pgb849GKQ7HmTXkH2a1I S5EHrSVUkJPyPEgz8Cz+5ImFsKwv/Zjs/5RSYhI/7ltP6kbyN+Jk/zsTixvs2jWUCZJp Wgj7Nf92zSaFrUH3qlle5b28yFCVWdOQJynx4zQPDmKBQlWFOApEffL0Aop64HjMBSXG IJ5cDooe3cv6Di4iUla+EH/h0x3jhFtQBV0i/Hy/aLDh1eAU7/ruIiOv0nbCLKPXUJJ9 pCtnhjprRZRCPewZ78ohdL4L2sCM55joWbUwb0qeStSB3E6AnEV4EriiSsamiWijC1QR emYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XGa3WTS8; 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 e8-20020a170902ef4800b00176b7e66c9asi34813011plx.155.2022.10.24.05.48.26; Mon, 24 Oct 2022 05:48:40 -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=XGa3WTS8; 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 S234054AbiJXMlv (ORCPT + 99 others); Mon, 24 Oct 2022 08:41:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234097AbiJXMi7 (ORCPT ); Mon, 24 Oct 2022 08:38:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7557B8A6CE; Mon, 24 Oct 2022 05:06:55 -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 7F90A61218; Mon, 24 Oct 2022 12:04:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 963EAC433D6; Mon, 24 Oct 2022 12:04:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666613058; bh=tRZBHcgUkPFk6ogO1WZRmubxnpsxcFS9qgub1Py0cnc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XGa3WTS8YOhJ8J9OkRsXSjLpwo6EergmU+4K8YQ6RP9rzSa70ptZ3mg0u3p1/ypd8 rFxXGlnHUR9GWuVFTMSjxyQjgA275weBJ351B5jtFlsVmX6xSBPlgTxZZpMD3I50j6 7dvtBrKrt1C/ulpCyWcjm87A3qUAn9b8YN2Y1mLQ= 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.19 192/229] r8152: Rate limit overflow messages Date: Mon, 24 Oct 2022 13:31:51 +0200 Message-Id: <20221024113005.343223466@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112959.085534368@linuxfoundation.org> References: <20221024112959.085534368@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?1747573245382126596?= X-GMAIL-MSGID: =?utf-8?q?1747573245382126596?= 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 4764e4f54cef..d5a74a71bf59 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -1386,7 +1386,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: