]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netgraph/ng_bridge: Avoid cache thrashing
authorLutz Donnerhacke <donner@FreeBSD.org>
Thu, 11 Feb 2021 22:59:11 +0000 (23:59 +0100)
committerLutz Donnerhacke <donner@FreeBSD.org>
Thu, 27 May 2021 10:55:52 +0000 (12:55 +0200)
commit7fd88ba72eb353c9dd43063f5faea019ad5b0ea9
tree34081abde87f52df88ae86ffb378e0db04ef9acc
parentfb5e2f4d613eee6839f25084fdcf078081c080bc
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)
sys/netgraph/ng_bridge.c