]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netgraph/ng_bridge: learn MACs via control message
authorLutz Donnerhacke <donner@FreeBSD.org>
Tue, 4 May 2021 20:14:59 +0000 (22:14 +0200)
committerLutz Donnerhacke <donner@FreeBSD.org>
Thu, 27 May 2021 11:00:17 +0000 (13:00 +0200)
commitd9a06ae65043b6a21cb816ed10d26cb947876d67
treeb4f2df13cd08b0466b1f4a0185c17b16159b4665
parentc3e4b38f4932d0ce457508b3893324a520e0dc30
netgraph/ng_bridge: learn MACs via control message

Add a new control message to move ethernet addresses to a given link
in ng_bridge(4). Send this message instead of doing the work directly.
This decouples the read-only activity from the modification under a
more strict writer lock.

Decoupling the work is a prerequisite for multithreaded operation.

Approved by: manpages (bcr), kp (earlier version)
Differential Revision: https://reviews.freebsd.org/D28516

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