• Johannes Berg's avatar
    iwlwifi: mvm: kill INACTIVE queue state · 724fe771
    Johannes Berg authored
    We don't really need this state: instead of having an inactive
    state where we can awaken zombie queues again if needed, just
    keep them in their normal state unless a new queue is actually
    needed and there's no other way of getting one.
    
    We do this here by making the inactivity check not free queues
    unless instructed that we now really need to allocate one to a
    specific station, and in that case it'll just free the queue
    immediately, without doing any inactivity step inbetween.
    
    The only downside is a little bit more processing in this case,
    but the code complexity is lower.
    
    Additionally, this fixes a corner case: due to the way the code
    worked, we could only ever reuse an inactive queue if it was
    the reserved queue for a station, as iwl_mvm_find_free_queue()
    would never consider returning an inactive queue.
    Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
    724fe771
tx.c 59.4 KB