]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit88bb48d9a4f4f17f187bdab0721087e34d452179
tree82b7685a1c1042a71838b91e66171b1a05b9c735
parent1090e70eee977e6f7fb300ea72515260a9161667
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