kernel: modules: load e1000e driver during pre-init stage
authorTil Kaiser <[email protected]>
Sat, 12 Oct 2024 16:32:08 +0000 (18:32 +0200)
committerRobert Marko <[email protected]>
Mon, 6 Oct 2025 17:06:26 +0000 (19:06 +0200)
Set the pre-init boot flag for the e1000e network device
driver so that it is loaded during the early pre-init
stage of the boot process instead of later.

Then, it is possible to rename its network ports via the
ucidef_set_network_device_path function from the
02_network script while booting.

Signed-off-by: Til Kaiser <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/17251
Signed-off-by: Robert Marko <[email protected]>
package/kernel/linux/modules/netdevices.mk

index eb44ed5b6ba479f5d0146a87fa1a46395a1e09d2..0aed1655a9278a0fe984999cffa968cc0cfea8c0 100644 (file)
@@ -1259,7 +1259,7 @@ define KernelPackage/e1000e
   DEPENDS:=@PCIE_SUPPORT +kmod-ptp
   KCONFIG:=CONFIG_E1000E
   FILES:=$(LINUX_DIR)/drivers/net/ethernet/intel/e1000e/e1000e.ko
-  AUTOLOAD:=$(call AutoProbe,e1000e)
+  AUTOLOAD:=$(call AutoProbe,e1000e,1)
   MODPARAMS.e1000e:= \
     IntMode=1 \
     InterruptThrottleRate=4,4,4,4,4,4,4,4