]> 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)
commit7057633e123eaca86f0ee81dbf43924956cffacc
tree60219b136471a322e20f2c414629ef7a15508d42
parent2bb18099668fa57e1c9220e1545004bc9f7e80b7
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: dba8f71a3567 ("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