mbox series

[net-next,0/7,pull,request] ice: Switch API optimizations

Message ID 20240711181312.2019606-1-anthony.l.nguyen@intel.com (mailing list archive)
Headers show
Series ice: Switch API optimizations | expand

Message

Tony Nguyen July 11, 2024, 6:13 p.m. UTC
Marcin Szycik says:

Optimize the process of creating a recipe in the switch block by removing
duplicate switch ID words and changing how result indexes are fitted into
recipes. In many cases this can decrease the number of recipes required to
add a certain set of rules, potentially allowing a more varied set of rules
to be created. Total rule count will also increase, since less words will
be left unused/wasted. There are only 64 rules available in total, so every
one counts.

After this modification, many fields and some structs became unused or were
simplified, resulting in overall simpler implementation.

The following are changes since commit 58f9416d413aa2c20b2515233ce450a1607ef843:
  Merge branch 'ice-support-to-dump-phy-config-fec'
and are available in the git repository at:
  git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue 100GbE

Marcin Szycik (4):
  ice: Remove unused struct ice_prot_lkup_ext members
  ice: Optimize switch recipe creation
  ice: Remove unused members from switch API
  ice: Add tracepoint for adding and removing switch rules

Michal Swiatkowski (3):
  ice: Remove reading all recipes before adding a new one
  ice: Simplify bitmap setting in adding recipe
  ice: remove unused recipe bookkeeping data

 drivers/net/ethernet/intel/ice/ice_common.c   |  11 +-
 .../ethernet/intel/ice/ice_protocol_type.h    |  43 +-
 drivers/net/ethernet/intel/ice/ice_switch.c   | 674 ++++++------------
 drivers/net/ethernet/intel/ice/ice_switch.h   |  20 +-
 drivers/net/ethernet/intel/ice/ice_trace.h    |  18 +
 drivers/net/ethernet/intel/ice/ice_type.h     |   2 +
 6 files changed, 272 insertions(+), 496 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org July 14, 2024, 2:50 p.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (main)
by Tony Nguyen <anthony.l.nguyen@intel.com>:

On Thu, 11 Jul 2024 11:13:03 -0700 you wrote:
> Marcin Szycik says:
> 
> Optimize the process of creating a recipe in the switch block by removing
> duplicate switch ID words and changing how result indexes are fitted into
> recipes. In many cases this can decrease the number of recipes required to
> add a certain set of rules, potentially allowing a more varied set of rules
> to be created. Total rule count will also increase, since less words will
> be left unused/wasted. There are only 64 rules available in total, so every
> one counts.
> 
> [...]

Here is the summary with links:
  - [net-next,1/7] ice: Remove unused struct ice_prot_lkup_ext members
    https://git.kernel.org/netdev/net-next/c/e247267bbeaf
  - [net-next,2/7] ice: Remove reading all recipes before adding a new one
    https://git.kernel.org/netdev/net-next/c/c563908494e9
  - [net-next,3/7] ice: Simplify bitmap setting in adding recipe
    https://git.kernel.org/netdev/net-next/c/3125eb559590
  - [net-next,4/7] ice: remove unused recipe bookkeeping data
    https://git.kernel.org/netdev/net-next/c/589dd7145a8e
  - [net-next,5/7] ice: Optimize switch recipe creation
    https://git.kernel.org/netdev/net-next/c/2ecdd4ba47fc
  - [net-next,6/7] ice: Remove unused members from switch API
    https://git.kernel.org/netdev/net-next/c/1d2ac128531e
  - [net-next,7/7] ice: Add tracepoint for adding and removing switch rules
    https://git.kernel.org/netdev/net-next/c/e10989e56f52

You are awesome, thank you!