Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177527622
D61462.1794633296.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
519 B
Referenced Files
None
Subscribers
None
D61462.1794633296.diff
View Options
diff --git a/sys/net/if.c b/sys/net/if.c
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1476,19 +1476,20 @@
int
if_foreach_group(struct ifnet *ifp, if_foreach_group_cb_t cb, void *cb_arg)
{
+ struct epoch_tracker et;
struct ifg_list *ifgl;
int error;
MPASS(cb);
error = 0;
- IFNET_RLOCK();
+ NET_EPOCH_ENTER(et);
CK_STAILQ_FOREACH(ifgl, &ifp->if_groups, ifgl_next) {
error = cb(ifgl->ifgl_group, cb_arg);
if (error != 0)
break;
}
- IFNET_RUNLOCK();
+ NET_EPOCH_EXIT(et);
return (error);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 14, 5:14 AM (8 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37832645
Default Alt Text
D61462.1794633296.diff (519 B)
Attached To
Mode
D61462: net: traverse interface groups under the network epoch
Attached
Detach File
Event Timeline