|
@@ -11362,12 +11362,10 @@ static bool tg3_enable_msix(struct tg3 *tp)
|
|
|
msix_ent[i].vector = 0;
|
|
|
}
|
|
|
|
|
|
- rc = pci_enable_msix(tp->pdev, msix_ent, tp->irq_cnt);
|
|
|
+ rc = pci_enable_msix_range(tp->pdev, msix_ent, 1, tp->irq_cnt);
|
|
|
if (rc < 0) {
|
|
|
return false;
|
|
|
- } else if (rc != 0) {
|
|
|
- if (pci_enable_msix(tp->pdev, msix_ent, rc))
|
|
|
- return false;
|
|
|
+ } else if (rc < tp->irq_cnt) {
|
|
|
netdev_notice(tp->dev, "Requested %d MSI-X vectors, received %d\n",
|
|
|
tp->irq_cnt, rc);
|
|
|
tp->irq_cnt = rc;
|