• Jakub Kicinski's avatar
    nfp: allow application firmware to limit number of SR-IOV VFs · 0bc3827f
    Jakub Kicinski authored
    Some application firmware projects may choose to limit the number
    of VFs available below what is specified in PCI capability to be
    able to reuse the PCIe interface resources.  There may also be
    projects which use cases don't require SR-IOV support at all and
    therefore don't want to spend time implementing/testing it.
    
    Check nfd_vf_cfg_max_vfs firmware symbol to see if application
    firmware is reporting how many VFs it supports.  This mechanism
    is an opt-in, if symbol is not present we will only look at the
    PCI capability values.
    Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    0bc3827f
nfp_main.c 10.9 KB