• Grzegorz Nitka's avatar
    ice: introduce new type of VSI for switchdev · f66756e0
    Grzegorz Nitka authored
    New type of VSI has to be defined for switchdev control plane
    VSI. Number of allocated Tx and Rx queue has to be equal to
    amount of VFs, because each port representor should have one
    Tx and Rx queue.
    
    Also to not increase number of used irqs too much, control plane
    VSI uses only one q_vector and handle all queues in one irq.
    To allow handling all queues in one irq , new function to clean
    msix for eswitch was introduced. This function will schedule napi
    for each representor instead of scheduling it only for one like in
    normal clean irq function.
    
    Only one additional msix has to be requested. Always try to request
    it in ice_ena_msix_range function.
    Signed-off-by: default avatarGrzegorz Nitka <grzegorz.nitka@intel.com>
    Tested-by: default avatarSandeep Penigalapati <sandeep.penigalapati@intel.com>
    Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
    f66756e0
ice_main.c 195 KB