Skip to content

Commit

Permalink
pci_iov: Add a device_printf if out of bus numbers
Browse files Browse the repository at this point in the history
Reviewed by:	imp
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D20591
  • Loading branch information
valpackett authored and kev009 committed Sep 25, 2024
1 parent 36a0019 commit 6a4f0c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/dev/pci/pci_iov.c
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,7 @@ pci_iov_config(struct cdev *cdev, struct pci_iov_arg *arg)

/* We don't yet support allocating extra bus numbers for VFs. */
if (pci_get_bus(dev) != PCI_RID2BUS(last_rid)) {
device_printf(dev, "not enough PCIe bus numbers for VFs\n");
error = ENOSPC;
goto out;
}
Expand Down

0 comments on commit 6a4f0c0

Please sign in to comment.