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>
This commit is contained in:

committed by
David S. Miller

parent
37a6351a64
commit
7c25b16dbb
@@ -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);
|
||||
|
Reference in New Issue
Block a user