No link up before IFF_UP? (early link optimization)
I have a optimization task for a time constrained boot process. The system in question is an AMD Ryzen from the R1000 family with an Intel I211 running igb in 5.17.1.
The current kernel and driver behavior:
UEFI (link up) -> Kernel starts, driver is probed (link down) -> link stays down until userspace IFF_UP -> after an extra +6-7 seconds the link comes up.
This means that the userspace can't start communication after 6-7 seconds after device open. Moving the interface initialization earlier won't help much as IFF_UP is about 0.5 away from jumping to initramfs.
So the question is: Can I get the interface to stop powering down after probe? If reset is needed, then take up the interface again. Of course the kernel won't start forwarding until netif_carrier transitions. But I'd like to move the resets and powerups as early as possible. I guess that also means no resets if no settings have changed.
Regards,
Christian