diff options
author | Yevgeny Petrilin <yevgenyp@mellanox.co.il> | 2010-08-23 23:45:54 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-24 17:54:49 -0400 |
commit | a0b4e6e09c79df9efdb9872f30eb4cdb291c6c78 (patch) | |
tree | b4197c7708500b6d900521b6e82c1a89c3c004eb | |
parent | 7c2873809dd1a2d5e46be3f0ff2071fcdc3cf0fd (diff) |
mlx4_en: Fixed MAX_TX_RINGS definition
Defined as sum of default number of TX rings and number of
rings used for priority flow control mode.
Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/mlx4/mlx4_en.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx4/mlx4_en.h b/drivers/net/mlx4/mlx4_en.h index 9d0932348b96..554014bd8af5 100644 --- a/drivers/net/mlx4/mlx4_en.h +++ b/drivers/net/mlx4/mlx4_en.h | |||
@@ -61,7 +61,6 @@ | |||
61 | 61 | ||
62 | #define MLX4_EN_PAGE_SHIFT 12 | 62 | #define MLX4_EN_PAGE_SHIFT 12 |
63 | #define MLX4_EN_PAGE_SIZE (1 << MLX4_EN_PAGE_SHIFT) | 63 | #define MLX4_EN_PAGE_SIZE (1 << MLX4_EN_PAGE_SHIFT) |
64 | #define MAX_TX_RINGS 16 | ||
65 | #define MAX_RX_RINGS 16 | 64 | #define MAX_RX_RINGS 16 |
66 | #define TXBB_SIZE 64 | 65 | #define TXBB_SIZE 64 |
67 | #define HEADROOM (2048 / TXBB_SIZE + 1) | 66 | #define HEADROOM (2048 / TXBB_SIZE + 1) |
@@ -107,6 +106,7 @@ enum { | |||
107 | #define MLX4_EN_SMALL_PKT_SIZE 64 | 106 | #define MLX4_EN_SMALL_PKT_SIZE 64 |
108 | #define MLX4_EN_NUM_TX_RINGS 8 | 107 | #define MLX4_EN_NUM_TX_RINGS 8 |
109 | #define MLX4_EN_NUM_PPP_RINGS 8 | 108 | #define MLX4_EN_NUM_PPP_RINGS 8 |
109 | #define MAX_TX_RINGS (MLX4_EN_NUM_TX_RINGS + MLX4_EN_NUM_PPP_RINGS) | ||
110 | #define MLX4_EN_DEF_TX_RING_SIZE 512 | 110 | #define MLX4_EN_DEF_TX_RING_SIZE 512 |
111 | #define MLX4_EN_DEF_RX_RING_SIZE 1024 | 111 | #define MLX4_EN_DEF_RX_RING_SIZE 1024 |
112 | 112 | ||