Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189169
b: refs/heads/master
c: a08af74
h: refs/heads/master
i:
  189167: 0b53e6f
v: v3
  • Loading branch information
Emil Tantilov authored and David S. Miller committed Mar 27, 2010
1 parent 343f137 commit 12001f3
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: 6a2bad70d546cf30a46bc6d9ec0cb9a0891a38eb
refs/heads/master: a08af745e4c711d22aeadc2adade36958fe03ce8
1 change: 0 additions & 1 deletion trunk/drivers/net/igbvf/igbvf.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ struct igbvf_adapter {
struct igbvf_ring *tx_ring /* One per active queue */
____cacheline_aligned_in_smp;

unsigned long tx_queue_len;
unsigned int restart_queue;
u32 txd_cmd;

Expand Down
11 changes: 1 addition & 10 deletions trunk/drivers/net/igbvf/netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1304,8 +1304,6 @@ static void igbvf_configure_tx(struct igbvf_adapter *adapter)

/* enable Report Status bit */
adapter->txd_cmd |= E1000_ADVTXD_DCMD_RS;

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

/**
Expand Down Expand Up @@ -1524,7 +1522,6 @@ void igbvf_down(struct igbvf_adapter *adapter)

del_timer_sync(&adapter->watchdog_timer);

netdev->tx_queue_len = adapter->tx_queue_len;
netif_carrier_off(netdev);

/* record the stats before reset*/
Expand Down Expand Up @@ -1857,21 +1854,15 @@ static void igbvf_watchdog_task(struct work_struct *work)
&adapter->link_duplex);
igbvf_print_link_info(adapter);

/*
* 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;
/* maybe add some timeout factor ? */
break;
}
Expand Down

0 comments on commit 12001f3

Please sign in to comment.