diff options
author | Shannon Nelson <snelson@pensando.io> | 2020-07-21 23:34:05 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-22 04:36:34 +0300 |
commit | c8768e7321d2f2c69c3467928a2e63630e682e22 (patch) | |
tree | a122273198b28607a5d8b42e7b494732e450f834 /drivers/net | |
parent | 4b03b27349c03b72a084b2484623a744565bc399 (diff) | |
download | linux-c8768e7321d2f2c69c3467928a2e63630e682e22.tar.xz |
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: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/pensando/ionic/ionic_lif.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/pensando/ionic/ionic_lif.c b/drivers/net/ethernet/pensando/ionic/ionic_lif.c index cfcef41b7b23..bbfa25cd3294 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_lif.c +++ b/drivers/net/ethernet/pensando/ionic/ionic_lif.c @@ -2631,6 +2631,7 @@ int ionic_lifs_register(struct ionic *ionic) return err; } ionic->master_lif->registered = true; + ionic_lif_set_netdev_info(ionic->master_lif); return 0; } |