aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igb/e1000_hw.h
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/e1000_hw.h
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/e1000_hw.h')
-rw-r--r--drivers/net/igb/e1000_hw.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/igb/e1000_hw.h b/drivers/net/igb/e1000_hw.h
index 0469e2e7e63..119869b1124 100644
--- a/drivers/net/igb/e1000_hw.h
+++ b/drivers/net/igb/e1000_hw.h
@@ -137,7 +137,7 @@ enum e1000_rev_polarity {
137 e1000_rev_polarity_undefined = 0xFF 137 e1000_rev_polarity_undefined = 0xFF
138}; 138};
139 139
140enum e1000_fc_type { 140enum e1000_fc_mode {
141 e1000_fc_none = 0, 141 e1000_fc_none = 0,
142 e1000_fc_rx_pause, 142 e1000_fc_rx_pause,
143 e1000_fc_tx_pause, 143 e1000_fc_tx_pause,
@@ -429,8 +429,8 @@ struct e1000_fc_info {
429 u16 pause_time; /* Flow control pause timer */ 429 u16 pause_time; /* Flow control pause timer */
430 bool send_xon; /* Flow control send XON */ 430 bool send_xon; /* Flow control send XON */
431 bool strict_ieee; /* Strict IEEE mode */ 431 bool strict_ieee; /* Strict IEEE mode */
432 enum e1000_fc_type type; /* Type of flow control */ 432 enum e1000_fc_mode current_mode; /* Type of flow control */
433 enum e1000_fc_type original_type; 433 enum e1000_fc_mode requested_mode;
434}; 434};
435 435
436struct e1000_mbx_operations { 436struct e1000_mbx_operations {