net: dsa: mv88e6xxx: Add tx fwd offload PVT on intermediate devices
authorTobias Waldekranz <tobias@waldekranz.com>
Thu, 9 Dec 2021 22:24:24 +0000 (23:24 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 12 Dec 2021 12:38:23 +0000 (12:38 +0000)
commite0068620e5e1779b3d5bb5649cd196e1cbf277a9
tree5461eda93344ae2130703511ced8a23e5f792d65
parent8c8b7aa7fb0cf9e1cc9204e6bc6e1353b8393502
net: dsa: mv88e6xxx: Add tx fwd offload PVT on intermediate devices

In a typical mv88e6xxx switch tree like this:

  CPU
   |    .----.
.--0--. | .--0--.
| sw0 | | | sw1 |
'-1-2-' | '-1-2-'
    '---'

If sw1p{1,2} are added to a bridge that sw0p1 is not a part of, sw0
still needs to add a crosschip PVT entry for the virtual DSA device
assigned to represent the bridge.

Fixes: ce5df6894a57 ("net: dsa: mv88e6xxx: map virtual bridges with forwarding offload in the PVT")
Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c