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 <jakub.kicinski@netronome.com> Reviewed-by: Rolf Neugebauer <rolf.neugebauer@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6462de8ca4
commit
4b402d71d3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue