diff options
author | Ajit Khaparde <ajitk@serverengines.com> | 2009-11-06 05:06:59 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-07 07:26:03 +0300 |
commit | 9e90c961134929678022aee0c68b16c1ed520614 (patch) | |
tree | fee2dad0fcbfe8e5168edf9a394ecfa8061cc386 /drivers/net/benet/be_ethtool.c | |
parent | bb7b22840141a4fab8f232ee90d30cdf728bb032 (diff) | |
download | linux-9e90c961134929678022aee0c68b16c1ed520614.tar.xz |
be2net: fix to set proper flow control on resume
If be2 goes into suspend after a user changes the flow control settings,
we are not programming them back after resume. This patch takes care of it.
We now get the flow control settings before going to suspend mode and
then apply them during resume.
Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be_ethtool.c')
-rw-r--r-- | drivers/net/benet/be_ethtool.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/benet/be_ethtool.c b/drivers/net/benet/be_ethtool.c index cda5bf2fc50a..f0fd95b43c07 100644 --- a/drivers/net/benet/be_ethtool.c +++ b/drivers/net/benet/be_ethtool.c @@ -323,10 +323,12 @@ be_set_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *ecmd) if (ecmd->autoneg != 0) return -EINVAL; + adapter->tx_fc = ecmd->tx_pause; + adapter->rx_fc = ecmd->rx_pause; - status = be_cmd_set_flow_control(adapter, ecmd->tx_pause, - ecmd->rx_pause); - if (!status) + status = be_cmd_set_flow_control(adapter, + adapter->tx_fc, adapter->rx_fc); + if (status) dev_warn(&adapter->pdev->dev, "Pause param set failed.\n"); return status; |