Re: [PATCH V11 02/17] PCI/IOV: add VF enable/disable hook
From: Benjamin Herrenschmidt <hidden>
Date: 2015-02-10 02:14:14
Also in:
linux-pci
From: Benjamin Herrenschmidt <hidden>
Date: 2015-02-10 02:14:14
Also in:
linux-pci
On Tue, 2015-02-10 at 09:35 +0800, Wei Yang wrote:
quoted
Don't we want pcibios_sriov_enable() to be able to crop the number of VFs or do we think any resource limits have been applied already ?The second parameter "initial" is the number of VFs will be enabled. Arch dependent function will check the resources for these number of VFs. Do I catch your question correctly?
I was wondering if the number of resource that can be enabled is smaller, should the arch function be able to return that smaller number and we would still enable that number ? Ie, have the arch function be able to "update" the value of "initial" (by passing it by pointer for example). Cheers, Ben.