aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2009-09-11 19:50:16 -0400
committerDavid S. Miller <davem@davemloft.net>2009-09-11 19:50:16 -0400
commit5ea1c50662d447de344812054175d7151783ea25 (patch)
tree0e8808b8d747dd237316ce050fe3fceb7bb32cd3 /drivers/net/tg3.c
parent9feae56c0de65fdd8b1f64f376bb6578417d2b79 (diff)
tg3: Fix return ring size breakage
Commit f6eb9b1fc1411d22c073f5264e5630a541d0f7df, "tg3: Add 5717 asic rev" changed how the rx return ring size operations are done. It effectively inverts the sense of the previous test, but it failed to also invert the resulting sizes. This patch corrects that error. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r--drivers/net/tg3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 7cf80006eafa..f09bc5dfe8b2 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -112,7 +112,7 @@
112 */ 112 */
113#define TG3_RX_RCB_RING_SIZE(tp) \ 113#define TG3_RX_RCB_RING_SIZE(tp) \
114 (((tp->tg3_flags & TG3_FLAG_JUMBO_CAPABLE) && \ 114 (((tp->tg3_flags & TG3_FLAG_JUMBO_CAPABLE) && \
115 !(tp->tg3_flags2 & TG3_FLG2_5780_CLASS)) ? 512 : 1024) 115 !(tp->tg3_flags2 & TG3_FLG2_5780_CLASS)) ? 1024 : 512)
116 116
117#define TG3_TX_RING_SIZE 512 117#define TG3_TX_RING_SIZE 512
118#define TG3_DEF_TX_RING_PENDING (TG3_TX_RING_SIZE - 1) 118#define TG3_DEF_TX_RING_PENDING (TG3_TX_RING_SIZE - 1)