]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netgraph/ng_bridge: move MACs via control message
authorLutz Donnerhacke <donner@FreeBSD.org>
Tue, 9 Feb 2021 13:28:48 +0000 (14:28 +0100)
committerLutz Donnerhacke <donner@FreeBSD.org>
Thu, 27 May 2021 11:04:39 +0000 (13:04 +0200)
commit6d7b0f3fe9b5cd41fa8404a70d34701400487e2b
treeb12dde41d700c512adf6eabb34a2e56982b7881e
parentd9a06ae65043b6a21cb816ed10d26cb947876d67
netgraph/ng_bridge: move MACs via control message

Use the new control message to move ethernet addresses from a link to
a new link in ng_bridge(4).  Send this message instead of doing the
work directly requires to move the loop detection into the control
message processing.  This will delay the loop detection by a few
frames.

This decouples the read-only activity from the modification under a
more strict writer lock.

Reviewed by: manpages (gbe)
Differential Revision: https://reviews.freebsd.org/D28559

(cherry picked from commit f6e0c471691e0005e450ec968a9fa3b5346a3c45)
share/man/man4/ng_bridge.4
sys/netgraph/ng_bridge.c