hotplug deficiency -- HW network interfaces not generating events

Philip Prindeville philipp_subx at redfish-solutions.com
Tue Aug 29 09:39:23 PDT 2023


Hi,

I was looking at a way to address https://github.com/openwrt/openwrt/issues/13329 by leveraging hotplug instead (per Gorki's suggestion).

Then it wouldn't matter if the drivers were loaded at preinit time (marked as "required to boot" in netdevices.mk) or not.

But when I went to look into this, I noticed that "ifup" actions are generated for interfaces, but not for the device creation itself.

If I look for devices generating ADD events, I only see dummy, loopback, SQM, XFRM, et. but not actual Ethernet NIC's.  And /sys/class/net/eth0 has a uevent entry.

Why are we not seeing hotplug events for actual network hardware?

Any ideas what's required to have network interfaces generate ADD events?

Thanks,

-Philip




More information about the openwrt-devel mailing list