Thread (7 messages) flat view 7 messages, 2 authors, 2021-10-20
STALE1780d

Revision v1 of 2 in this series.

Revisions (2)
  1. v1 current
  2. v2 [diff vs current]

[PATCH net-next 0/5] Ocelot switch: support a config where all VLANs are egress-untagged

From: Vladimir Oltean <vladimir.oltean@nxp.com>
Date: 2021-10-20 10:56:25

Po Liu is working on a use case where a station attached to the Felix
DSA switch from NXP LS1028A must see traffic which is coming from
multiple sources, in multiple VLANs, as VLAN-untagged. This is currently
impossible with the driver.

The ocelot switch family have restricted functionality in terms of
stripping bridging service VLANs on the egress of a port.

Where the 'bridge vlan add' command can have the 'untagged' flag for
each VLAN entry, the ocelot hardware can have no more than one untagged
VLAN per port, or all of them.

The driver currently only supports the first option (at most one
untagged VLAN). So while one bridge VLAN tag can be stripped at egress
towards this external station, not all of them can. This series adds
support for the second option.

Vladimir Oltean (5):
  net: mscc: ocelot: add a type definition for REW_TAG_CFG_TAG_CFG
  net: mscc: ocelot: convert the VLAN masks to a list
  net: mscc: ocelot: allow a config where all bridge VLANs are
    egress-untagged
  net: mscc: ocelot: add the local station MAC addresses in VID 0
  net: mscc: ocelot: track the port pvid using a pointer

 drivers/net/ethernet/mscc/ocelot.c     | 272 ++++++++++++++++++-------
 drivers/net/ethernet/mscc/ocelot.h     |   1 +
 drivers/net/ethernet/mscc/ocelot_net.c |  12 +-
 include/soc/mscc/ocelot.h              |  24 ++-
 4 files changed, 219 insertions(+), 90 deletions(-)

-- 
2.25.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help