• Alex Elder's avatar
    net: ipa: track allocated transactions with an ID · 41e2a2c0
    Alex Elder authored
    Transactions for a channel are now managed in an array, with a free
    transaction ID indicating which is the next one free.
    
    Add another transaction ID field to track the first element in the
    array that has been allocated.  Advance it when a transaction is
    committed (because that is when that transaction leaves allocated
    state).
    
    Temporarily add warnings that verify that the first allocated
    transaction tracked by the ID matches the first element on the
    allocated list, both when allocating and committing a transaction.
    Signed-off-by: default avatarAlex Elder <elder@linaro.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    41e2a2c0
gsi_trans.c 24.6 KB