Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131918327
D28601.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
451 B
Referenced Files
None
Subscribers
None
D28601.diff
View Options
diff --git a/sys/netgraph/ng_bridge.c b/sys/netgraph/ng_bridge.c
--- a/sys/netgraph/ng_bridge.c
+++ b/sys/netgraph/ng_bridge.c
@@ -788,7 +788,8 @@
* This is safe without locking, because it's
* the only operation during shared access.
*/
- host->staleness = 0;
+ if (__predict_false(host->staleness > 0))
+ host->staleness = 0;
if ((host == NULL && ctx.incoming->learnMac) ||
(host != NULL && host->link != ctx.incoming)) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 13, 5:15 AM (17 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23659099
Default Alt Text
D28601.diff (451 B)
Attached To
Mode
D28601: netgraph/ng_bridge: Avoid cache thrashing
Attached
Detach File
Event Timeline
Log In to Comment