net: bridge: switch to net core statistics counters handling
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 20 Nov 2020 11:22:23 +0000 (12:22 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 21 Nov 2020 22:40:50 +0000 (14:40 -0800)
commit7609ecb2ed2868a253ca5ea995d845802dbf1865
tree82b7685a1c1042a71838b91e66171b1a05b9c735
parent9c89cc9b7fad80b6827334da4ea776c6b84addc4
net: bridge: switch to net core statistics counters handling

Use netdev->tstats instead of a member of net_bridge for storing
a pointer to the per-cpu counters. This allows us to use core
functionality for statistics handling.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/9bad2be2-fd84-7c6e-912f-cee433787018@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/bridge/br_device.c
net/bridge/br_input.c
net/bridge/br_private.h