Commit c8768e73 authored by Shannon Nelson's avatar Shannon Nelson Committed by David S. Miller

ionic: set netdev default name

If the host system's udev fails to set a new name for the
network port, there is no NETDEV_CHANGENAME event to trigger
the driver to send the name down to the firmware.  It is safe
to set the lif name multiple times, so we add a call early on
to set the default netdev name to be sure the FW has something
to use in its internal debug logging.  Then when udev gets
around to changing it we can update it to the actual name the
system will be using.
Signed-off-by: default avatarShannon Nelson <snelson@pensando.io>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4b03b273
...@@ -2631,6 +2631,7 @@ int ionic_lifs_register(struct ionic *ionic) ...@@ -2631,6 +2631,7 @@ int ionic_lifs_register(struct ionic *ionic)
return err; return err;
} }
ionic->master_lif->registered = true; ionic->master_lif->registered = true;
ionic_lif_set_netdev_info(ionic->master_lif);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment