Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1652229pxb; Wed, 9 Feb 2022 01:15:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZlhOLm8OVZ80HT4z/TXUnc7Q4kwthDQdYxjM/veie/PQ+tjZpeGsTYeVnNDtsujAf6hUE X-Received: by 2002:a05:6a00:1a87:: with SMTP id e7mr1256430pfv.84.1644398106900; Wed, 09 Feb 2022 01:15:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644398106; cv=none; d=google.com; s=arc-20160816; b=RJupUfI7PYwYKo/HWYTtIl2uwSU/xYXgqaxTxFnhWc7cx6xxxEgs/eyqb4A1zD2Kz3 S0Zr6R+v8/UBVsbZXbMEGVb8FBBfYT8Sb6iiPoOrzy61wJYRVXk5/dR7kZ0Y6xa317Ce Pyj05WbiwmoWUG8cCpPEWKNKsXq+6QL8TAE8dgA4HNhOgD7pcJmnEnR7UkSqSMQg18Db QRFeLcYzQEsVnCFCm6gfwx57t/ZSDg5dmMJgm0pW+LtUj3MfoMFZcrdhAYas+keZ3wTN E26R/w9LzN5vjfMFt/hc3MUAfRXc7Yla4foJQdmHtlKtNpbY5+elYZyDcAg4+BMTwMtK hpfw== 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=7eMcKx0DAj0MQzlyf4WUT2ARI4NBkWzsfHc4GJgBjGM=; b=fag0JqwrgQMjJVQ+ISWsS3pptqHZgZI/a4Fl31xc+Xg7tvUquz1Bg6hn/+lX2GLAl4 p+y0SxyL8jjZVU7wlRr64qjhALN+mgJp9teBjR3tY7IQ/kvLtU+WYFH4jfN7a2c6MKWp 49yQRKH8+34pPpECEnshWysyCsBujkcwh6A/h+IiqeKA2rMgHSHkC+iiuVBix46+W3C0 pH9LDqi163iDClpCKd45aGMbJZOUkTxL3iRZqrLDNklBH2hIYFM58m8jQIo2cHZ/ObQ1 BPcrwdGbMhGIeT9lNdky5uw2XszDdo+I3TkjHThk7Jk4tokit3N0aw/vov40a7E9No6i Qpaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NbmqlW8w; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m23si1381950pgk.455.2022.02.09.01.15.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 01:15:06 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NbmqlW8w; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 70A9FE00D0E1; Wed, 9 Feb 2022 00:54:15 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382786AbiBGLUt (ORCPT + 99 others); Mon, 7 Feb 2022 06:20:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377775AbiBGLPi (ORCPT ); Mon, 7 Feb 2022 06:15:38 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1839EC03FEDC; Mon, 7 Feb 2022 03:15:16 -0800 (PST) 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 F1054613F8; Mon, 7 Feb 2022 11:15:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8F01C004E1; Mon, 7 Feb 2022 11:15:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644232503; bh=JTT6MLmBoO9BQYAvaddXI2YcFB4imTl5OxVLeNg4Aow=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NbmqlW8wZhfVyiK+S9wwMnfhgRXR6CxzvxXbY7gsvBvl8hQgUoHcbC8ZeMXCRcNsA sDPmLcSeXJ/S0V9cUy3VNDFsDu3ZWDicjD2CfWpUnjcX7AZHJYOWGwR5aqeFEtVTqM BriccZaoXblPvlTQZxteLGksdyjaYJkvQuimRwaE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Joe Damato , kernel test robot , Gurucharan G , Tony Nguyen Subject: [PATCH 4.19 23/86] i40e: fix unsigned stat widths Date: Mon, 7 Feb 2022 12:05:46 +0100 Message-Id: <20220207103758.305019922@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220207103757.550973048@linuxfoundation.org> References: <20220207103757.550973048@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Joe Damato commit 3b8428b84539c78fdc8006c17ebd25afd4722d51 upstream. Change i40e_update_vsi_stats and struct i40e_vsi to use u64 fields to match the width of the stats counters in struct i40e_rx_queue_stats. Update debugfs code to use the correct format specifier for u64. Fixes: 41c445ff0f48 ("i40e: main driver core") Signed-off-by: Joe Damato Reported-by: kernel test robot Tested-by: Gurucharan G Signed-off-by: Tony Nguyen Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/i40e/i40e.h | 8 ++++---- drivers/net/ethernet/intel/i40e/i40e_debugfs.c | 2 +- drivers/net/ethernet/intel/i40e/i40e_main.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) --- a/drivers/net/ethernet/intel/i40e/i40e.h +++ b/drivers/net/ethernet/intel/i40e/i40e.h @@ -708,12 +708,12 @@ struct i40e_vsi { struct rtnl_link_stats64 net_stats_offsets; struct i40e_eth_stats eth_stats; struct i40e_eth_stats eth_stats_offsets; - u32 tx_restart; - u32 tx_busy; + u64 tx_restart; + u64 tx_busy; u64 tx_linearize; u64 tx_force_wb; - u32 rx_buf_failed; - u32 rx_page_failed; + u64 rx_buf_failed; + u64 rx_page_failed; /* These are containers of ring pointers, allocated at run-time */ struct i40e_ring **rx_rings; --- a/drivers/net/ethernet/intel/i40e/i40e_debugfs.c +++ b/drivers/net/ethernet/intel/i40e/i40e_debugfs.c @@ -236,7 +236,7 @@ static void i40e_dbg_dump_vsi_seid(struc (unsigned long int)vsi->net_stats_offsets.rx_compressed, (unsigned long int)vsi->net_stats_offsets.tx_compressed); dev_info(&pf->pdev->dev, - " tx_restart = %d, tx_busy = %d, rx_buf_failed = %d, rx_page_failed = %d\n", + " tx_restart = %llu, tx_busy = %llu, rx_buf_failed = %llu, rx_page_failed = %llu\n", vsi->tx_restart, vsi->tx_busy, vsi->rx_buf_failed, vsi->rx_page_failed); rcu_read_lock(); --- a/drivers/net/ethernet/intel/i40e/i40e_main.c +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c @@ -791,9 +791,9 @@ static void i40e_update_vsi_stats(struct struct rtnl_link_stats64 *ns; /* netdev stats */ struct i40e_eth_stats *oes; struct i40e_eth_stats *es; /* device's eth stats */ - u32 tx_restart, tx_busy; + u64 tx_restart, tx_busy; struct i40e_ring *p; - u32 rx_page, rx_buf; + u64 rx_page, rx_buf; u64 bytes, packets; unsigned int start; u64 tx_linearize;