Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147960920
D28546.id83606.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
553 B
Referenced Files
None
Subscribers
None
D28546.id83606.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
@@ -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
Sun, Mar 15, 10:05 PM (8 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29737401
Default Alt Text
D28546.id83606.diff (553 B)
Attached To
Mode
D28546: netgraph/ng_bridge: Document staleness in multithreaded operation
Attached
Detach File
Event Timeline
Log In to Comment