diff options
Diffstat (limited to 'drivers/net/sfc/ethtool.c')
-rw-r--r-- | drivers/net/sfc/ethtool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/sfc/ethtool.c b/drivers/net/sfc/ethtool.c index bb415326c739..eb12f201ab00 100644 --- a/drivers/net/sfc/ethtool.c +++ b/drivers/net/sfc/ethtool.c | |||
@@ -539,7 +539,7 @@ static u32 efx_ethtool_get_link(struct net_device *net_dev) | |||
539 | { | 539 | { |
540 | struct efx_nic *efx = netdev_priv(net_dev); | 540 | struct efx_nic *efx = netdev_priv(net_dev); |
541 | 541 | ||
542 | return efx->link_up; | 542 | return efx->link_state.up; |
543 | } | 543 | } |
544 | 544 | ||
545 | static int efx_ethtool_get_eeprom_len(struct net_device *net_dev) | 545 | static int efx_ethtool_get_eeprom_len(struct net_device *net_dev) |
@@ -699,7 +699,7 @@ static int efx_ethtool_set_pauseparam(struct net_device *net_dev, | |||
699 | if (EFX_WORKAROUND_11482(efx) && reset) { | 699 | if (EFX_WORKAROUND_11482(efx) && reset) { |
700 | if (falcon_rev(efx) >= FALCON_REV_B0) { | 700 | if (falcon_rev(efx) >= FALCON_REV_B0) { |
701 | /* Recover by resetting the EM block */ | 701 | /* Recover by resetting the EM block */ |
702 | if (efx->link_up) | 702 | if (efx->link_state.up) |
703 | falcon_drain_tx_fifo(efx); | 703 | falcon_drain_tx_fifo(efx); |
704 | } else { | 704 | } else { |
705 | /* Schedule a reset to recover */ | 705 | /* Schedule a reset to recover */ |