Skip to content

Commit 7a30ecc

Browse files
hkallweitkuba-moo
authored andcommitted
net: bridge: add missing counters to ndo_get_stats64 callback
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: 2817273 ("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>
1 parent 35f735c commit 7a30ecc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

net/bridge/br_device.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ static void br_get_stats64(struct net_device *dev,
207207
{
208208
struct net_bridge *br = netdev_priv(dev);
209209

210+
netdev_stats_to_stats64(stats, &dev->stats);
210211
dev_fetch_sw_netstats(stats, br->stats);
211212
}
212213

0 commit comments

Comments
 (0)