aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge/br_netlink.c
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2014-09-30 16:13:19 -0700
committerDavid S. Miller <davem@davemloft.net>2014-10-01 22:03:50 -0400
commit775dd692bd34f9201ed2aa775a0edcba4f973f3e (patch)
tree65c977fb1c697077c0fa4e2506e1847d3899133b /net/bridge/br_netlink.c
parentnet_sched: avoid calling tcf_unbind_filter() in call_rcu callback (diff)
downloadlinux-dev-775dd692bd34f9201ed2aa775a0edcba4f973f3e.tar.xz
linux-dev-775dd692bd34f9201ed2aa775a0edcba4f973f3e.zip
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 '')
-rw-r--r--net/bridge/br_netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c
index 0fa66b83685f..2ff9706647f2 100644
--- a/net/bridge/br_netlink.c
+++ b/net/bridge/br_netlink.c
@@ -301,7 +301,7 @@ static int br_set_port_state(struct net_bridge_port *p, u8 state)
(!netif_oper_up(p->dev) && state != BR_STATE_DISABLED))
return -ENETDOWN;
- p->state = state;
+ br_set_state(p, state);
br_log_state(p);
br_port_state_selection(p->br);
return 0;