net: dsa: sync up switchdev objects and port attributes when joining the bridge
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 22 Mar 2021 23:51:50 +0000 (01:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Mar 2021 21:49:06 +0000 (14:49 -0700)
commit010e269f91be8fc1436c753bfbbd9ce561151e71
tree1b62b0899859af9908aa0d6bd222de3dc778b8c4
parent5961d6a12c13df834343e56e37672169fe88756b
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>
net/dsa/dsa_priv.h
net/dsa/port.c
net/dsa/slave.c