Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102800508
D28774.id84203.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
521 B
Referenced Files
None
Subscribers
None
D28774.id84203.diff
View Options
Index: sys/net/iflib_clone.c
===================================================================
--- sys/net/iflib_clone.c
+++ sys/net/iflib_clone.c
@@ -81,13 +81,11 @@
iflib_pseudo_detach(device_t dev)
{
if_ctx_t ctx;
- uint32_t ifc_flags;
ctx = device_get_softc(dev);
- ifc_flags = iflib_get_flags(ctx);
- if ((ifc_flags & IFC_INIT_DONE) == 0)
- return (0);
- return (IFDI_DETACH(ctx));
+ if ((iflib_get_flags(ctx) & IFC_IN_DETACH) == 0)
+ return (EBUSY);
+ return (0);
}
static device_t iflib_pseudodev;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 8:46 AM (6 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14694387
Default Alt Text
D28774.id84203.diff (521 B)
Attached To
Mode
D28774: iflib: Fix detach of pseudo interfaces
Attached
Detach File
Event Timeline
Log In to Comment