git: b3834306579f - stable/14 - pci_iov: Add a device_printf if out of bus numbers
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 02 Oct 2024 19:53:23 UTC
The branch stable/14 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=b3834306579f3a59338f3faed3f588b30a56317e commit b3834306579f3a59338f3faed3f588b30a56317e Author: Val Packett <val@packett.cool> AuthorDate: 2024-09-25 22:17:16 +0000 Commit: Kevin Bowling <kbowling@FreeBSD.org> CommitDate: 2024-10-02 19:52:53 +0000 pci_iov: Add a device_printf if out of bus numbers Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D20591 (cherry picked from commit 6a4f0c063718781c5e3eddbeff0da7b89d290d1e) --- sys/dev/pci/pci_iov.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/pci/pci_iov.c b/sys/dev/pci/pci_iov.c index ff3ac0e64271..60325e8cd491 100644 --- a/sys/dev/pci/pci_iov.c +++ b/sys/dev/pci/pci_iov.c @@ -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; }