]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2c1674e96d68eb1d5be0d01c4c39020fdf61d951
tree5461eda93344ae2130703511ced8a23e5f792d65
parentd82376d704d50fd3d7bf477e2e55a72f593b89ff
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: 9edf728c14ce ("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