summaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2010-11-24 09:31:51 +0100
committerDavid S. Miller <davem@davemloft.net>2010-11-24 20:06:19 +0100
commitb92b9040f6e4997b895b7b9c655a158354d28964 (patch)
treed6faad8e54aad7d8d278439710f6ace525f6dc69 /drivers/net/tg3.c
parenttg3: Enable mult rd DMA engine on 5719 (diff)
downloadlinux-b92b9040f6e4997b895b7b9c655a158354d28964.tar.xz
linux-b92b9040f6e4997b895b7b9c655a158354d28964.zip
tg3: Reenable TSS for 5719
All TSS bugs have been fixed in the 5719. This patch reenables the feature. 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 '')
-rw-r--r--drivers/net/tg3.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 4fa8ee30b70f..75ebebc9115a 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -9037,8 +9037,14 @@ static bool tg3_enable_msix(struct tg3 *tp)
pci_disable_msix(tp->pdev);
return false;
}
- if (tp->irq_cnt > 1)
+
+ if (tp->irq_cnt > 1) {
tp->tg3_flags3 |= TG3_FLG3_ENABLE_RSS;
+ if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5719) {
+ tp->tg3_flags3 |= TG3_FLG3_ENABLE_TSS;
+ netif_set_real_num_tx_queues(tp->dev, tp->irq_cnt - 1);
+ }
+ }
return true;
}