nfp: call netif_carrier_off() during init
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 17 Dec 2015 14:18:44 +0000 (14:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Dec 2015 20:31:36 +0000 (15:31 -0500)
Netdevs default to carrier on, we should call netif_carrier_off()
during initialization since we handle carrier state changes in the
driver.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Rolf Neugebauer <rolf.neugebauer@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c

index 6c5af4cb5bdcc19dbda0cb46776032401414144d..43c618bafdb64186356fffbb779c69cd6361f75d 100644 (file)
@@ -2417,6 +2417,7 @@ int nfp_net_netdev_init(struct net_device *netdev)
        ether_setup(netdev);
        netdev->netdev_ops = &nfp_net_netdev_ops;
        netdev->watchdog_timeo = msecs_to_jiffies(5 * 1000);
+       netif_carrier_off(netdev);
 
        nfp_net_set_ethtool_ops(netdev);
        nfp_net_irqs_assign(netdev);