summaryrefslogtreecommitdiff
path: root/net/bridge/br_private.h
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2020-11-20 14:22:23 +0300
committerJakub Kicinski <kuba@kernel.org>2020-11-22 01:40:50 +0300
commit7609ecb2ed2868a253ca5ea995d845802dbf1865 (patch)
tree82b7685a1c1042a71838b91e66171b1a05b9c735 /net/bridge/br_private.h
parent9c89cc9b7fad80b6827334da4ea776c6b84addc4 (diff)
downloadlinux-7609ecb2ed2868a253ca5ea995d845802dbf1865.tar.xz
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>
Diffstat (limited to 'net/bridge/br_private.h')
-rw-r--r--net/bridge/br_private.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h
index f44f46a305aa..d538ccec0acd 100644
--- a/net/bridge/br_private.h
+++ b/net/bridge/br_private.h
@@ -377,7 +377,6 @@ struct net_bridge {
spinlock_t hash_lock;
struct hlist_head frame_type_list;
struct net_device *dev;
- struct pcpu_sw_netstats __percpu *stats;
unsigned long options;
/* These fields are accessed on each packet */
#ifdef CONFIG_BRIDGE_VLAN_FILTERING