diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2015-12-17 17:18:44 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-18 23:31:36 +0300 |
commit | 4b402d71d304aa627111fb9d746bb0a75c3989b9 (patch) | |
tree | 3ac1a87286591a01016706548a27ab9ed4c8d2d1 /drivers/net/ethernet/netronome | |
parent | 6462de8ca4d8000d91fbbdd610561cb8054f78a2 (diff) | |
download | linux-4b402d71d304aa627111fb9d746bb0a75c3989b9.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/netronome')
-rw-r--r-- | drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |