Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137594284
D22783.id65549.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
664 B
Referenced Files
None
Subscribers
None
D22783.id65549.diff
View Options
Index: sys/net/if.c
===================================================================
--- sys/net/if.c
+++ sys/net/if.c
@@ -1077,11 +1077,7 @@
struct domain *dp;
struct ifnet *iter;
int found = 0;
-#ifdef VIMAGE
- bool shutdown;
- shutdown = ifp->if_vnet->vnet_shutdown;
-#endif
IFNET_WLOCK();
CK_STAILQ_FOREACH(iter, &V_ifnet, if_link)
if (iter == ifp) {
@@ -1151,7 +1147,7 @@
* On VNET shutdown abort here as the stack teardown will do all
* the work top-down for us.
*/
- if (shutdown) {
+ if (ifp->if_vnet->vnet_shutdown) {
/* Give interface users the chance to clean up. */
EVENTHANDLER_INVOKE(ifnet_departure_event, ifp);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 25, 12:29 PM (10 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26133864
Default Alt Text
D22783.id65549.diff (664 B)
Attached To
Mode
D22783: if_detach_internal: defer reading of vnet_shutdown until needed
Attached
Detach File
Event Timeline
Log In to Comment