]> git.baikalelectronics.ru Git - kernel.git/commit
ionic: set netdev default name
authorShannon Nelson <snelson@pensando.io>
Tue, 21 Jul 2020 20:34:05 +0000 (13:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jul 2020 01:36:34 +0000 (18:36 -0700)
commita3b96ddabc80f8f11f7f6ee17b2494a2c3c67b1d
treea122273198b28607a5d8b42e7b494732e450f834
parentaeea042a823bc0e40d7863541c3034db4c88c6ae
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>
drivers/net/ethernet/pensando/ionic/ionic_lif.c