Page MenuHomeFreeBSD

D15575.1778558301.diff
No OneTemporary

Size
751 B
Referenced Files
None
Subscribers
None

D15575.1778558301.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
Tue, May 12, 3:58 AM (6 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28689571
Default Alt Text
D15575.1778558301.diff (751 B)

Event Timeline