• Jakub Kicinski's avatar
    Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue · fd2162a5
    Jakub Kicinski authored
    Tony Nguyen says:
    
    ====================
    ice: use less resources in switchdev
    
    Michal Swiatkowski says:
    
    Switchdev is using one queue per created port representor. This can
    quickly lead to Rx queue shortage, as with subfunction support user
    can create high number of PRs.
    
    Save one MSI-X and 'number of PRs' * 1 queues.
    Refactor switchdev slow-path to use less resources (even no additional
    resources). Do this by removing control plane VSI and move its
    functionality to PF VSI. Even with current solution PF is acting like
    uplink and can't be used simultaneously for other use cases (adding
    filters can break slow-path).
    
    In short, do Tx via PF VSI and Rx packets using PF resources. Rx needs
    additional code in interrupt handler to choose correct PR netdev.
    Previous solution had to queue filters, it was way more elegant but
    needed one queue per PRs. Beside that this refactor mostly simplifies
    switchdev configuration.
    
    * '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue:
      ice: count representor stats
      ice: do switchdev slow-path Rx using PF VSI
      ice: change repr::id values
      ice: remove switchdev control plane VSI
      ice: control default Tx rule in lag
      ice: default Tx rule instead of to queue
      ice: do Tx through PF netdev in slow-path
      ice: remove eswitch changing queues algorithm
    ====================
    
    Link: https://lore.kernel.org/r/20240325202623.1012287-1-anthony.l.nguyen@intel.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    fd2162a5
ice_switch.c 185 KB