Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1235467pxu; Mon, 23 Nov 2020 15:31:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUszkIZBG8ZQausiNNuTrad6fjTfvqHgSVSlbu7tfu1rNzYw1LqVrqtxNjeFhzZrePJ3c4 X-Received: by 2002:a17:906:14cd:: with SMTP id y13mr1759727ejc.510.1606174315188; Mon, 23 Nov 2020 15:31:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606174315; cv=none; d=google.com; s=arc-20160816; b=Dl4fC1GyGysb0urV9lTu11av3o3KNcMLi0CMGIlVOynmf4xkVFrzB0+aisFpZsYpO9 BkWTXOt0AxWM/XFDlUPsptrsIcYDYkOHQSufTU24ES366PoCX0F6ax0GIOSoV8PgNvkR Tpi+lWlxjTDwmocly1mKrn9zOp5p0Jo0A6q/OTbAiXbcX7DNPowibSwWRCfH0uWr6r/q 0KPUrOkFMrUWGI68ICgsk5Eb9RfwToEDutHCNeD7RGYHhzGESltVbr9uiROvftw42Xkf YeQiIxTfeHBqCbHipNcCqVBiy7BKOdb9f40i1IMAOechwAVfPNHJVpG5NjO8135z793y ByjA== 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=hnJ62ABB1uKAf5cKnbMtXMshgFLd2W4T04JdzyNdbEI=; b=aISbzoCV1x9m1x4zRYoqHkihuqLMqlm9iZW8aGCzWWyNMqf7BOpKsZ+vMj1jOR/pf1 tIPg2DUwzpppuQkJKW15g8z9tbBRuMjuFRiK7mbsfpASXY81+FbUJtzH3KWRT5Sn15Kv eKkp/SJmbndPxx61Hl91E6u/NQqAufFEoPYtEgCZ49jGAoa8Q7kSBz2oB2C+HMYlejrA j54X8ii0PT8qJhpnnA9STX72MvzFSmFIGTlBSDlEgPpMYuWvwbrWITqN+LVTfCEZYesb qFLgx2Uraz5MNnM8YYWdZ7EeK4cRm59cEIEB4C5PFRYZdCyDrtPWlO61aj4vr0/+h799 MVrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Oz61t1Pb; 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 n18si7190418ejk.69.2020.11.23.15.31.32; Mon, 23 Nov 2020 15:31:55 -0800 (PST) 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=Oz61t1Pb; 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 S1729971AbgKWMZT (ORCPT + 99 others); Mon, 23 Nov 2020 07:25:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:34664 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729940AbgKWMZK (ORCPT ); Mon, 23 Nov 2020 07:25:10 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 08E3520857; Mon, 23 Nov 2020 12:25:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606134309; bh=vEveepjJECq8Q7QmV4F3VjVF9TjNSLIX4IXXka6cj1Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Oz61t1Pb9LCYaoSc04y9px8bG66faNfm76MxqtXp7vwJDMPdwrvHWmlT+KN9TIePH SI/2PInEyuPmc/EFmMNKJIj4txzF/Vuuhoq6Dq3k/qIu2qR1Mi6+cc7/LbBc9hFKXa uORHhkbg6EZQgDvCiLBw593cP1tf8Fna/wyUnqrw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Heiner Kallweit , Jakub Kicinski Subject: [PATCH 4.9 07/47] net: bridge: add missing counters to ndo_get_stats64 callback Date: Mon, 23 Nov 2020 13:21:53 +0100 Message-Id: <20201123121805.904214183@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121805.530891002@linuxfoundation.org> References: <20201123121805.530891002@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: Heiner Kallweit [ Upstream commit 7a30ecc9237681bb125cbd30eee92bef7e86293d ] In br_forward.c and br_input.c fields dev->stats.tx_dropped and dev->stats.multicast are populated, but they are ignored in ndo_get_stats64. Fixes: 28172739f0a2 ("net: fix 64 bit counters on 32 bit arches") Signed-off-by: Heiner Kallweit Link: https://lore.kernel.org/r/58ea9963-77ad-a7cf-8dfd-fc95ab95f606@gmail.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- net/bridge/br_device.c | 1 + 1 file changed, 1 insertion(+) --- a/net/bridge/br_device.c +++ b/net/bridge/br_device.c @@ -177,6 +177,7 @@ static struct rtnl_link_stats64 *br_get_ sum.rx_packets += tmp.rx_packets; } + netdev_stats_to_stats64(stats, &dev->stats); stats->tx_bytes = sum.tx_bytes; stats->tx_packets = sum.tx_packets; stats->rx_bytes = sum.rx_bytes;