Skip to content
  • Ariel Elior's avatar
    bnx2x: set VF DMAE when first function has 0 supported VFs · 49baea88
    Ariel Elior authored
    
    
    There are possible HW configurations in which PFs will have SR-IOV capability
    but will have Max VFs set to 0 - this happens when there are Multi-Function
    devices where the VFs are allocated to only some of the PFs.
    
    DMAE is configured to support VFs only if the configuring PF has supported VFs.
    In case the first PF to be loaded will be one without supported VFs, it will
    not configure DMAE to the VF-supporting mode. When VFs of other PFs will be
    loaded later on, they will not be able to communicate with their PF.
    
    This changes the requirement for configuring DMAE for VF-supporting mode;
    If the device has SR-IOV capabilities there must be some PF that has
    max supported VFs > 0, thus it will configure the DMAE for supporting VFs.
    
    Signed-off-by: default avatarAriel Elior <ariele@broadcom.com>
    Signed-off-by: default avatarYuval Mintz <yuvalmin@broadcom.com>
    Signed-off-by: default avatarEilon Greenstein <eilong@broadcom.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    49baea88