mirror of
https://github.com/opnsense/src.git
synced 2026-05-19 16:35:42 -04:00
netgraph/ng_bridge: become SMP aware
The node ng_bridge underwent a lot of changes in the last few months.
All those steps were necessary to distinguish between structure
modifying and read-only data transport paths. Now it's done, the node
can perform frame forwarding on multiple cores in parallel.
Differential Revision: https://reviews.freebsd.org/D28123
(cherry picked from commit 9674c2e68c)
This commit is contained in:
parent
cab6109379
commit
fb5e2f4d61
1 changed files with 0 additions and 9 deletions
|
|
@ -351,15 +351,6 @@ ng_bridge_constructor(node_p node)
|
|||
priv->conf.minStableAge = DEFAULT_MIN_STABLE_AGE;
|
||||
priv->sendUnknown = 1; /* classic bridge */
|
||||
|
||||
/*
|
||||
* This node has all kinds of stuff that could be screwed by SMP.
|
||||
* Until it gets it's own internal protection, we go through in
|
||||
* single file. This could hurt a machine bridging between two
|
||||
* GB ethernets so it should be fixed.
|
||||
* When it's fixed the process SHOULD NOT SLEEP, spinlocks please!
|
||||
* (and atomic ops )
|
||||
*/
|
||||
NG_NODE_FORCE_WRITER(node);
|
||||
NG_NODE_SET_PRIVATE(node, priv);
|
||||
priv->node = node;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue