Re: [PATCH v2 1/7] PCI: Set SR-IOV NumVFs to zero after enumeration

2015-11-01 Thread Wei Yang
On Fri, Oct 30, 2015 at 08:40:52AM -0700, Alexander Duyck wrote: >On 10/29/2015 08:48 PM, Wei Yang wrote: >>On Thu, Oct 29, 2015 at 05:22:54PM -0500, Bjorn Helgaas wrote: >>>ines: 115 >>> >>>From: Alexander Duyck >>> >>>The enumeration path should leave NumVFs set to zero. But after >>>4449f07972

Re: [PATCH v2 1/7] PCI: Set SR-IOV NumVFs to zero after enumeration

2015-10-30 Thread Alexander Duyck
On 10/29/2015 08:48 PM, Wei Yang wrote: On Thu, Oct 29, 2015 at 05:22:54PM -0500, Bjorn Helgaas wrote: ines: 115 From: Alexander Duyck The enumeration path should leave NumVFs set to zero. But after 4449f079722c ("PCI: Calculate maximum number of buses required for VFs"), we call virtfn_max_

Re: [PATCH v2 1/7] PCI: Set SR-IOV NumVFs to zero after enumeration

2015-10-29 Thread Wei Yang
On Fri, Oct 30, 2015 at 11:48:21AM +0800, Wei Yang wrote: >On Thu, Oct 29, 2015 at 05:22:54PM -0500, Bjorn Helgaas wrote: >>ines: 115 >> >>From: Alexander Duyck >> >>The enumeration path should leave NumVFs set to zero. But after >>4449f079722c ("PCI: Calculate maximum number of buses required fo

Re: [PATCH v2 1/7] PCI: Set SR-IOV NumVFs to zero after enumeration

2015-10-29 Thread Wei Yang
On Thu, Oct 29, 2015 at 05:22:54PM -0500, Bjorn Helgaas wrote: >ines: 115 > >From: Alexander Duyck > >The enumeration path should leave NumVFs set to zero. But after >4449f079722c ("PCI: Calculate maximum number of buses required for VFs"), >we call virtfn_max_buses() in the enumeration path, whi

[PATCH v2 1/7] PCI: Set SR-IOV NumVFs to zero after enumeration

2015-10-29 Thread Bjorn Helgaas
From: Alexander Duyck The enumeration path should leave NumVFs set to zero. But after 4449f079722c ("PCI: Calculate maximum number of buses required for VFs"), we call virtfn_max_buses() in the enumeration path, which changes NumVFs. This NumVFs change is visible via lspci and sysfs until a driv