WSL2-Linux-Kernel/net/hsr
Sebastian Andrzej Siewior 20d3c1e9b8 hsr: Use a single struct for self_node.
self_node_db is a list_head with one entry of struct hsr_node. The
purpose is to hold the two MAC addresses of the node itself.
It is convenient to recycle the structure. However having a list_head
and fetching always the first entry is not really optimal.

Created a new data strucure contaning the two MAC addresses named
hsr_self_node. Access that structure like an RCU protected pointer so
it can be replaced on the fly without blocking the reader.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: Kurt Kanzenbach <kurt@linutronix.de>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-12-01 20:26:22 -08:00
..
Kconfig
Makefile
hsr_debugfs.c
hsr_device.c hsr: Use a single struct for self_node. 2022-12-01 20:26:22 -08:00
hsr_device.h
hsr_forward.c hsr: Synchronize sending frames to have always incremented outgoing seq nr. 2022-12-01 20:26:21 -08:00
hsr_forward.h
hsr_framereg.c hsr: Use a single struct for self_node. 2022-12-01 20:26:22 -08:00
hsr_framereg.h hsr: Synchronize sequence number updates. 2022-12-01 20:26:21 -08:00
hsr_main.c
hsr_main.h hsr: Use a single struct for self_node. 2022-12-01 20:26:22 -08:00
hsr_netlink.c
hsr_netlink.h
hsr_slave.c
hsr_slave.h