diff options
author | Chris Leech <christopher.leech@intel.com> | 2010-04-09 17:22:28 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-04-11 15:02:32 -0400 |
commit | 03d29bc1d58dcfc2fa30aed7af199f24444c2052 (patch) | |
tree | e1ffc9717e439aee7fda8658f21d3aab3bb6c396 /drivers/scsi | |
parent | 9ee50e48d8370dbcb42fa5b62b5bb3a9877e1f47 (diff) |
[SCSI] fcoe: check netif operstate instead of IFF_UP & link state
Allow for dormant states while link configuration completes.
In the default link mode, this is equivalent to the old check.
Signed-off-by: Chris Leech <christopher.leech@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/fcoe/fcoe.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index 0d8127e58feb..d16dd1232572 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c | |||
@@ -2148,8 +2148,7 @@ int fcoe_link_ok(struct fc_lport *lport) | |||
2148 | struct net_device *netdev = port->fcoe->netdev; | 2148 | struct net_device *netdev = port->fcoe->netdev; |
2149 | struct ethtool_cmd ecmd = { ETHTOOL_GSET }; | 2149 | struct ethtool_cmd ecmd = { ETHTOOL_GSET }; |
2150 | 2150 | ||
2151 | if ((netdev->flags & IFF_UP) && netif_carrier_ok(netdev) && | 2151 | if (netif_oper_up(netdev) && !dev_ethtool_get_settings(netdev, &ecmd)) { |
2152 | (!dev_ethtool_get_settings(netdev, &ecmd))) { | ||
2153 | lport->link_supported_speeds &= | 2152 | lport->link_supported_speeds &= |
2154 | ~(FC_PORTSPEED_1GBIT | FC_PORTSPEED_10GBIT); | 2153 | ~(FC_PORTSPEED_1GBIT | FC_PORTSPEED_10GBIT); |
2155 | if (ecmd.supported & (SUPPORTED_1000baseT_Half | | 2154 | if (ecmd.supported & (SUPPORTED_1000baseT_Half | |