Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189170
b: refs/heads/master
c: f49c57e
h: refs/heads/master
v: v3
  • Loading branch information
Emil Tantilov authored and David S. Miller committed Mar 27, 2010
1 parent 12001f3 commit a3b610e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a08af745e4c711d22aeadc2adade36958fe03ce8
refs/heads/master: f49c57e141c7f53353e4265a31dc2324e6215037
1 change: 0 additions & 1 deletion trunk/drivers/net/e1000e/e1000.h
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ struct e1000_adapter {

struct napi_struct napi;

unsigned long tx_queue_len;
unsigned int restart_queue;
u32 txd_cmd;

Expand Down
11 changes: 1 addition & 10 deletions trunk/drivers/net/e1000e/netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -2289,8 +2289,6 @@ static void e1000_configure_tx(struct e1000_adapter *adapter)
ew32(TCTL, tctl);

e1000e_config_collision_dist(hw);

adapter->tx_queue_len = adapter->netdev->tx_queue_len;
}

/**
Expand Down Expand Up @@ -2877,7 +2875,6 @@ void e1000e_down(struct e1000_adapter *adapter)
del_timer_sync(&adapter->watchdog_timer);
del_timer_sync(&adapter->phy_info_timer);

netdev->tx_queue_len = adapter->tx_queue_len;
netif_carrier_off(netdev);
adapter->link_speed = 0;
adapter->link_duplex = 0;
Expand Down Expand Up @@ -3588,21 +3585,15 @@ static void e1000_watchdog_task(struct work_struct *work)
"link gets many collisions.\n");
}

/*
* tweak tx_queue_len according to speed/duplex
* and adjust the timeout factor
*/
netdev->tx_queue_len = adapter->tx_queue_len;
/* adjust timeout factor according to speed/duplex */
adapter->tx_timeout_factor = 1;
switch (adapter->link_speed) {
case SPEED_10:
txb2b = 0;
netdev->tx_queue_len = 10;
adapter->tx_timeout_factor = 16;
break;
case SPEED_100:
txb2b = 0;
netdev->tx_queue_len = 100;
adapter->tx_timeout_factor = 10;
break;
}
Expand Down

0 comments on commit a3b610e

Please sign in to comment.