Skip to content

RFC Traffic support for dsa_8021q in vlan_filtering=1 mode

Vladimir Oltean netdev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6net: dsa: sja1105: add packing ops for the Retagging Tabledrivers/net/dsa/sja1105/sja1105.h drivers/net/dsa/sja1105/sja1105_dynamic_config.c drivers/net/dsa/sja1105/sja1105_static_config.c +1 more+110 -20 replies
2/6net: dsa: sja1105: make HOSTPRIO a devlink paramDocumentation/networking/devlink-params-sja1105.txt Documentation/networking/dsa/sja1105.rst MAINTAINERS +2 more+122 -20 replies
3/6net: dsa: tag_8021q: allow DSA tags and VLAN filtering simultaneouslyDocumentation/networking/dsa/sja1105.rst drivers/net/dsa/sja1105/sja1105.h drivers/net/dsa/sja1105/sja1105_main.c +4 more+167 -230 replies
4/6net: dsa: tag_8021q: skip disabled portsnet/dsa/tag_8021q.c+3 -10 replies
5/6net: dsa: sja1105: support up to 7 VLANs per port using retaggingdrivers/net/dsa/sja1105/sja1105_main.c include/linux/dsa/8021q.h include/linux/dsa/sja1105.h +2 more+357 -210 replies
6/6docs: net: dsa: sja1105: document the best_effort_vlan_filtering optionDocumentation/networking/devlink-params-sja1105.txt Documentation/networking/dsa/sja1105.rst+70 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/6] Traffic support for dsa_8021q in vlan_filtering=1 mode

From: Vladimir Oltean <[email protected]>

This series is a draft for supporting as much as possible in terms of traffic I/O from the network stack with the only dsa_8021q user thus far, sja1105.

It doesn't support pushing a second VLAN tag to packets that are already tagged, so our only option is to combine the dsa_8021q with the user tag into a single tag and decode that on the CPU.

Posting this RFC only to get opinions on whether I'm way too deep down the rabbit hole or whether this has a chance of getting accepted in mainline. The assumption is that there is a type of use cases for which 7 VLANs per port are more than sufficient, and that there's another type of use cases where the full 4096 entries are barely enough. Those use cases are very different from one another, so I prefer trying to give both the best experience by creating this best_effort_vlan_filtering knob to select the mode in which they want to operate in.

Vladimir Oltean (6):
net: dsa: sja1105: add packing ops for the Retagging Table
net: dsa: sja1105: make HOSTPRIO a devlink param
net: dsa: tag_8021q: allow DSA tags and VLAN filtering simultaneously
net: dsa: tag_8021q: skip disabled ports
net: dsa: sja1105: support up to 7 VLANs per port using retagging
docs: net: dsa: sja1105: document the best_effort_vlan_filtering
option

 .../networking/devlink-params-sja1105.txt     |  33 ++
 Documentation/networking/dsa/sja1105.rst      |  86 +++-
 MAINTAINERS                                   |   1 +
 drivers/net/dsa/sja1105/sja1105.h             |   4 +
 .../net/dsa/sja1105/sja1105_dynamic_config.c  |  33 ++
 drivers/net/dsa/sja1105/sja1105_main.c        | 415 +++++++++++++++++-
 .../net/dsa/sja1105/sja1105_static_config.c   |  62 ++-
 .../net/dsa/sja1105/sja1105_static_config.h   |  15 +
 include/linux/dsa/8021q.h                     |  38 ++
 include/linux/dsa/sja1105.h                   |   4 +
 net/dsa/tag_8021q.c                           | 130 +++++-
 net/dsa/tag_sja1105.c                         |  35 +-
 12 files changed, 818 insertions(+), 38 deletions(-)
 create mode 100644 Documentation/networking/devlink-params-sja1105.txt
Signature · 1 line
2.17.1