]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdba8f71a35677e14436d180a770df984355d9dcc
treed6f9a84f3aa712dabb81ee5cf6da69c4e4bc67e5
parentcbd019d854b795b6e0d06bd96589e3e296dafdeb
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