]> Pileus Git - ~andy/linux/blobdiff - drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c
qlcnic: Support for 16 virtual NIC functions.
[~andy/linux] / drivers / net / ethernet / qlogic / qlcnic / qlcnic_83xx_vnic.c
index 734d28602ac3f335214ba9cc5f1c9d4408d6d554..474320a5f0c15aeac1956b6d528cbc5c5a2f0566 100644 (file)
@@ -107,7 +107,7 @@ static int qlcnic_83xx_init_mgmt_vnic(struct qlcnic_adapter *adapter)
 
                npar = adapter->npars;
 
-               for (i = 0; i < ahw->act_pci_func; i++, npar++) {
+               for (i = 0; i < ahw->total_nic_func; i++, npar++) {
                        dev_info(dev, "id:%d active:%d type:%d port:%d min_bw:%d max_bw:%d mac_addr:%pM\n",
                                 npar->pci_func, npar->active, npar->type,
                                 npar->phy_port, npar->min_bw, npar->max_bw,
@@ -115,7 +115,7 @@ static int qlcnic_83xx_init_mgmt_vnic(struct qlcnic_adapter *adapter)
                }
 
                dev_info(dev, "Max functions = %d, active functions = %d\n",
-                        ahw->max_pci_func, ahw->act_pci_func);
+                        ahw->max_pci_func, ahw->total_nic_func);
 
                if (qlcnic_83xx_set_vnic_opmode(adapter))
                        return err;