search for: is_physfn

Displaying 1 result from an estimated 1 matches for "is_physfn".

Did you mean: is_phys
2009 Apr 03
0
[PATCH] PCI: sync up the SR-IOV changes between Dom0 and upstream kernels
...ffcc5067 -r 0e265f73b23a drivers/pci/iov.c --- a/drivers/pci/iov.c Wed Apr 01 11:43:01 2009 +0100 +++ b/drivers/pci/iov.c Fri Apr 03 03:48:47 2009 -0400 @@ -309,16 +309,16 @@ if (!total) return 0; + ctrl = 0; list_for_each_entry(pdev, &dev->bus->devices, bus_list) if (pdev->is_physfn) - break; - if (list_empty(&dev->bus->devices) || !pdev->is_physfn) - pdev = NULL; + goto found; - ctrl = 0; - if (!pdev && pci_ari_enabled(dev->bus)) + pdev = NULL; + if (pci_ari_enabled(dev->bus)) ctrl |= PCI_SRIOV_CTRL_ARI; +found: pci_write_config_word(d...