diff options
author | Santiago Leon <santil@linux.vnet.ibm.com> | 2010-09-03 14:28:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-06 21:20:32 -0400 |
commit | c033a6d1390bb6cc0c11c3b4137b856dfd8cb7c8 (patch) | |
tree | ff296183b963b75d0da43e3c809b58083316e3af /drivers/net/ibmveth.h | |
parent | a613f581489aff23189c4945aec9567f6663b0c6 (diff) |
ibmveth: batch rx buffer replacement
At the moment we try and replenish the receive ring on every rx interrupt.
We even have a pool->threshold but aren't using it.
To limit the maximum latency incurred when refilling, change the threshold
from 1/2 to 7/8 and reduce the largest rx pool from 768 buffers to 512 which
should be more than enough.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Santiago Leon <santil@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ibmveth.h')
-rw-r--r-- | drivers/net/ibmveth.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ibmveth.h b/drivers/net/ibmveth.h index ec76ace66c6b..f3ede8184b6d 100644 --- a/drivers/net/ibmveth.h +++ b/drivers/net/ibmveth.h | |||
@@ -102,7 +102,7 @@ static inline long h_illan_attributes(unsigned long unit_address, | |||
102 | #define IBMVETH_MAX_BUF_SIZE (1024 * 128) | 102 | #define IBMVETH_MAX_BUF_SIZE (1024 * 128) |
103 | 103 | ||
104 | static int pool_size[] = { 512, 1024 * 2, 1024 * 16, 1024 * 32, 1024 * 64 }; | 104 | static int pool_size[] = { 512, 1024 * 2, 1024 * 16, 1024 * 32, 1024 * 64 }; |
105 | static int pool_count[] = { 256, 768, 256, 256, 256 }; | 105 | static int pool_count[] = { 256, 512, 256, 256, 256 }; |
106 | static int pool_active[] = { 1, 1, 0, 0, 0}; | 106 | static int pool_active[] = { 1, 1, 0, 0, 0}; |
107 | 107 | ||
108 | #define IBM_VETH_INVALID_MAP ((u16)0xffff) | 108 | #define IBM_VETH_INVALID_MAP ((u16)0xffff) |