All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bridge] [PATCH] bridge: fix "entering disabled state" logging
@ 2012-03-06 14:22 ` Paulius Zaleckas
  0 siblings, 0 replies; 14+ messages in thread
From: Paulius Zaleckas @ 2012-03-06 14:22 UTC (permalink / raw)
  To: bridge, netdev

Now we have:
eth0: link down
br0: port 1(eth0) entering forwarding state

State should be logged *after* it was changed, not before.

Reported-by: Zilvinas Valinskas <zilvinas@wilibox.com>
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
---

 net/bridge/br_stp_if.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/net/bridge/br_stp_if.c b/net/bridge/br_stp_if.c
index 19308e3..f494496 100644
--- a/net/bridge/br_stp_if.c
+++ b/net/bridge/br_stp_if.c
@@ -98,14 +98,13 @@ void br_stp_disable_port(struct net_bridge_port *p)
 	struct net_bridge *br = p->br;
 	int wasroot;
 
-	br_log_state(p);
-
 	wasroot = br_is_root_bridge(br);
 	br_become_designated_port(p);
 	p->state = BR_STATE_DISABLED;
 	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);


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-03-08  3:59 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-06 14:22 [Bridge] [PATCH] bridge: fix "entering disabled state" logging Paulius Zaleckas
2012-03-06 14:22 ` Paulius Zaleckas
2012-03-06 14:34 ` [Bridge] " Paulius Zaleckas
2012-03-06 14:34   ` Paulius Zaleckas
2012-03-06 17:09   ` [Bridge] " Stephen Hemminger
2012-03-06 17:09     ` Stephen Hemminger
2012-03-06 19:33   ` [Bridge] " David Miller
2012-03-06 19:33     ` David Miller
2012-03-06 19:33 ` [Bridge] " David Miller
2012-03-06 19:33   ` David Miller
2012-03-07  8:04   ` [Bridge] " Paulius Zaleckas
2012-03-07  8:04     ` Paulius Zaleckas
2012-03-08  3:59     ` [Bridge] " David Lamparter
2012-03-08  3:59       ` David Lamparter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.