aboutsummaryrefslogtreecommitdiff
path: root/hw/net/igb.c
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@daynix.com>2023-07-11 00:38:35 +0900
committerMichael S. Tsirkin <mst@redhat.com>2023-07-10 18:59:32 -0400
commit445416e3010a2525c577d692921979a64d88a998 (patch)
treea52987a133048c5bcd477259b56de3f3907e2374 /hw/net/igb.c
parent661dee7bd08dd93d15b898d43821bb46b2aa422c (diff)
downloadqemu-445416e3010a2525c577d692921979a64d88a998.zip
qemu-445416e3010a2525c577d692921979a64d88a998.tar.gz
qemu-445416e3010a2525c577d692921979a64d88a998.tar.bz2
pcie: Use common ARI next function number
Currently the only implementers of ARI is SR-IOV devices, and they behave similar. Share the ARI next function number. Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Reviewed-by: Ani Sinha <anisinha@redhat.com> Message-Id: <20230710153838.33917-2-akihiko.odaki@daynix.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/net/igb.c')
-rw-r--r--hw/net/igb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/igb.c b/hw/net/igb.c
index 1c989d7..8ff832a 100644
--- a/hw/net/igb.c
+++ b/hw/net/igb.c
@@ -431,7 +431,7 @@ static void igb_pci_realize(PCIDevice *pci_dev, Error **errp)
hw_error("Failed to initialize AER capability");
}
- pcie_ari_init(pci_dev, 0x150, 1);
+ pcie_ari_init(pci_dev, 0x150);
pcie_sriov_pf_init(pci_dev, IGB_CAP_SRIOV_OFFSET, TYPE_IGBVF,
IGB_82576_VF_DEV_ID, IGB_MAX_VF_FUNCTIONS, IGB_MAX_VF_FUNCTIONS,