Skip to contentSkip to conversation

tg3: Reenable TSS for 5719

PATCH In review Matt Carlson 1 participant 1 message Nov 24, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 7/10 tg3: Reenable TSS for 5719

All TSS bugs have been fixed in the 5719. This patch reenables the feature.

---
 drivers/net/tg3.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
drivers/net/tg3.c +7 -1
index 4fa8ee3..75ebebc 100644
@@ -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;
 }
Signature · 1 line
1.7.2.2