Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3989552pxb; Mon, 4 Oct 2021 14:34:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwkE88fPYvrPcKe8/vuI/jrTyKO6TSWj9NvCuIADyytv8WMhlPSvUTXaIyBP/OsBHOlThk X-Received: by 2002:a17:906:2817:: with SMTP id r23mr19810853ejc.285.1633383269483; Mon, 04 Oct 2021 14:34:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633383269; cv=none; d=google.com; s=arc-20160816; b=Pmv2/uoIJCzzmYtylhrFHH2BNO0dVBqMPYfyfTZMnZI4lPiZisl6QiK/JiySfvEeSs ZIfVsOxpz7LCBWY8w+ePSPbdxLTzf9Gn8p0wavuWXo/Zo2BTE2SLtNQMn0ajz2R/LCaZ aviiGMLW8SG4whousBNDYFTuQKMHGulr4XB6aF+M2tWakPkTZ8hqARMhkM4LUsgUXjAc bpZqWvG2/YW9kq1XygAj1E0Ce/0Js9beFnOweG6v/knqsx78GhCZk37G6VBeKGFJEcx2 hne4Ht7IiMJPwKiTxrNqmvPTlxVb8W8T/y2IBq4B1ocF7BlnfWrZOfXgMyXcuGo6jNx7 6+nQ== 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=2/Z+g2PpjuuAIxwo82/IexFXUWCpC7z0CoeD67/IK6I=; b=eXosaDQnsOgAXoXf5IyGV/BuLTnQZl+4hcQverjP5LiErwvKzOhIW7JeXr31JRZ6v8 Vk8ndxilc+gcG5IYlcmRlHd+TtxR1/1bSViMAOWWkyUNtnfdiKcE8GwavFwFJSsFx0rw x+xBgjRSyBiiSR2CYs2iWYdpbOCSmGgOk/zSpteNbpu7UZob2ycWdtor8d4U5dkHkRiV n7UOxNnbBSznq7ofg18Qq3VfMb/XA/pLCyC2JmzPlCcFAo2WFG4uoatj+lSloGsyPisG C0V53r5SiZ5xr6wjN4R3DQPumlYc8IFQOK/FaFhOUZ7jMilnZTNfhY9cuKXeSKaPfF+m msWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zGupXx2H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 24si18782296ejg.618.2021.10.04.14.34.05; Mon, 04 Oct 2021 14:34:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zGupXx2H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S237811AbhJDNjO (ORCPT + 99 others); Mon, 4 Oct 2021 09:39:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:48662 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238197AbhJDNha (ORCPT ); Mon, 4 Oct 2021 09:37:30 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EEF9D61251; Mon, 4 Oct 2021 13:16:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633353418; bh=UMf1XOVsHv94e0KkW/FqHK4srx1noV6Jb9GwHgOc0lU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zGupXx2HLjf4srTuzvbSerYJmq0IGB4lEah+ze1zKHzpR8W+F9E/HF2gf0sMbF7OZ N35tJqMqd9V29EFStxZBZn5KZSjoUr50tdGbVAyRQjw6BMMBlf32kcP0VQkDMvrPZp sASt2QkURNuOvlGFThSwRndYdZfB33h1XxoaxYeU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shannon Nelson , "David S. Miller" , Sasha Levin Subject: [PATCH 5.14 120/172] ionic: fix gathering of debug stats Date: Mon, 4 Oct 2021 14:52:50 +0200 Message-Id: <20211004125048.857007252@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211004125044.945314266@linuxfoundation.org> References: <20211004125044.945314266@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shannon Nelson [ Upstream commit c23bb54f28d61a48008428e8cd320c947993919b ] Don't print stats for which we haven't reserved space as it can cause nasty memory bashing and related bad behaviors. Fixes: aa620993b1e5 ("ionic: pull per-q stats work out of queue loops") Signed-off-by: Shannon Nelson Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/pensando/ionic/ionic_stats.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/net/ethernet/pensando/ionic/ionic_stats.c b/drivers/net/ethernet/pensando/ionic/ionic_stats.c index 58a854666c62..c14de5fcedea 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_stats.c +++ b/drivers/net/ethernet/pensando/ionic/ionic_stats.c @@ -380,15 +380,6 @@ static void ionic_sw_stats_get_txq_values(struct ionic_lif *lif, u64 **buf, &ionic_dbg_intr_stats_desc[i]); (*buf)++; } - for (i = 0; i < IONIC_NUM_DBG_NAPI_STATS; i++) { - **buf = IONIC_READ_STAT64(&txqcq->napi_stats, - &ionic_dbg_napi_stats_desc[i]); - (*buf)++; - } - for (i = 0; i < IONIC_MAX_NUM_NAPI_CNTR; i++) { - **buf = txqcq->napi_stats.work_done_cntr[i]; - (*buf)++; - } for (i = 0; i < IONIC_MAX_NUM_SG_CNTR; i++) { **buf = txstats->sg_cntr[i]; (*buf)++; -- 2.33.0