net: bridge: add a br_set_state helper function
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 30 Sep 2014 23:13:19 +0000 (16:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Oct 2014 02:03:50 +0000 (22:03 -0400)
commit775dd692bd34f9201ed2aa775a0edcba4f973f3e
tree65c977fb1c697077c0fa4e2506e1847d3899133b
parenta0efb80ce3abacfd22a4284c3730924fc2f1f077
net: bridge: add a br_set_state helper function

In preparation for being able to propagate port states to e.g: notifiers
or other kernel parts, do not manipulate the port state directly, but
instead use a helper function which will allow us to do a bit more than
just setting the state.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_if.c
net/bridge/br_netlink.c
net/bridge/br_private.h
net/bridge/br_stp.c
net/bridge/br_stp_if.c
net/bridge/br_stp_timer.c