In the data path of ng_bridge(4), the only value of an host struct,
which needs to be modified, is the staleness, which is reset every
time a frame was received. It's save to leave the code as it is.
Depends on D28545
Differential D28546
netgraph/ng_bridge: Document staleness in multithreaded operation donner on Feb 8 2021, 10:10 PM. Authored by Tags None Referenced Files
Subscribers
Details In the data path of ng_bridge(4), the only value of an host struct, Depends on D28545 No functional changes.
Diff Detail
Event TimelineComment Actions I don't know if counter(9) makes sense here. That's usually intended for statistical information (e.g. how many packets passed through this interface). This looks like something that wants to be protected by a lock, or implemented with an atomic. Comment Actions The only shared access to the variable is setting it to zero. So there is no need for any synchronization all. |