]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf3659fc3ef795deb7c354202df16095f97d05b63
tree4f83270279de8d3d3265392be10f9d8702753cf3
parent589c70897ff700332254ec354c6eba3cba20a65f
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