OSDN Git Service

bridge: mrp: Use hlist_head instead of list_head for mrp
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Fri, 6 Nov 2020 21:50:49 +0000 (22:50 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Nov 2020 00:42:12 +0000 (16:42 -0800)
commit0169b8205431589b945c29a576c65f2037a5bc26
tree4f83270279de8d3d3265392be10f9d8702753cf3
parent084d0c13a4897a16f80950397ff3a8a8fc2ff042
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>
net/bridge/br_device.c
net/bridge/br_mrp.c
net/bridge/br_mrp_netlink.c
net/bridge/br_private.h
net/bridge/br_private_mrp.h