# \[PATCH net-next 0/3\] Make sja1105 treat tag\_8021q VLANs more like real DSA tags

- From: Vladimir Oltean \<vladimir.oltean@nxp.com\>
- Date: 2021-08-24 17:20:19 
- List: netdev
- Page: https://ratatoskr.run/netdev/2021/08/11210049
- Thread: https://ratatoskr.run/netdev/2021/08/11210049/t.md

```text
This series solves a nuisance with the sja1105 driver, which is that
non-DSA tagged packets sent directly by the DSA master would still exit
the switch just fine.

We also had an issue for packets coming from the outside world with a
crafted DSA tag, the switch would not reject that tag but think it was
valid.

Vladimir Oltean (3):
  net: dsa: sja1105: prevent tag_8021q VLANs from being received on user
    ports
  net: dsa: sja1105: drop untagged packets on the CPU and DSA ports
  net: dsa: tag_sja1105: stop asking the sja1105 driver in
    sja1105_xmit_tpid

 drivers/net/dsa/sja1105/sja1105.h      |  6 --
 drivers/net/dsa/sja1105/sja1105_main.c | 55 ++++++++++++------
 drivers/net/dsa/sja1105/sja1105_spi.c  | 10 ----
 include/linux/dsa/sja1105.h            |  3 +-
 net/dsa/tag_sja1105.c                  | 79 ++++++++++++++++++++++++--
 5 files changed, 113 insertions(+), 40 deletions(-)

-- 
2.25.1

```
