• Haiyang Zhang's avatar
    net: mana: Add support for EQ sharing · 1e2d0824
    Haiyang Zhang authored
    The existing code uses (1 + #vPorts * #Queues) MSIXs, which may exceed
    the device limit.
    
    Support EQ sharing, so that multiple vPorts (NICs) can share the same
    set of MSIXs.
    
    And, report the EQ-sharing capability bit to the host, which means the
    host can potentially offer more vPorts and queues to the VM.
    
    Also update the resource limit checking and error handling for better
    robustness.
    
    Now, we support up to 256 virtual ports per VF (it was 16/VF), and
    support up to 64 queues per vPort (it was 16).
    Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    1e2d0824
mana_en.c 43.5 KB