]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: Use correct dsa_8021q VIDs for FDB commands
authorVladimir Oltean <olteanv@gmail.com>
Tue, 25 Jun 2019 23:39:41 +0000 (02:39 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Jun 2019 18:03:21 +0000 (11:03 -0700)
commitd520fcbe3ab1b555c6e878cb06d33c1f72d4fa82
tree60219b136471a322e20f2c414629ef7a15508d42
parent26e3ba8bcb1f1eb8c5ba33bb0371964cd428653d
net: dsa: sja1105: Use correct dsa_8021q VIDs for FDB commands

A FDB entry means that "frames that match this VID and DMAC must be
forwarded to this port".

In the case of dsa_8021q however, the VID is not a single one (and
neither two, as my previous patch assumed). The VID can be set either by
the CPU port (1 tx_vid), or by any of the other front-panel port (n-1
rx_vid's).

Fixes: 4948d4f79b6d ("net: dsa: sja1105: Hide the dsa_8021q VLANs from the bridge fdb command")
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_main.c