[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1320941934-3534-1-git-send-email-holger.brunck@keymile.com>
Date: Thu, 10 Nov 2011 17:18:54 +0100
From: Holger Brunck <holger.brunck@...mile.com>
To: netdev@...r.kernel.org
Cc: Wolfgang Fritz <wolfgang.fritz@...mile.com>,
Holger Brunck <holger.brunck@...mile.com>,
Stephen Hemminger <shemminger@...ux-foundation.org>,
"David S. Miller" <davem@...emloft.net>,
bridge@...ts.linux-foundation.org
Subject: [PATCH] net, bridge: print log message after state changed
From: Wolfgang Fritz <wolfgang.fritz@...mile.com>
Function br_log_state writes log message "... entering XXXX state" so it
should be called after the state has changed and not before.
Signed-off-by: Wolfgang Fritz <wolfgang.fritz@...mile.com>
Signed-off-by: Holger Brunck <holger.brunck@...mile.com>
cc: Stephen Hemminger <shemminger@...ux-foundation.org>
cc: "David S. Miller" <davem@...emloft.net>
cc: bridge@...ts.linux-foundation.org
---
net/bridge/br_stp_if.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/bridge/br_stp_if.c b/net/bridge/br_stp_if.c
index 19308e3..e91be40 100644
--- a/net/bridge/br_stp_if.c
+++ b/net/bridge/br_stp_if.c
@@ -98,8 +98,6 @@ 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;
@@ -121,6 +119,8 @@ void br_stp_disable_port(struct net_bridge_port *p)
if (br_is_root_bridge(br) && !wasroot)
br_become_root_bridge(br);
+
+ br_log_state(p);
}
static void br_stp_start(struct net_bridge *br)
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists