--- zzzz-none-000/linux-5.15.111/net/bridge/br.c 2023-05-11 14:00:40.000000000 +0000 +++ puma7-arm-6670-761/linux-5.15.111/net/bridge/br.c 2024-02-07 09:28:09.000000000 +0000 @@ -7,6 +7,11 @@ * Lennert Buytenhek */ +/* + * Includes Intel Corporation's changes/modifications dated: 2017. + * Changed/modified portions - Copyright (c) 2017, Intel Corporation. + */ + #include #include #include @@ -19,6 +24,10 @@ #include "br_private.h" +#ifdef CONFIG_TI_UNMANAGED_BRIDGE +extern int ti_unmanaged_bridge_handler (struct net_device *dev, unsigned long event); +#endif /* CONFIG_TI_UNMANAGED_BRIDGE */ + /* * Handle changes in state of network devices enslaved to a bridge. * @@ -36,6 +45,15 @@ bool changed_addr; int err; +#ifdef CONFIG_TI_UNMANAGED_BRIDGE + /* Pass control to the unmanaged bridge handler. */ + if (ti_unmanaged_bridge_handler(dev, event) == 0) + { + /* The event has been handled by the unmanaged bridge handler. */ + return NOTIFY_DONE; + } +#endif /* CONFIG_TI_UNMANAGED_BRIDGE */ + if (dev->priv_flags & IFF_EBRIDGE) { err = br_vlan_bridge_event(dev, event, ptr); if (err)