diff options
author | David S. Miller <davem@davemloft.net> | 2010-04-07 02:53:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-07 02:53:30 -0400 |
commit | 4a35ecf8bf1c4b039503fa554100fe85c761de76 (patch) | |
tree | 9b75f5d5636004d9a9aa496924377379be09aa1f /drivers/net/e1000 | |
parent | b4d562e3c3553ac58c7120555c4e4aefbb090a2a (diff) | |
parent | fb9e2d887243499b8d28efcf80821c4f6a092395 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
drivers/net/bonding/bond_main.c
drivers/net/via-velocity.c
drivers/net/wireless/iwlwifi/iwl-agn.c
Diffstat (limited to 'drivers/net/e1000')
-rw-r--r-- | drivers/net/e1000/e1000.h | 1 | ||||
-rw-r--r-- | drivers/net/e1000/e1000_main.c | 9 |
2 files changed, 1 insertions, 9 deletions
diff --git a/drivers/net/e1000/e1000.h b/drivers/net/e1000/e1000.h index 9902b33b716..2f29c213185 100644 --- a/drivers/net/e1000/e1000.h +++ b/drivers/net/e1000/e1000.h | |||
@@ -261,7 +261,6 @@ struct e1000_adapter { | |||
261 | /* TX */ | 261 | /* TX */ |
262 | struct e1000_tx_ring *tx_ring; /* One per active queue */ | 262 | struct e1000_tx_ring *tx_ring; /* One per active queue */ |
263 | unsigned int restart_queue; | 263 | unsigned int restart_queue; |
264 | unsigned long tx_queue_len; | ||
265 | u32 txd_cmd; | 264 | u32 txd_cmd; |
266 | u32 tx_int_delay; | 265 | u32 tx_int_delay; |
267 | u32 tx_abs_int_delay; | 266 | u32 tx_abs_int_delay; |
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c index 41330349b07..47da5fc1e9f 100644 --- a/drivers/net/e1000/e1000_main.c +++ b/drivers/net/e1000/e1000_main.c | |||
@@ -383,8 +383,6 @@ static void e1000_configure(struct e1000_adapter *adapter) | |||
383 | adapter->alloc_rx_buf(adapter, ring, | 383 | adapter->alloc_rx_buf(adapter, ring, |
384 | E1000_DESC_UNUSED(ring)); | 384 | E1000_DESC_UNUSED(ring)); |
385 | } | 385 | } |
386 | |||
387 | adapter->tx_queue_len = netdev->tx_queue_len; | ||
388 | } | 386 | } |
389 | 387 | ||
390 | int e1000_up(struct e1000_adapter *adapter) | 388 | int e1000_up(struct e1000_adapter *adapter) |
@@ -503,7 +501,6 @@ void e1000_down(struct e1000_adapter *adapter) | |||
503 | del_timer_sync(&adapter->watchdog_timer); | 501 | del_timer_sync(&adapter->watchdog_timer); |
504 | del_timer_sync(&adapter->phy_info_timer); | 502 | del_timer_sync(&adapter->phy_info_timer); |
505 | 503 | ||
506 | netdev->tx_queue_len = adapter->tx_queue_len; | ||
507 | adapter->link_speed = 0; | 504 | adapter->link_speed = 0; |
508 | adapter->link_duplex = 0; | 505 | adapter->link_duplex = 0; |
509 | netif_carrier_off(netdev); | 506 | netif_carrier_off(netdev); |
@@ -2315,19 +2312,15 @@ static void e1000_watchdog(unsigned long data) | |||
2315 | E1000_CTRL_RFCE) ? "RX" : ((ctrl & | 2312 | E1000_CTRL_RFCE) ? "RX" : ((ctrl & |
2316 | E1000_CTRL_TFCE) ? "TX" : "None" ))); | 2313 | E1000_CTRL_TFCE) ? "TX" : "None" ))); |
2317 | 2314 | ||
2318 | /* tweak tx_queue_len according to speed/duplex | 2315 | /* adjust timeout factor according to speed/duplex */ |
2319 | * and adjust the timeout factor */ | ||
2320 | netdev->tx_queue_len = adapter->tx_queue_len; | ||
2321 | adapter->tx_timeout_factor = 1; | 2316 | adapter->tx_timeout_factor = 1; |
2322 | switch (adapter->link_speed) { | 2317 | switch (adapter->link_speed) { |
2323 | case SPEED_10: | 2318 | case SPEED_10: |
2324 | txb2b = false; | 2319 | txb2b = false; |
2325 | netdev->tx_queue_len = 10; | ||
2326 | adapter->tx_timeout_factor = 16; | 2320 | adapter->tx_timeout_factor = 16; |
2327 | break; | 2321 | break; |
2328 | case SPEED_100: | 2322 | case SPEED_100: |
2329 | txb2b = false; | 2323 | txb2b = false; |
2330 | netdev->tx_queue_len = 100; | ||
2331 | /* maybe add some timeout factor ? */ | 2324 | /* maybe add some timeout factor ? */ |
2332 | break; | 2325 | break; |
2333 | } | 2326 | } |