aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000/e1000_ethtool.c
diff options
context:
space:
mode:
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>2006-09-27 15:53:28 -0400
committerAuke Kok <juke-jan.h.kok@intel.com>2006-09-27 15:53:28 -0400
commit11241b106937ec470e0220ae5ce98c8ea27fd700 (patch)
tree040261cc937c59211001bc300a007fb162c69fd6 /drivers/net/e1000/e1000_ethtool.c
parent975b366af66280ed5b852a1a0446586ce71e306e (diff)
e1000: rename flow control symbols
Sogned-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Diffstat (limited to 'drivers/net/e1000/e1000_ethtool.c')
-rw-r--r--drivers/net/e1000/e1000_ethtool.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/e1000/e1000_ethtool.c b/drivers/net/e1000/e1000_ethtool.c
index dd9576bc23c4..02193a19ab1e 100644
--- a/drivers/net/e1000/e1000_ethtool.c
+++ b/drivers/net/e1000/e1000_ethtool.c
@@ -228,11 +228,11 @@ e1000_get_pauseparam(struct net_device *netdev,
228 pause->autoneg = 228 pause->autoneg =
229 (adapter->fc_autoneg ? AUTONEG_ENABLE : AUTONEG_DISABLE); 229 (adapter->fc_autoneg ? AUTONEG_ENABLE : AUTONEG_DISABLE);
230 230
231 if (hw->fc == e1000_fc_rx_pause) 231 if (hw->fc == E1000_FC_RX_PAUSE)
232 pause->rx_pause = 1; 232 pause->rx_pause = 1;
233 else if (hw->fc == e1000_fc_tx_pause) 233 else if (hw->fc == E1000_FC_TX_PAUSE)
234 pause->tx_pause = 1; 234 pause->tx_pause = 1;
235 else if (hw->fc == e1000_fc_full) { 235 else if (hw->fc == E1000_FC_FULL) {
236 pause->rx_pause = 1; 236 pause->rx_pause = 1;
237 pause->tx_pause = 1; 237 pause->tx_pause = 1;
238 } 238 }
@@ -252,13 +252,13 @@ e1000_set_pauseparam(struct net_device *netdev,
252 msleep(1); 252 msleep(1);
253 253
254 if (pause->rx_pause && pause->tx_pause) 254 if (pause->rx_pause && pause->tx_pause)
255 hw->fc = e1000_fc_full; 255 hw->fc = E1000_FC_FULL;
256 else if (pause->rx_pause && !pause->tx_pause) 256 else if (pause->rx_pause && !pause->tx_pause)
257 hw->fc = e1000_fc_rx_pause; 257 hw->fc = E1000_FC_RX_PAUSE;
258 else if (!pause->rx_pause && pause->tx_pause) 258 else if (!pause->rx_pause && pause->tx_pause)
259 hw->fc = e1000_fc_tx_pause; 259 hw->fc = E1000_FC_TX_PAUSE;
260 else if (!pause->rx_pause && !pause->tx_pause) 260 else if (!pause->rx_pause && !pause->tx_pause)
261 hw->fc = e1000_fc_none; 261 hw->fc = E1000_FC_NONE;
262 262
263 hw->original_fc = hw->fc; 263 hw->original_fc = hw->fc;
264 264