On Tue, Aug 18, 2020 at 12:44:02PM -0700, David Awogbemila wrote:
> From: Catherine Sullivan <[email protected]>
>
> Move the registration of the netdev up to initialize
> it before doing any logging so that the correct device name
> is displayed.
This is generally a bad idea. As soon as register_netdev() is called,
the device is in use. Packets are flowing. This is particularly true
with NFS root. The device must be 100% ready to do work before calling
register_netdev().
Take a look at dev_alloc_name().
Andrew