diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2008-09-14 08:09:59 -0400 |
---|---|---|
committer | Lennert Buytenhek <buytenh@marvell.com> | 2008-09-14 08:18:10 -0400 |
commit | 2b4a624d706d404a3edccb6d1bb2c440a6dbbc31 (patch) | |
tree | 14b948487f861eac19ee7e91563abe6ab7d40849 | |
parent | 99ab08e091df65ce8e191d85ebdc23f78b8355cb (diff) |
mv643xx_eth: shrink default receive and transmit queue sizes
Since the size of the receive queue is directly related to the data
cache footprint of the driver (between refilling a receive ring entry
with a fresh skb and receiving a packet in that entry, queue_size - 1
other skbs will have been touched), shrink the default receive queue
size to a saner number of entries, as 400 is definite overkill for
almost all workloads.
While we are at it, trim the default transmit queue size a bit as well.
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
-rw-r--r-- | drivers/net/mv643xx_eth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c index 099e0be0d8c3..4fbd62e45ae9 100644 --- a/drivers/net/mv643xx_eth.c +++ b/drivers/net/mv643xx_eth.c | |||
@@ -165,8 +165,8 @@ static char mv643xx_eth_driver_version[] = "1.3"; | |||
165 | #define FORCE_LINK_PASS (1 << 1) | 165 | #define FORCE_LINK_PASS (1 << 1) |
166 | #define SERIAL_PORT_ENABLE (1 << 0) | 166 | #define SERIAL_PORT_ENABLE (1 << 0) |
167 | 167 | ||
168 | #define DEFAULT_RX_QUEUE_SIZE 400 | 168 | #define DEFAULT_RX_QUEUE_SIZE 128 |
169 | #define DEFAULT_TX_QUEUE_SIZE 800 | 169 | #define DEFAULT_TX_QUEUE_SIZE 256 |
170 | 170 | ||
171 | 171 | ||
172 | /* | 172 | /* |