Skip to content

Commit

Permalink
netxen: report valid speed and duplex status when link is down
Browse files Browse the repository at this point in the history
o Update version to 4.0.78

Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sony Chacko authored and David S. Miller committed Feb 4, 2012
1 parent b8c3081 commit 34d6fde
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/qlogic/netxen/netxen_nic.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@

#define _NETXEN_NIC_LINUX_MAJOR 4
#define _NETXEN_NIC_LINUX_MINOR 0
#define _NETXEN_NIC_LINUX_SUBVERSION 77
#define NETXEN_NIC_LINUX_VERSIONID "4.0.77"
#define _NETXEN_NIC_LINUX_SUBVERSION 78
#define NETXEN_NIC_LINUX_VERSIONID "4.0.78"

#define NETXEN_VERSION_CODE(a, b, c) (((a) << 24) + ((b) << 16) + (c))
#define _major(v) (((v) >> 24) & 0xff)
Expand Down
5 changes: 5 additions & 0 deletions drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 34d6fde

Please sign in to comment.