aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2010-10-18 10:30:54 -0400
committerDavid S. Miller <davem@davemloft.net>2010-10-21 06:09:47 -0400
commitfdb246f526e422b18b48d578085c01ab28ec2c33 (patch)
tree03eccfaf3de2dfb2c40563d1df52c9a5efb769f9 /drivers/net
parent3511c9132f8b1e1b5634e41a3331c44b0c13be70 (diff)
bnx2: Increase max rx ring size from 1K to 2K
A number of customers are reporting packet loss under certain workloads (e.g. heavy bursts of small packets) with flow control disabled. A larger rx ring helps to prevent these losses. No change in default rx ring size and memory consumption. Signed-off-by: Andy Gospodarek <andy@greyhouse.net> Acked-by: John Feeney <jfeeney@redhat.com> Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/bnx2.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h
index 4f44db68c802..bf4c3421067d 100644
--- a/drivers/net/bnx2.h
+++ b/drivers/net/bnx2.h
@@ -6502,8 +6502,8 @@ struct l2_fhdr {
6502#define TX_DESC_CNT (BCM_PAGE_SIZE / sizeof(struct tx_bd)) 6502#define TX_DESC_CNT (BCM_PAGE_SIZE / sizeof(struct tx_bd))
6503#define MAX_TX_DESC_CNT (TX_DESC_CNT - 1) 6503#define MAX_TX_DESC_CNT (TX_DESC_CNT - 1)
6504 6504
6505#define MAX_RX_RINGS 4 6505#define MAX_RX_RINGS 8
6506#define MAX_RX_PG_RINGS 16 6506#define MAX_RX_PG_RINGS 32
6507#define RX_DESC_CNT (BCM_PAGE_SIZE / sizeof(struct rx_bd)) 6507#define RX_DESC_CNT (BCM_PAGE_SIZE / sizeof(struct rx_bd))
6508#define MAX_RX_DESC_CNT (RX_DESC_CNT - 1) 6508#define MAX_RX_DESC_CNT (RX_DESC_CNT - 1)
6509#define MAX_TOTAL_RX_DESC_CNT (MAX_RX_DESC_CNT * MAX_RX_RINGS) 6509#define MAX_TOTAL_RX_DESC_CNT (MAX_RX_DESC_CNT * MAX_RX_RINGS)