From 4b402d71d304aa627111fb9d746bb0a75c3989b9 Mon Sep 17 00:00:00 2001 From: Jakub Kicinski Date: Thu, 17 Dec 2015 14:18:44 +0000 Subject: [PATCH] nfp: call netif_carrier_off() during init 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 Reviewed-by: Rolf Neugebauer Signed-off-by: David S. Miller --- drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c index 6c5af4cb5bdc..43c618bafdb6 100644 --- a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c +++ b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c @@ -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); -- 2.20.1