diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2021-03-23 01:51:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-23 14:49:06 -0700 |
commit | 010e269f91be8fc1436c753bfbbd9ce561151e71 (patch) | |
tree | 1b62b0899859af9908aa0d6bd222de3dc778b8c4 /net/dsa/slave.c | |
parent | 5961d6a12c13df834343e56e37672169fe88756b (diff) |
net: dsa: sync up switchdev objects and port attributes when joining the bridge
If we join an already-created bridge port, such as a bond master
interface, then we can miss the initial switchdev notifications emitted
by the bridge for this port, while it wasn't offloaded by anybody.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/slave.c')
-rw-r--r-- | net/dsa/slave.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 1ff48be476bb4..c51e52418a62a 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c @@ -2392,11 +2392,11 @@ static struct notifier_block dsa_slave_nb __read_mostly = { .notifier_call = dsa_slave_netdevice_event, }; -static struct notifier_block dsa_slave_switchdev_notifier = { +struct notifier_block dsa_slave_switchdev_notifier = { .notifier_call = dsa_slave_switchdev_event, }; -static struct notifier_block dsa_slave_switchdev_blocking_notifier = { +struct notifier_block dsa_slave_switchdev_blocking_notifier = { .notifier_call = dsa_slave_switchdev_blocking_event, }; |