• M
    bnxt_en: Implement new method for the PF to assign SRIOV resources. · 4673d664
    Michael Chan 提交于
    Instead of the old method of evenly dividing the resources to the VFs,
    use the new firmware API to specify min and max resources for each VF.
    This way, there is more flexibility for each VF to allocate more or less
    resources.
    
    The min is the absolute minimum for each VF to function.  The max is the
    global resources minus the resources used by the PF.  Each VF is
    guaranteed the min.  Up to max resources may be available for some VFs.
    
    The PF driver can use one of 2 strategies specified in NVRAM to assign
    the resources.  The old legacy strategy of evenly dividing the resources
    or the new flexible strategy.
    Signed-off-by: NMichael Chan <michael.chan@broadcom.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    4673d664
bnxt.c 224.6 KB