Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171248176
D28601.id89143.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
481 B
Referenced Files
None
Subscribers
None
D28601.id89143.diff
View Options
Index: sys/netgraph/ng_bridge.c
===================================================================
--- sys/netgraph/ng_bridge.c
+++ 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
Thu, Sep 10, 8:11 PM (20 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38665339
Default Alt Text
D28601.id89143.diff (481 B)
Attached To
Mode
D28601: netgraph/ng_bridge: Avoid cache thrashing
Attached
Detach File
Event Timeline
Log In to Comment