aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2010-10-14 06:37:39 -0400
committerDavid S. Miller <davem@davemloft.net>2010-10-17 16:57:42 -0400
commit3d37728bc55994fdf2888f6c872bdeea03a84cc2 (patch)
tree0d6b00463729269bb5505d809269a148c2579c2c /drivers/net/tg3.c
parentbba226acf4d13586ce47cf8376db33bed7bc0bd6 (diff)
tg3: Disable unused transmit rings
This patch allows the driver to disable the additional transmit rings available on the 5717 and 5719 devices. This is not strictly necessary, but is done anyways for correctness. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r--drivers/net/tg3.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 978ba5d8c253..1c680ff51013 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -7536,6 +7536,9 @@ static void tg3_rings_reset(struct tg3 *tp)
7536 /* Disable all transmit rings but the first. */ 7536 /* Disable all transmit rings but the first. */
7537 if (!(tp->tg3_flags2 & TG3_FLG2_5705_PLUS)) 7537 if (!(tp->tg3_flags2 & TG3_FLG2_5705_PLUS))
7538 limit = NIC_SRAM_SEND_RCB + TG3_BDINFO_SIZE * 16; 7538 limit = NIC_SRAM_SEND_RCB + TG3_BDINFO_SIZE * 16;
7539 else if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5717 ||
7540 GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5719)
7541 limit = NIC_SRAM_SEND_RCB + TG3_BDINFO_SIZE * 4;
7539 else if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57765) 7542 else if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57765)
7540 limit = NIC_SRAM_SEND_RCB + TG3_BDINFO_SIZE * 2; 7543 limit = NIC_SRAM_SEND_RCB + TG3_BDINFO_SIZE * 2;
7541 else 7544 else