mbox series

[net,00/14] VLAN fixes for Ocelot driver

Message ID 20240815000707.2006121-1-vladimir.oltean@nxp.com (mailing list archive)
Headers show
Series VLAN fixes for Ocelot driver | expand

Message

Vladimir Oltean Aug. 15, 2024, 12:06 a.m. UTC
This is a collection of patches I've gathered over the past several
months.

Patches 1-6/14 are supporting patches for selftests.

Patch 9/14 fixes PTP TX from a VLAN upper of a VLAN-aware bridge port
when using the "ocelot-8021q" tagging protocol. Patch 7/14 is its
supporting selftest.

Patch 10/14 fixes the QoS class used by PTP in the same case as above.
It is hard to quantify - there is no selftest.

Patch 11/14 fixes potential data corruption during PTP TX in the same
case as above. Again, there is no selftest.

Patch 13/14 fixes RX in the same case as above - 8021q upper of a
VLAN-aware bridge port, with the "ocelot-8021q" tagging protocol. Patch
12/14 is a supporting patch for this in the DSA core, and 7/14 is also
its selftest.

Patch 14/14 ensures that VLAN-aware bridges offloaded to Ocelot only
react to the ETH_P_8021Q TPID, and treat absolutely everything else as
VLAN-untagged, including ETH_P_8021AD. Patch 8/14 is the supporting
selftest.

Vladimir Oltean (14):
  selftests: net: local_termination: refactor macvlan creation/deletion
  selftests: net: local_termination: parameterize sending interface
  selftests: net: local_termination: parameterize test name
  selftests: net: local_termination: add one more test for VLAN-aware
    bridges
  selftests: net: local_termination: introduce new tests which capture
    VLAN behavior
  selftests: net: local_termination: don't use xfail_on_veth()
  selftests: net: local_termination: add PTP frames to the mix
  selftests: net: bridge_vlan_aware: test that other TPIDs are seen as
    untagged
  net: mscc: ocelot: use ocelot_xmit_get_vlan_info() also for FDMA and
    register injection
  net: mscc: ocelot: fix QoS class for injected packets with
    "ocelot-8021q"
  net: mscc: ocelot: serialize access to the injection/extraction groups
  net: dsa: provide a software untagging function on RX for VLAN-aware
    bridges
  net: dsa: felix: fix VLAN tag loss on CPU reception with ocelot-8021q
  net: mscc: ocelot: treat 802.1ad tagged traffic as 802.1Q-untagged

 drivers/net/dsa/ocelot/felix.c                | 126 ++++-
 drivers/net/ethernet/mscc/ocelot.c            | 279 +++++++++++-
 drivers/net/ethernet/mscc/ocelot_fdma.c       |   3 +-
 drivers/net/ethernet/mscc/ocelot_vcap.c       |   1 +
 drivers/net/ethernet/mscc/ocelot_vsc7514.c    |   4 +
 include/linux/dsa/ocelot.h                    |  47 ++
 include/net/dsa.h                             |  16 +-
 include/soc/mscc/ocelot.h                     |  12 +-
 include/soc/mscc/ocelot_vcap.h                |   2 +
 net/dsa/tag.c                                 |   5 +-
 net/dsa/tag.h                                 | 135 ++++--
 net/dsa/tag_ocelot.c                          |  37 +-
 .../net/forwarding/bridge_vlan_aware.sh       |  54 ++-
 tools/testing/selftests/net/forwarding/lib.sh |  57 +++
 .../net/forwarding/local_termination.sh       | 431 +++++++++++++++---
 15 files changed, 1036 insertions(+), 173 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Aug. 16, 2024, 9:10 a.m. UTC | #1
Hello:

This series was applied to netdev/net.git (main)
by David S. Miller <davem@davemloft.net>:

On Thu, 15 Aug 2024 03:06:53 +0300 you wrote:
> This is a collection of patches I've gathered over the past several
> months.
> 
> Patches 1-6/14 are supporting patches for selftests.
> 
> Patch 9/14 fixes PTP TX from a VLAN upper of a VLAN-aware bridge port
> when using the "ocelot-8021q" tagging protocol. Patch 7/14 is its
> supporting selftest.
> 
> [...]

Here is the summary with links:
  - [net,01/14] selftests: net: local_termination: refactor macvlan creation/deletion
    https://git.kernel.org/netdev/net/c/8d019b15ddd5
  - [net,02/14] selftests: net: local_termination: parameterize sending interface
    https://git.kernel.org/netdev/net/c/4261fa35185c
  - [net,03/14] selftests: net: local_termination: parameterize test name
    https://git.kernel.org/netdev/net/c/df7cf5cc551c
  - [net,04/14] selftests: net: local_termination: add one more test for VLAN-aware bridges
    https://git.kernel.org/netdev/net/c/5b8e74182ed3
  - [net,05/14] selftests: net: local_termination: introduce new tests which capture VLAN behavior
    https://git.kernel.org/netdev/net/c/5fea8bb00974
  - [net,06/14] selftests: net: local_termination: don't use xfail_on_veth()
    https://git.kernel.org/netdev/net/c/9aa3749ca4a8
  - [net,07/14] selftests: net: local_termination: add PTP frames to the mix
    https://git.kernel.org/netdev/net/c/237979504264
  - [net,08/14] selftests: net: bridge_vlan_aware: test that other TPIDs are seen as untagged
    https://git.kernel.org/netdev/net/c/e29b82ef2761
  - [net,09/14] net: mscc: ocelot: use ocelot_xmit_get_vlan_info() also for FDMA and register injection
    https://git.kernel.org/netdev/net/c/67c3ca2c5cfe
  - [net,10/14] net: mscc: ocelot: fix QoS class for injected packets with "ocelot-8021q"
    https://git.kernel.org/netdev/net/c/e1b9e80236c5
  - [net,11/14] net: mscc: ocelot: serialize access to the injection/extraction groups
    https://git.kernel.org/netdev/net/c/c5e12ac3beb0
  - [net,12/14] net: dsa: provide a software untagging function on RX for VLAN-aware bridges
    https://git.kernel.org/netdev/net/c/93e4649efa96
  - [net,13/14] net: dsa: felix: fix VLAN tag loss on CPU reception with ocelot-8021q
    https://git.kernel.org/netdev/net/c/f1288fd7293b
  - [net,14/14] net: mscc: ocelot: treat 802.1ad tagged traffic as 802.1Q-untagged
    https://git.kernel.org/netdev/net/c/36dd1141be70

You are awesome, thank you!