aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igb/igb_main.c
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2009-07-23 14:10:24 -0400
committerDavid S. Miller <davem@davemloft.net>2009-07-26 12:47:02 -0400
commit0cce119aa977dba00467985c0ae93fe43d28740a (patch)
tree847330167dff04e7059b949a85c93d3ca9b4a054 /drivers/net/igb/igb_main.c
parent2d94d8ab76ea6c858c6e2eb0ab0403b00b031039 (diff)
igb: cleanup flow control configuration to make requested/current more clear
This patch cleans up the flow control configuration for igb to make it a bit more readable in regards to what the requested and current modes are. This should help with the maintainability of the current igb driver in regards to flow control. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igb/igb_main.c')
-rw-r--r--drivers/net/igb/igb_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c
index 12d8683c231e..fb3273517587 100644
--- a/drivers/net/igb/igb_main.c
+++ b/drivers/net/igb/igb_main.c
@@ -1130,7 +1130,7 @@ void igb_reset(struct igb_adapter *adapter)
1130 } 1130 }
1131 fc->pause_time = 0xFFFF; 1131 fc->pause_time = 0xFFFF;
1132 fc->send_xon = 1; 1132 fc->send_xon = 1;
1133 fc->type = fc->original_type; 1133 fc->current_mode = fc->requested_mode;
1134 1134
1135 /* disable receive for all VFs and wait one second */ 1135 /* disable receive for all VFs and wait one second */
1136 if (adapter->vfs_allocated_count) { 1136 if (adapter->vfs_allocated_count) {
@@ -1427,8 +1427,8 @@ static int __devinit igb_probe(struct pci_dev *pdev,
1427 hw->mac.autoneg = true; 1427 hw->mac.autoneg = true;
1428 hw->phy.autoneg_advertised = 0x2f; 1428 hw->phy.autoneg_advertised = 0x2f;
1429 1429
1430 hw->fc.original_type = e1000_fc_default; 1430 hw->fc.requested_mode = e1000_fc_default;
1431 hw->fc.type = e1000_fc_default; 1431 hw->fc.current_mode = e1000_fc_default;
1432 1432
1433 adapter->itr_setting = IGB_DEFAULT_ITR; 1433 adapter->itr_setting = IGB_DEFAULT_ITR;
1434 adapter->itr = IGB_START_ITR; 1434 adapter->itr = IGB_START_ITR;