Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F165125726
D58629.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
970 B
Referenced Files
None
Subscribers
None
D58629.diff
View Options
diff --git a/sys/dev/igc/if_igc.c b/sys/dev/igc/if_igc.c
--- a/sys/dev/igc/if_igc.c
+++ b/sys/dev/igc/if_igc.c
@@ -816,8 +816,6 @@
*/
igc_disable_broken_l1_2(ctx);
- igc_if_init(ctx);
-
return(0);
}
@@ -1297,8 +1295,6 @@
device_printf(sc->dev, "Unsupported media type\n");
}
- igc_if_init(ctx);
-
return (0);
}
@@ -3357,6 +3353,16 @@
return (error);
}
+static void
+igc_sysctl_request_reinit(struct igc_softc *sc)
+{
+ if ((if_getflags(iflib_get_ifp(sc->ctx)) & IFF_UP) == 0)
+ return;
+
+ iflib_request_reset(sc->ctx);
+ iflib_admin_intr_deferred(sc->ctx);
+}
+
/*
* Manage DMA Coalesce:
* Control values:
@@ -3402,7 +3408,7 @@
return (EINVAL);
}
/* Reinit the interface */
- igc_if_init(sc->ctx);
+ igc_sysctl_request_reinit(sc);
return (error);
}
@@ -3423,7 +3429,7 @@
return (error);
sc->hw.dev_spec._i225.eee_disable = (value != 0);
- igc_if_init(sc->ctx);
+ igc_sysctl_request_reinit(sc);
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 7, 6:46 AM (4 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36077200
Default Alt Text
D58629.diff (970 B)
Attached To
Mode
D58629: igc: defer sysctl-driven reinit to the admin task
Attached
Detach File
Event Timeline
Log In to Comment