]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: call netdev_sw_port_stp_update when bridge port STP status changes
authorScott Feldman <sfeldma@gmail.com>
Fri, 28 Nov 2014 13:34:20 +0000 (14:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Dec 2014 04:01:22 +0000 (20:01 -0800)
commit1eea96827d1ba9554076e5f7476ff4a49c4145f6
treea5fa0ef8464099c4aad79bd67d1e23759ad8e6c4
parent078689832cb74eb1cfba884b3709f9f1708f0a21
bridge: call netdev_sw_port_stp_update when bridge port STP status changes

To notify switch driver of change in STP state of bridge port, add new
.ndo op and provide switchdev wrapper func to call ndo op. Use it in bridge
code then.

Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Andy Gospodarek <gospo@cumulusnetworks.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
include/net/switchdev.h
net/bridge/br_stp.c
net/switchdev/switchdev.c