diff options
Diffstat (limited to 'drivers/net/e1000/e1000_ethtool.c')
-rw-r--r-- | drivers/net/e1000/e1000_ethtool.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/e1000/e1000_ethtool.c b/drivers/net/e1000/e1000_ethtool.c index dd9576bc23c..02193a19ab1 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 | ||