diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2014-09-30 19:13:19 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-01 22:03:50 -0400 |
commit | 775dd692bd34f9201ed2aa775a0edcba4f973f3e (patch) | |
tree | 65c977fb1c697077c0fa4e2506e1847d3899133b /net/bridge/br_private.h | |
parent | a0efb80ce3abacfd22a4284c3730924fc2f1f077 (diff) |
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>
Diffstat (limited to 'net/bridge/br_private.h')
-rw-r--r-- | net/bridge/br_private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index f53592fc3ef9..fe7463c2af9a 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h | |||
@@ -766,6 +766,7 @@ static inline void br_nf_core_fini(void) {} | |||
766 | 766 | ||
767 | /* br_stp.c */ | 767 | /* br_stp.c */ |
768 | void br_log_state(const struct net_bridge_port *p); | 768 | void br_log_state(const struct net_bridge_port *p); |
769 | void br_set_state(struct net_bridge_port *p, unsigned int state); | ||
769 | struct net_bridge_port *br_get_port(struct net_bridge *br, u16 port_no); | 770 | struct net_bridge_port *br_get_port(struct net_bridge *br, u16 port_no); |
770 | void br_init_port(struct net_bridge_port *p); | 771 | void br_init_port(struct net_bridge_port *p); |
771 | void br_become_designated_port(struct net_bridge_port *p); | 772 | void br_become_designated_port(struct net_bridge_port *p); |