• Horatiu Vultur's avatar
    net: lan966x: Fix when a port's upper is changed. · d7a947d2
    Horatiu Vultur authored
    On lan966x it is not allowed to have foreign interfaces under a bridge
    which already contains lan966x ports. So when a port leaves the bridge
    it would call switchdev_bridge_port_unoffload which eventually will
    notify the other ports that bridge left the vlan group but that is not
    true because the bridge is still part of the vlan group.
    
    Therefore when a port leaves the bridge, stop generating replays because
    already the HW cleared after itself and the other ports don't need to do
    anything else.
    
    Fixes: cf2f6089 ("net: lan966x: Add support to offload the forwarding.")
    Signed-off-by: default avatarHoratiu Vultur <horatiu.vultur@microchip.com>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    d7a947d2
lan966x_switchdev.c 15 KB