Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289867
b: refs/heads/master
c: 476a4b6
h: refs/heads/master
i:
  289865: c21e2b8
  289863: 73330ed
v: v3
  • Loading branch information
Sony Chacko authored and David S. Miller committed Feb 4, 2012
1 parent a3d0c31 commit e399fd3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 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: 646779f1b4ade4acac6b49dbfa8be84a98ab85b4
refs/heads/master: 476a4b6d2543f0d9fa5205e0c25ebcd7973337bd
7 changes: 2 additions & 5 deletions trunk/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ qlcnic_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd)
{
struct qlcnic_adapter *adapter = netdev_priv(dev);
int check_sfp_module = 0;
u16 pcifn = adapter->ahw->pci_func;

/* read which mode */
if (adapter->ahw->port_type == QLCNIC_GBE) {
Expand Down Expand Up @@ -194,10 +193,8 @@ qlcnic_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd)
goto skip;
}

val = QLCRD32(adapter, P3P_LINK_SPEED_REG(pcifn));
ethtool_cmd_speed_set(ecmd, P3P_LINK_SPEED_MHZ *
P3P_LINK_SPEED_VAL(pcifn, val));
ecmd->duplex = DUPLEX_FULL;
ethtool_cmd_speed_set(ecmd, SPEED_UNKNOWN);
ecmd->duplex = DUPLEX_UNKNOWN;
ecmd->autoneg = AUTONEG_DISABLE;
} else
return -EIO;
Expand Down
8 changes: 7 additions & 1 deletion trunk/drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,13 @@ qlcnic_handle_linkevent(struct qlcnic_adapter *adapter,

adapter->module_type = module;
adapter->link_autoneg = autoneg;
adapter->link_speed = link_speed;

if (link_status) {
adapter->link_speed = link_speed;
} else {
adapter->link_speed = SPEED_UNKNOWN;
adapter->link_duplex = DUPLEX_UNKNOWN;
}
}

static void
Expand Down

0 comments on commit e399fd3

Please sign in to comment.