Commit 34d6fde1 authored by Sony Chacko's avatar Sony Chacko Committed by David S. Miller

netxen: report valid speed and duplex status when link is down

o Update version to 4.0.78
Signed-off-by: default avatarSony Chacko <sony.chacko@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b8c30812
...@@ -53,8 +53,8 @@ ...@@ -53,8 +53,8 @@
#define _NETXEN_NIC_LINUX_MAJOR 4 #define _NETXEN_NIC_LINUX_MAJOR 4
#define _NETXEN_NIC_LINUX_MINOR 0 #define _NETXEN_NIC_LINUX_MINOR 0
#define _NETXEN_NIC_LINUX_SUBVERSION 77 #define _NETXEN_NIC_LINUX_SUBVERSION 78
#define NETXEN_NIC_LINUX_VERSIONID "4.0.77" #define NETXEN_NIC_LINUX_VERSIONID "4.0.78"
#define NETXEN_VERSION_CODE(a, b, c) (((a) << 24) + ((b) << 16) + (c)) #define NETXEN_VERSION_CODE(a, b, c) (((a) << 24) + ((b) << 16) + (c))
#define _major(v) (((v) >> 24) & 0xff) #define _major(v) (((v) >> 24) & 0xff)
......
...@@ -248,6 +248,11 @@ netxen_nic_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) ...@@ -248,6 +248,11 @@ netxen_nic_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd)
} }
} }
if (!netif_running(dev) || !adapter->ahw.linkup) {
ecmd->duplex = DUPLEX_UNKNOWN;
ethtool_cmd_speed_set(ecmd, SPEED_UNKNOWN);
}
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment