> > max_vfs will only be created by igb_uio driver, for other > > drivers like vfio or pci_uio_generic, max_vfs will miss. > > > > But sriov_numvfs is not driver related, just get the vf numbers > > from that field. > > > > Signed-off-by: Michael Qiu <michael.qiu at intel.com> > > I can see a different solution : maybe faking a sriov_numvfs parameter from > igb_uio for kernels that don't have it and doing nothing for kernels that > already provide sriov_numvfs. > But your solution is more straightforward (and we don't need to update > documentation and/or existing scripts afaik). > > Acked-by: David Marchand <david.marchand at 6wind.com>
Applied, thanks