Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109029170
D15575.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
751 B
Referenced Files
None
Subscribers
None
D15575.diff
View Options
Index: head/sys/net/iflib.h
===================================================================
--- head/sys/net/iflib.h
+++ head/sys/net/iflib.h
@@ -358,7 +358,10 @@
* autogenerate a MAC address
*/
#define IFLIB_GEN_MAC 0x08000
-
+/*
+ * Interface needs admin task to ignore interface up/down status
+ */
+#define IFLIB_ADMIN_ALWAYS_RUN 0x10000
/*
Index: head/sys/net/iflib.c
===================================================================
--- head/sys/net/iflib.c
+++ head/sys/net/iflib.c
@@ -3807,7 +3807,8 @@
ctx->ifc_flags &= ~(IFC_DO_RESET|IFC_DO_WATCHDOG);
STATE_UNLOCK(ctx);
- if (!running & !oactive)
+ if ((!running & !oactive) &&
+ !(ctx->ifc_sctx->isc_flags & IFLIB_ADMIN_ALWAYS_RUN))
return;
CTX_LOCK(ctx);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 31, 8:34 PM (18 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16370108
Default Alt Text
D15575.diff (751 B)
Attached To
Mode
D15575: iflib: Add new shared flag to iflib: IFLIB_ADMIN_ALWAYS_RUN
Attached
Detach File
Event Timeline
Log In to Comment