[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAKgT0UcTn=fxhrTvAaJNbGFiKPyZ-MaK0T6+AJewFs6YzDvT0Q@mail.gmail.com>
Date: Thu, 19 Jul 2018 08:12:45 -0700
From: Alexander Duyck <alexander.duyck@...il.com>
To: Sunil Kovvuri <sunil.kovvuri@...il.com>
Cc: Alexander Duyck <alexander.h.duyck@...el.com>,
Bjorn Helgaas <bhelgaas@...gle.com>,
linux-pci <linux-pci@...r.kernel.org>,
virtio-dev@...ts.oasis-open.org, kvm@...r.kernel.org,
Linux Netdev List <netdev@...r.kernel.org>,
"Daly, Dan" <dan.daly@...el.com>,
LKML <linux-kernel@...r.kernel.org>,
linux-nvme@...ts.infradead.org,
Keith Busch <keith.busch@...el.com>, netanel@...zon.com,
Don Dutile <ddutile@...hat.com>,
Maximilian Heyne <mheyne@...zon.de>,
"Wang, Liang-min" <liang-min.wang@...el.com>,
"Rustad, Mark D" <mark.d.rustad@...el.com>,
David Woodhouse <dwmw2@...radead.org>,
Christoph Hellwig <hch@....de>, dwmw@...zon.co.uk
Subject: Re: [pci PATCH v8 4/4] pci-pf-stub: Add PF driver stub for PFs that
function only to enable VFs
On Thu, Jul 19, 2018 at 3:52 AM, Sunil Kovvuri <sunil.kovvuri@...il.com> wrote:
> Hi,
>
>> +static struct pci_driver pf_stub_driver = {
>> + .name = "pci-pf-stub",
>> + .id_table = pci_pf_stub_white_list,
>> + .probe = pci_pf_stub_probe,
>> + .sriov_configure = pci_sriov_configure_simple,
>> +};
>> +
>
> Is there any specific reason for not disabling SRIOV upon driver unload/remove ?
>
> i.e if a user sets numVFs to a non-zero value and unloads this driver
> then we have a
> situation where there is no PF driver in kernel but VFs still exist.
>
> Thanks,
> Sunil.
I think it was probably just an oversight on my part. Feel free to
submit a patch to disable SR-IOV on remove and I will give it a quick
review/ack assuming the code itself is fine.
Thanks.
- Alex
Powered by blists - more mailing lists