Page MenuHomeFreeBSD

D15575.1793488514.diff
No OneTemporary

Authored By
Unknown
Size
721 B
Referenced Files
None
Subscribers
None

D15575.1793488514.diff

Index: sys/net/iflib.h
===================================================================
--- sys/net/iflib.h
+++ 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: sys/net/iflib.c
===================================================================
--- sys/net/iflib.c
+++ 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

Mime Type
text/plain
Expires
Sat, Oct 31, 11:15 PM (18 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41270933
Default Alt Text
D15575.1793488514.diff (721 B)

Event Timeline