[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200504124325.26758-1-olteanv@gmail.com>
Date: Mon, 4 May 2020 15:43:19 +0300
From: Vladimir Oltean <olteanv@...il.com>
To: andrew@...n.ch, f.fainelli@...il.com, vivien.didelot@...il.com
Cc: davem@...emloft.net, jiri@...nulli.us, idosch@...sch.org,
kuba@...nel.org, netdev@...r.kernel.org,
nikolay@...ulusnetworks.com, roopa@...ulusnetworks.com,
georg.waibel@...sor-technik.de, o.rempel@...gutronix.de,
christian.herber@....com
Subject: [RFC 0/6] Traffic support for dsa_8021q in vlan_filtering=1 mode
From: Vladimir Oltean <vladimir.oltean@....com>
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
--
2.17.1
Powered by blists - more mailing lists