Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166619530
D28546.id83590.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
583 B
Referenced Files
None
Subscribers
None
D28546.id83590.diff
View Options
Index: sys/netgraph/ng_bridge.c
===================================================================
--- sys/netgraph/ng_bridge.c
+++ sys/netgraph/ng_bridge.c
@@ -739,7 +739,10 @@
/* Look up packet's source Ethernet address in hashtable */
if ((host = ng_bridge_get(priv, eh->ether_shost)) != NULL) {
- /* Update time since last heard from this host */
+ /* Update time since last heard from this host.
+ * This is safe without locking, because it's
+ * the only operation during shared access.
+ */
host->staleness = 0;
/* Did host jump to a different link? */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Aug 15, 10:06 PM (20 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36804930
Default Alt Text
D28546.id83590.diff (583 B)
Attached To
Mode
D28546: netgraph/ng_bridge: Document staleness in multithreaded operation
Attached
Detach File
Event Timeline
Log In to Comment