vlandev: propagate topology changes
authorFelix Fietkau <nbd@nbd.name>
Fri, 30 Dec 2022 14:16:50 +0000 (15:16 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 30 Dec 2022 14:16:52 +0000 (15:16 +0100)
Same as vlan

Signed-off-by: Felix Fietkau <nbd@nbd.name>
vlandev.c

index 31b82b18335a26ef90d2cbf5f161d457a5fa043d..d93d2b3c5aab459afba9e17f0d51ec98ef5ef6c5 100644 (file)
--- a/vlandev.c
+++ b/vlandev.c
@@ -139,6 +139,10 @@ vlandev_base_cb(struct device_user *dev, enum device_event ev)
        case DEV_EVENT_UPDATE_IFNAME:
                vlandev_hotplug_check(mvdev);
                break;
+       case DEV_EVENT_TOPO_CHANGE:
+               /* Propagate topo changes */
+               device_broadcast_event(&mvdev->dev, DEV_EVENT_TOPO_CHANGE);
+               break;
        default:
                return;
        }