net: dsa: Handle non-bridge master change
authorGuenter Roeck <linux@roeck-us.net>
Wed, 25 Mar 2015 15:08:37 +0000 (08:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Mar 2015 18:04:57 +0000 (14:04 -0400)
commitb06b107a4c190299e9e3f8dbcccfc7fe9e10c8cb
tree9bc9276a6688936777f45c39488d3f0b34d85d9a
parentac110f4954252b7bbe66268c78c8ece7ac2569b9
net: dsa: Handle non-bridge master change

Master change notifications may occur other than when joining or
leaving a bridge, for example when being added to or removed from
a bond or Open vSwitch. In that case, do nothing instead of asking
the switch driver to remove a port from a bridge that it didn't join.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/slave.c