HomeFreeBSD

netgraph/ng_bridge: Avoid cache thrashing

Description

netgraph/ng_bridge: Avoid cache thrashing

Hint the compiler, that this update is needed at most once per second.
Only in this case the memory line needs to be written. This will
reduce the amount of cache trashing during forward of most frames.

Suggested by: zec
Approved by: zec
Differential Revision: https://reviews.freebsd.org/D28601

(cherry picked from commit 4dfe70fdbda05453e824bc9edfc0d09eab7b2929)

Details

Provenance
donnerAuthored on Feb 11 2021, 10:59 PM
Differential Revision
D28601: netgraph/ng_bridge: Avoid cache thrashing
Parents
rGfb5e2f4d613e: netgraph/ng_bridge: become SMP aware
Branches
Unknown
Tags
Unknown