> -----Original Message----- > From: Bjorn Helgaas <[email protected]> > Sent: Wednesday, May 13, 2026 3:05 PM > To: Leon Romanovsky <[email protected]> > Cc: Haiyang Zhang <[email protected]>; Haiyang Zhang > <[email protected]>; Paul Rosswurm <[email protected]>; > [email protected]; [email protected]; KY Srinivasan > <[email protected]>; Wei Liu <[email protected]>; Dexuan Cui > <[email protected]>; Long Li <[email protected]>; Andrew Lunn > <[email protected]>; David S. Miller <[email protected]>; Eric > Dumazet <[email protected]>; Jakub Kicinski <[email protected]>; Paolo > Abeni <[email protected]>; Bjorn Helgaas <[email protected]>; Simon > Horman <[email protected]>; Shradha Gupta > <[email protected]>; Dipayaan Roy > <[email protected]>; Erni Sri Satya Vennela > <[email protected]>; [email protected]; linux- > [email protected] > Subject: Re: [EXTERNAL] Re: [PATCH net-next] net: mana: Add handler for > sriov configure > > On Wed, May 13, 2026 at 09:47:49PM +0300, Leon Romanovsky wrote: > > On Fri, May 08, 2026 at 06:10:29PM -0500, Bjorn Helgaas wrote: > > > On Fri, May 08, 2026 at 10:47:14PM +0000, Haiyang Zhang wrote: > > > > > On Fri, May 08, 2026 at 03:04:06PM -0700, Haiyang Zhang wrote: > > > > > > From: Haiyang Zhang <[email protected]> > > > > > > > > > > > > Add callback function for the pci_driver, sriov_configure. > > > > > > > > > > > > Also disable VF autoprobe when it runs as PF driver on bare > metal, > > > > > > since the hardware side may not have the VF ready immediately. > > > > > > > > > > > > Export pci_vf_drivers_autoprobe() so the driver can toggle the > VF > > > > > > autoprobe flag. > > > > > > > > > > Technically pci_vf_drivers_autoprobe() doesn't *toggle* the > autoprobe > > > > > flag. That would mean setting it to the opposite of its current > > > > > value. > > > > > > > > > > Here I would say "so the driver can prevent autoprobing of the > VFs", > > > > > which is the intent. > > > > Thanks, I will change the wording. > > > > > > > > > > > > > > Out of curiosity, how do the VFs eventually get probed? I guess > > > > > there's some other mechanism that tells you when they're ready, > and > > > > > you manually use sysfs 'sriov_drivers_autoprobe' to enable > probing, > > > > > then bind drivers to them via sysfs? > > > > We have a user program talking to the Azure backplane to get that > information. > > > > @Paul Rosswurm, do you have more details? > > > > > > > > > > > > > The prevention of autoprobing sounds like a critical part of this > > > > > change; might be worth saying something in the subject, because > "add > > > > > sriov configure" doesn't include much information. > > > > How about "Add handler for sriov configure with VF autoprobe off"? > > > > > > OK by me :) > > > > I believe it is the wrong decision to allow toggling a user‑visible knob > > without the user’s awareness. In this case, they can either disable > > autoprobe on the PF or rely on EPROBE_DEFER. In all cases, the same > > functionality can be achieved without changing PCI autoprobe code. > > OK, Haiyang, can you drop my ack please? If Leon's solutions don't > work for you, continue this conversation and we can explore > alternatives.
Sure, I will submit an updated patch without changing VF autoprobe. Thanks, - Haiyang

