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)
commitb3ee526a88d36dec752179d8866954a4e83f15aa
tree60219b136471a322e20f2c414629ef7a15508d42
parent17ae6555406a345c7d4096c4c274447e869e9384
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: 93647594d8f5 ("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