mbox series

[v2,net-next,0/8] DSA changes for multiple CPU ports (part 1)

Message ID 20220511095020.562461-1-vladimir.oltean@nxp.com (mailing list archive)
Headers show
Series DSA changes for multiple CPU ports (part 1) | expand

Message

Vladimir Oltean May 11, 2022, 9:50 a.m. UTC
I am trying to enable the second internal port pair from the NXP LS1028A
Felix switch for DSA-tagged traffic via "ocelot-8021q". This series
represents part 1 (of an unknown number) of that effort.

It does some preparation work, like managing host flooding in DSA via a
dedicated method, and removing the CPU port as argument from the tagging
protocol change procedure.

In terms of driver-specific changes, it reworks the 2 tag protocol
implementations in the Felix driver to have a structured data format.
It enables host flooding towards all tag_8021q CPU ports. It dynamically
updates the tag_8021q CPU port used for traps. It also fixes a bug
introduced by a previous refactoring/oversimplification commit in
net-next.

Vladimir Oltean (8):
  net: dsa: felix: program host FDB entries towards PGID_CPU for
    tag_8021q too
  net: dsa: felix: bring the NPI port indirection for host MDBs to
    surface
  net: dsa: felix: bring the NPI port indirection for host flooding to
    surface
  net: dsa: introduce the dsa_cpu_ports() helper
  net: dsa: felix: manage host flooding using a specific driver callback
  net: dsa: remove port argument from ->change_tag_protocol()
  net: dsa: felix: dynamically determine tag_8021q CPU port for traps
  net: dsa: felix: reimplement tagging protocol change with function
    pointers

 drivers/net/dsa/mv88e6xxx/chip.c    |  22 +-
 drivers/net/dsa/ocelot/felix.c      | 469 +++++++++++++++-------------
 drivers/net/dsa/ocelot/felix.h      |  16 +
 drivers/net/dsa/realtek/rtl8365mb.c |   2 +-
 drivers/net/ethernet/mscc/ocelot.c  |  16 +-
 include/net/dsa.h                   |  19 +-
 net/dsa/dsa2.c                      |  18 +-
 net/dsa/dsa_priv.h                  |   1 +
 net/dsa/port.c                      |   8 +
 net/dsa/slave.c                     |  36 +--
 net/dsa/switch.c                    |  10 +-
 11 files changed, 337 insertions(+), 280 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org May 12, 2022, 11:50 p.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Wed, 11 May 2022 12:50:12 +0300 you wrote:
> I am trying to enable the second internal port pair from the NXP LS1028A
> Felix switch for DSA-tagged traffic via "ocelot-8021q". This series
> represents part 1 (of an unknown number) of that effort.
> 
> It does some preparation work, like managing host flooding in DSA via a
> dedicated method, and removing the CPU port as argument from the tagging
> protocol change procedure.
> 
> [...]

Here is the summary with links:
  - [v2,net-next,1/8] net: dsa: felix: program host FDB entries towards PGID_CPU for tag_8021q too
    https://git.kernel.org/netdev/net-next/c/e9b3ba439dcb
  - [v2,net-next,2/8] net: dsa: felix: bring the NPI port indirection for host MDBs to surface
    https://git.kernel.org/netdev/net-next/c/0ddf83cda5a6
  - [v2,net-next,3/8] net: dsa: felix: bring the NPI port indirection for host flooding to surface
    https://git.kernel.org/netdev/net-next/c/910ee6cce92f
  - [v2,net-next,4/8] net: dsa: introduce the dsa_cpu_ports() helper
    https://git.kernel.org/netdev/net-next/c/465c3de42b5d
  - [v2,net-next,5/8] net: dsa: felix: manage host flooding using a specific driver callback
    https://git.kernel.org/netdev/net-next/c/72c3b0c7359a
  - [v2,net-next,6/8] net: dsa: remove port argument from ->change_tag_protocol()
    https://git.kernel.org/netdev/net-next/c/bacf93b05619
  - [v2,net-next,7/8] net: dsa: felix: dynamically determine tag_8021q CPU port for traps
    https://git.kernel.org/netdev/net-next/c/c352e5e8e8f2
  - [v2,net-next,8/8] net: dsa: felix: reimplement tagging protocol change with function pointers
    https://git.kernel.org/netdev/net-next/c/7a29d220f4c0

You are awesome, thank you!