Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177628317
D34624.1794883464.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D34624.1794883464.diff
View Options
Index: sys/netinet/ip_mroute.c
===================================================================
--- sys/netinet/ip_mroute.c
+++ sys/netinet/ip_mroute.c
@@ -1124,6 +1124,7 @@
struct rtdetq *rte;
u_long hash = 0;
u_short nstl;
+ struct epoch_tracker et;
MRW_WLOCK();
rt = mfc_find(&mfccp->mfcc_origin, &mfccp->mfcc_mcastgrp);
@@ -1144,6 +1145,7 @@
*/
nstl = 0;
hash = MFCHASH(mfccp->mfcc_origin, mfccp->mfcc_mcastgrp);
+ NET_EPOCH_ENTER(et);
LIST_FOREACH(rt, &V_mfchashtbl[hash], mfc_hash) {
if (in_hosteq(rt->mfc_origin, mfccp->mfcc_origin) &&
in_hosteq(rt->mfc_mcastgrp, mfccp->mfcc_mcastgrp) &&
@@ -1171,6 +1173,7 @@
}
}
}
+ NET_EPOCH_EXIT(et);
/*
* It is possible that an entry is being inserted without an upcall
@@ -1548,6 +1551,7 @@
int plen = ntohs(ip->ip_len);
MRW_LOCK_ASSERT();
+ NET_EPOCH_ASSERT();
/*
* If xmt_vif is not -1, send on only the requested vif.
@@ -1752,6 +1756,7 @@
int error __unused;
MRW_LOCK_ASSERT();
+ NET_EPOCH_ASSERT();
imo.imo_multicast_ifp = vifp->v_ifp;
imo.imo_multicast_ttl = mtod(m, struct ip *)->ip_ttl - 1;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 17, 2:44 AM (16 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41791718
Default Alt Text
D34624.1794883464.diff (1 KB)
Attached To
Mode
D34624: Enter epoch when addding IPv4 multicast forwarding cache entry
Attached
Detach File
Event Timeline