]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf70a31f044293ac269f800677488bb8994b7a489
tree1b62b0899859af9908aa0d6bd222de3dc778b8c4
parent2b5972079880f5bb79313a99993a962a315e84f0
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