Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289865
b: refs/heads/master
c: 34d6fde
h: refs/heads/master
i:
  289863: 73330ed
v: v3
  • Loading branch information
Sony Chacko authored and David S. Miller committed Feb 4, 2012
1 parent 76bac45 commit c21e2b8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b8c30812b479a53b717ad665728df55d30f784d5
refs/heads/master: 34d6fde187f169a1b155d091158f97ab34d93bab
4 changes: 2 additions & 2 deletions trunk/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 trunk/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 c21e2b8

Please sign in to comment.