Skip to content

net: dsa: vsc73xx: Implement VLAN operations

Pawel Dembicki lkml netdev 4 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest12 patches 4 repliesApplied 12/12
  2. v312 patches 0 repliesSuperseded
  3. v212 patches 11 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v112 patches2 repliesSuperseded

Patches in v4 All 12 applied

#Subject and filesSizeRepliesApplied
1/12net: dsa: vsc73xx: add port_stp_state_set functiondrivers/net/dsa/vitesse-vsc73xx-core.c+85 -110 repliesApplied
2/12net: dsa: vsc73xx: Add vlan filteringdrivers/net/dsa/vitesse-vsc73xx-core.c drivers/net/dsa/vitesse-vsc73xx.h+566 -31 replyApplied
3/12net: dsa: tag_sja1105: absorb logic for not overwriting precise info into dsa_8021q_rcv()net/dsa/tag_8021q.c net/dsa/tag_sja1105.c+32 -230 repliesApplied
4/12net: dsa: tag_sja1105: absorb entire sja1105_vlan_rcv() into dsa_8021q_rcv()net/dsa/tag_8021q.c net/dsa/tag_8021q.h net/dsa/tag_ocelot_8021q.c +1 more+34 -360 repliesApplied
5/12net: dsa: tag_sja1105: prefer precise source port info on SJA1110 toonet/dsa/tag_sja1105.c+4 -40 repliesApplied
6/12net: dsa: tag_sja1105: refactor skb->dev assignment to dsa_tag_8021q_find_user()net/dsa/tag_8021q.c net/dsa/tag_8021q.h net/dsa/tag_sja1105.c+24 -170 repliesApplied
7/12net: dsa: vsc73xx: introduce tag 8021q for vsc73xxinclude/net/dsa.h net/dsa/Kconfig net/dsa/Makefile +1 more+77 -00 repliesApplied
8/12net: dsa: vsc73xx: Implement the tag_8021q VLAN operationsdrivers/net/dsa/Kconfig drivers/net/dsa/vitesse-vsc73xx-core.c+71 -41 replyApplied
9/12net: dsa: Define max num of bridges in tag8021q implementationdrivers/net/dsa/sja1105/sja1105_main.c include/linux/dsa/8021q.h+6 -20 repliesApplied
10/12net: dsa: prepare 'dsa_tag_8021q_bridge_join' for standalone usedrivers/net/dsa/sja1105/sja1105_main.c include/linux/dsa/8021q.h net/dsa/tag_8021q.c+8 -50 repliesApplied
11/12net: dsa: vsc73xx: Add bridge supportdrivers/net/dsa/vitesse-vsc73xx-core.c+5 -00 repliesApplied
12/12net: dsa: vsc73xx: start treating the BR_LEARNING flagdrivers/net/dsa/vitesse-vsc73xx-core.c+35 -60 repliesApplied

Reviews trailers per patch

All 12 patches have a Reviewed-by or Acked-by.

PatchLinus WalleijFlorian FainelliVladimir Oltean
1/12R-b R-b R-b
2/12R-b
3/12R-b T-b
4/12R-b T-b
5/12R-b
6/12R-b
7/12R-b R-b R-b
8/12R-b
9/12R-b R-b R-b
10/12R-b
11/12R-b
12/12A-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH net-next v4 00/12] net: dsa: vsc73xx: Implement VLAN operations

This patch series is a result of splitting a larger patch series [0], where some parts was merged before.

The first patch implements port state configuration, which is required for bridge functionality. STP frames are not forwarded at this moment. BPDU frames are only forwarded from/to the PI/SI interface. For more information, see chapter 2.7.1 (CPU Forwarding) in the datasheet.

Patches 2, 7-9 and 11 provide a basic implementation of tag_8021q functionality with QinQ support, without VLAN filtering in the bridge and simple VLAN awareness in VLAN filtering mode.

Patches 3-6 came from Vladimir Oltean. They prepare for making tag8021q more common. VSC73XX uses very similar tag recognition, and some code from tag_sja1105 could be moved to tag_8021q for common use.

Patch 10 is preparation for use tag_8021q bridge functions as generic implementation of the 'ds->ops->port_bridge_*()'.

Patch 12 is required to avoid problem with learning on standalone ports.

[0] https://patchwork.kernel.org/project/netdevbpf/list/?series=841034&state=%2A&archive=both

Pawel Dembicki (8):
net: dsa: vsc73xx: add port_stp_state_set function
net: dsa: vsc73xx: Add vlan filtering
net: dsa: vsc73xx: introduce tag 8021q for vsc73xx
net: dsa: vsc73xx: Implement the tag_8021q VLAN operations
net: dsa: Define max num of bridges in tag8021q implementation
net: dsa: prepare 'dsa_tag_8021q_bridge_join' for standalone use
net: dsa: vsc73xx: Add bridge support
net: dsa: vsc73xx: start treating the BR_LEARNING flag

Vladimir Oltean (4):
net: dsa: tag_sja1105: absorb logic for not overwriting precise info

    into dsa_8021q_rcv()
  net: dsa: tag_sja1105: absorb entire sja1105_vlan_rcv() into
    dsa_8021q_rcv()
  net: dsa: tag_sja1105: prefer precise source port info on SJA1110 too
  net: dsa: tag_sja1105: refactor skb->dev assignment to
    dsa_tag_8021q_find_user()
 drivers/net/dsa/Kconfig                |   2 +-
 drivers/net/dsa/sja1105/sja1105_main.c |   8 +-
 drivers/net/dsa/vitesse-vsc73xx-core.c | 735 ++++++++++++++++++++++++-
 drivers/net/dsa/vitesse-vsc73xx.h      |  37 ++
 include/linux/dsa/8021q.h              |   8 +-
 include/net/dsa.h                      |   2 +
 net/dsa/Kconfig                        |   6 +
 net/dsa/Makefile                       |   1 +
 net/dsa/tag_8021q.c                    |  84 ++-
 net/dsa/tag_8021q.h                    |   7 +-
 net/dsa/tag_ocelot_8021q.c             |   2 +-
 net/dsa/tag_sja1105.c                  |  72 +--
 net/dsa/tag_vsc73xx_8021q.c            |  68 +++
 13 files changed, 934 insertions(+), 98 deletions(-)
 create mode 100644 net/dsa/tag_vsc73xx_8021q.c
Signature · 1 line
2.34.1