summaryrefslogtreecommitdiff
path: root/net/bridge/br_private_mrp.h
diff options
context:
space:
mode:
authorHoratiu Vultur <horatiu.vultur@microchip.com>2020-11-07 00:50:49 +0300
committerJakub Kicinski <kuba@kernel.org>2020-11-10 03:42:12 +0300
commit0169b8205431589b945c29a576c65f2037a5bc26 (patch)
tree4f83270279de8d3d3265392be10f9d8702753cf3 /net/bridge/br_private_mrp.h
parent084d0c13a4897a16f80950397ff3a8a8fc2ff042 (diff)
downloadlinux-0169b8205431589b945c29a576c65f2037a5bc26.tar.xz
bridge: mrp: Use hlist_head instead of list_head for mrp
Replace list_head with hlist_head for MRP list under the bridge. There is no need for a circular list when a linear list will work. This will also decrease the size of 'struct net_bridge'. Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Link: https://lore.kernel.org/r/20201106215049.1448185-1-horatiu.vultur@microchip.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/bridge/br_private_mrp.h')
-rw-r--r--net/bridge/br_private_mrp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_private_mrp.h b/net/bridge/br_private_mrp.h
index af0e9eff6549..1883118aae55 100644
--- a/net/bridge/br_private_mrp.h
+++ b/net/bridge/br_private_mrp.h
@@ -8,7 +8,7 @@
struct br_mrp {
/* list of mrp instances */
- struct list_head list;
+ struct hlist_node list;
struct net_bridge_port __rcu *p_port;
struct net_bridge_port __rcu *s_port;