]> git.ipfire.org Git - thirdparty/linux.git/commit - drivers/net/dsa/sja1105/sja1105_main.c
net: dsa: sja1105: Hide the dsa_8021q VLANs from the bridge fdb command
authorVladimir Oltean <olteanv@gmail.com>
Sun, 2 Jun 2019 21:16:01 +0000 (00:16 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Jun 2019 18:49:20 +0000 (11:49 -0700)
commit93647594d8f5272ae43322b8e44fe8addb23719e
treed6f9a84f3aa712dabb81ee5cf6da69c4e4bc67e5
parent7752e937f185a24d8e33dea067726079418574e3
net: dsa: sja1105: Hide the dsa_8021q VLANs from the bridge fdb command

TX VLANs and RX VLANs are an internal implementation detail of DSA for
frame tagging.  They work by installing special VLANs on switch ports in
the operating modes where no behavior change w.r.t. VLANs can be
observed by the user.

Therefore it makes sense to hide these VLANs in the 'bridge fdb'
command, as well as translate the pvid into the RX VID and TX VID on
'bridge fdb add' and 'bridge fdb del' commands.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_main.c