diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2020-11-13 10:27:27 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-11-24 13:02:55 +0100 |
commit | 41456415b831c1df8da98014e113c4f4a3db22a8 (patch) | |
tree | d44c546a2b8a0d9069650a9471d6608d685430a2 | |
parent | c2e45a424c200a593f87cf6831c16d941141b828 (diff) | |
download | linux-stable-41456415b831c1df8da98014e113c4f4a3db22a8.tar.gz linux-stable-41456415b831c1df8da98014e113c4f4a3db22a8.tar.bz2 linux-stable-41456415b831c1df8da98014e113c4f4a3db22a8.zip |
net: bridge: add missing counters to ndo_get_stats64 callback
[ 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 <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/58ea9963-77ad-a7cf-8dfd-fc95ab95f606@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | net/bridge/br_device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bridge/br_device.c b/net/bridge/br_device.c index 928bd5515f02..495655bcee69 100644 --- a/net/bridge/br_device.c +++ b/net/bridge/br_device.c @@ -177,6 +177,7 @@ static struct rtnl_link_stats64 *br_get_stats64(struct net_device *dev, 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; |