summaryrefslogtreecommitdiffstats
path: root/net/bridge/br_stp_if.c
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2016-02-16 10:09:51 -0500
committerDavid S. Miller <davem@davemloft.net>2016-02-18 14:20:08 -0500
commit7c25b16dbbcf37ce8019bacf634ee47d852225d9 (patch)
treeb84032688a12ced8f54925ec8b370eed6c857fdd /net/bridge/br_stp_if.c
parent37a6351a64a95f0671d2b3e24b6b085a5885a927 (diff)
downloadop-kernel-dev-7c25b16dbbcf37ce8019bacf634ee47d852225d9.zip
op-kernel-dev-7c25b16dbbcf37ce8019bacf634ee47d852225d9.tar.gz
net: bridge: log port STP state on change
Remove the shared br_log_state function and print the info directly in br_set_state, where the net_bridge_port state is actually changed. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Acked-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_stp_if.c')
-rw-r--r--net/bridge/br_stp_if.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/bridge/br_stp_if.c b/net/bridge/br_stp_if.c
index a31ac6a..984d462 100644
--- a/net/bridge/br_stp_if.c
+++ b/net/bridge/br_stp_if.c
@@ -102,7 +102,6 @@ void br_stp_enable_port(struct net_bridge_port *p)
{
br_init_port(p);
br_port_state_selection(p->br);
- br_log_state(p);
br_ifinfo_notify(RTM_NEWLINK, p);
}
@@ -118,7 +117,6 @@ void br_stp_disable_port(struct net_bridge_port *p)
p->topology_change_ack = 0;
p->config_pending = 0;
- br_log_state(p);
br_ifinfo_notify(RTM_NEWLINK, p);
del_timer(&p->message_age_timer);
OpenPOWER on IntegriCloud