Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1615469pxb; Mon, 11 Oct 2021 09:32:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx72J35WvxnepN5UsCxwfAUjcV8Z5/mAVEkPYdJlPVLhFWMT9+OCQuufPsZuP6JP+02kRiI X-Received: by 2002:a17:906:f41:: with SMTP id h1mr20880034ejj.255.1633969938754; Mon, 11 Oct 2021 09:32:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633969938; cv=none; d=google.com; s=arc-20160816; b=xxFbuBfHipwBRvP2OPdIzsCN4JxWzl5LpCC0Mm1rAoqxOpPYuqGyaBxYSN/ocE52Qs 0rrg0RfF2tXa0GeNKjR8UbUxfyCwA9QC4VVOg3S8ko/qNL83qvFzsPAu5Se7Puj9L9NP 60guuKJDccNtdEBBxDRFT2tPmb9L/A97/T1DBjHtZRLGLsGCancDk0BrAm6AJXRP22rr JhDHgYPMBmhOrpFLlM5sH64Hb9X5guUQfI6FTObWGGn4lXcf69qcVcNWEZxcQp5VZD0O /Q7mneM23WphyqMWy1BQtvFl1Bdwh2/VatyLqOqHLTRMMH+9OHCWXy91Yr5+XA/rzTut VgfA== 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=tOvh1QcN60YgCTfSt9Awzk3N18ZAwKmp8NWvxbOjsos=; b=NymE1/Uw1DfGmivCu7PzrhKzkSt7wN8PBLXIKzS6yrhRXCqnMuF9qM4D6l3eXsVXMX zvzA5XmB0VvB20PVHEcREMxkMqCd/1/vda+I3iQ6dDYUVs2EsYjrLkj30Ko7dGViECbd EnCTZnivDd9FRhIoQf1ra6IO0kpQpEIMmLDVQ/95kuNWXIOzmXQ1r/M3wKAosdJQmKg7 rmu7v4AoLC7myF8LdOj/XOd1GQYXYedzp7w0sUTEkeSJcSz+CMghhF5QkCPVUu7G3YZR ljZsORxsvDyVPJgGSe/HK5AaXZJ0InwNm4q7vFKGyCf7/wpQZXgr1oQjPr7/HZTKJEX9 9dTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ja+NdQ0I; 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 ga1si14461551ejc.128.2021.10.11.09.31.55; Mon, 11 Oct 2021 09:32:18 -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=Ja+NdQ0I; 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 S237795AbhJKN7W (ORCPT + 99 others); Mon, 11 Oct 2021 09:59:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:49348 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236766AbhJKN5j (ORCPT ); Mon, 11 Oct 2021 09:57:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 332586115C; Mon, 11 Oct 2021 13:54:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633960457; bh=muFfzpf137RI9NEMGG8Dw8zEjBIl0FHw7FCmns55K04=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ja+NdQ0IyDd97Gsl8dElvxDtaUjq1RAOC3/ak8Zhk/KZXyDl3vgIbwTZH/ywvIR1/ PbZ0Aqt+GAQX26JcO0DqS7yefmccGt2sdGBSXWMmoTo5VJtQipVmMkMJp1zxWx8SDq ko8RGR6SvjT5SxdMxbGBRzRJetUb1rhHzI6kv34M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eric Dumazet , Yangchun Fu , Kuo Zhao , David Awogbemila , "David S. Miller" , Sasha Levin Subject: [PATCH 5.10 63/83] gve: report 64bit tx_bytes counter from gve_handle_report_stats() Date: Mon, 11 Oct 2021 15:46:23 +0200 Message-Id: <20211011134510.560045999@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211011134508.362906295@linuxfoundation.org> References: <20211011134508.362906295@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: Eric Dumazet [ Upstream commit 17c37d748f2b122a95b6d0524d410302ff89a2b1 ] Each tx queue maintains a 64bit counter for bytes, there is no reason to truncate this to 32bit (or this has not been documented) Fixes: 24aeb56f2d38 ("gve: Add Gvnic stats AQ command and ethtool show/set-priv-flags.") Signed-off-by: Eric Dumazet Cc: Yangchun Fu Cc: Kuo Zhao Cc: David Awogbemila Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/google/gve/gve_main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/google/gve/gve_main.c b/drivers/net/ethernet/google/gve/gve_main.c index b658bf9b5399..fd52218f4884 100644 --- a/drivers/net/ethernet/google/gve/gve_main.c +++ b/drivers/net/ethernet/google/gve/gve_main.c @@ -987,9 +987,10 @@ static void gve_handle_reset(struct gve_priv *priv) void gve_handle_report_stats(struct gve_priv *priv) { - int idx, stats_idx = 0, tx_bytes; - unsigned int start = 0; struct stats *stats = priv->stats_report->stats; + int idx, stats_idx = 0; + unsigned int start = 0; + u64 tx_bytes; if (!gve_get_report_stats(priv)) return; -- 2.33.0