1. 05 Sep, 2022 4 commits
  2. 04 Sep, 2022 1 commit
  3. 03 Sep, 2022 29 commits
  4. 02 Sep, 2022 6 commits
    • Jakub Kicinski's avatar
      net: remove netif_tx_napi_add() · c3f760ef
      Jakub Kicinski authored
      All callers are now gone.
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c3f760ef
    • Eric Dumazet's avatar
      net: bql: add more documentation · 977f1aa5
      Eric Dumazet authored
      Add some documentation for netdev_tx_sent_queue() and
      netdev_tx_completed_queue()
      
      Stating that netdev_tx_completed_queue() must be called once
      per TX completion round is apparently not obvious for everybody.
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      977f1aa5
    • David S. Miller's avatar
      Merge branch 'net-ipa-transaction-state-IDs' · 25de4a0b
      David S. Miller authored
      Alex Elder says:
      
      ====================
      net: ipa: use IDs to track transaction state
      
      This series is the first of three groups of changes that simplify
      the way the IPA driver tracks the state of its transactions.
      
      Each GSI channel has a fixed number of transactions allocated at
      initialization time.  The number allocated matches the number of
      TREs in the transfer ring associated with the channel.  This is
      because the transfer ring limits the number of transfers that can
      ever be underway, and in the worst case, each transaction represents
      a single TRE.
      
      Transactions go through various states during their lifetime.
      Currently a set of lists keeps track of which transactions are in
      each state.  Initially, all transactions are free.  An allocated
      transaction is placed on the allocated list.  Once an allocated
      transaction is committed, it is moved from the allocated to the
      committed list.  When a committed transaction is sent to hardware
      (via a doorbell) it is moved to the pending list.  When hardware
      signals that some work has completed, transactions are moved to the
      completed list.  Finally, when a completed transaction is polled
      it's moved to the polled list before being removed when it becomes
      free.
      
      Changing a transaction's state thus normally involves manipulating
      two lists, and to prevent corruption a spinlock is held while the
      lists are updated.
      
      Transactions move through their states in a well-defined sequence
      though, and they do so strictly in order.  So transaction 0 is
      always allocated before transaction 1; transaction 0 is always
      committed before transaction 1; and so on, through completion,
      polling, and becoming free.  Because of this, it's sufficient to
      just keep track of which transaction is the first in each state.
      The rest of the transactions in a given state can be derived from
      the first transaction in an "adjacent" state.  As a result, we can
      track the state of all transactions with a set of indexes, and can
      update these without the need for a spinlock.
      
      This first group of patches just defines the set of indexes that
      will be used for this new way of tracking transaction state.  Two
      more groups of patches will follow.  I've broken the 17 patches into
      these three groups to facilitate review.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      25de4a0b
    • Alex Elder's avatar
      net: ipa: track polled transactions with an ID · fd3bd039
      Alex Elder authored
      Add a transaction ID to track the first element in the transaction
      array that has been polled.  Advance the ID when we are releasing a
      transaction.
      
      Temporarily add warnings that verify that the first polled
      transaction tracked by the ID matches the first element on the
      polled list, both when polling and freeing.
      
      Remove the temporary warnings added by the previous commit.
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      fd3bd039
    • Alex Elder's avatar
      net: ipa: track completed transactions with an ID · 949cd0b5
      Alex Elder authored
      Add a transaction ID field to track the first element in the
      transaction array that has completed but has not yet been polled.
      
      Advance the ID when we are processing a transaction in the NAPI
      polling loop (where completed transactions become polled).
      
      Temporarily add warnings that verify that the first completed
      transaction tracked by the ID matches the first element on the
      completed list, both when pending and completing.
      
      Remove the temporary warnings added by the previous commit.
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      949cd0b5
    • Alex Elder's avatar
      net: ipa: track pending transactions with an ID · eeff7c14
      Alex Elder authored
      Add a transaction ID field to track the first element in the
      transaction array that is pending (sent to hardware) but not yet
      complete.  Advance the ID when a completion event for a channel
      indicates that transactions have completed.
      
      Temporarily add warnings that verify that the first pending
      transaction tracked by the ID matches the first element on the
      pending list, both when pending and completing, as well as when
      resetting the channel.
      
      Remove the temporary warnings added by the previous commit.
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      eeff7c14