Page MenuHomeFreeBSD

D15575.diff
No OneTemporary

D15575.diff

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

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)

Event Timeline