ionic: check for link after netdev registration
authorShannon Nelson <snelson@pensando.io>
Thu, 12 Nov 2020 18:22:02 +0000 (10:22 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 14 Nov 2020 21:22:58 +0000 (13:22 -0800)
Request a link check as soon as the netdev is registered rather
than waiting for the watchdog to go off in order to get the
interface operational a little more quickly.

Signed-off-by: Shannon Nelson <snelson@pensando.io>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/pensando/ionic/ionic_lif.c

index 5457fb5..519d544 100644 (file)
@@ -2959,6 +2959,8 @@ int ionic_lif_register(struct ionic_lif *lif)
                dev_err(lif->ionic->dev, "Cannot register net device, aborting\n");
                return err;
        }
+
+       ionic_link_status_check_request(lif, true);
        lif->registered = true;
        ionic_lif_set_netdev_info(lif);