netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] bridge: br_log_state() s/entering/entered/
@ 2012-03-07  8:25 Paulius Zaleckas
  2012-03-07  8:25 ` [PATCH 2/2] bridge: fix state reporting when port is disabled Paulius Zaleckas
  2012-03-08  8:25 ` [PATCH 1/2] bridge: br_log_state() s/entering/entered/ David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Paulius Zaleckas @ 2012-03-07  8:25 UTC (permalink / raw)
  To: bridge, netdev

When br_log_state() is reporting state it should say "entered"
istead of "entering" since state at this point is already
changed.

Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
---

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

diff --git a/net/bridge/br_stp.c b/net/bridge/br_stp.c
index 6751ed4..8c836d9 100644
--- a/net/bridge/br_stp.c
+++ b/net/bridge/br_stp.c
@@ -31,7 +31,7 @@ static const char *const br_port_state_names[] = {
 
 void br_log_state(const struct net_bridge_port *p)
 {
-	br_info(p->br, "port %u(%s) entering %s state\n",
+	br_info(p->br, "port %u(%s) entered %s state\n",
 		(unsigned) p->port_no, p->dev->name,
 		br_port_state_names[p->state]);
 }

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

* [PATCH 2/2] bridge: fix state reporting when port is disabled
  2012-03-07  8:25 [PATCH 1/2] bridge: br_log_state() s/entering/entered/ Paulius Zaleckas
@ 2012-03-07  8:25 ` Paulius Zaleckas
  2012-03-08  8:25   ` David Miller
  2012-03-08  8:25 ` [PATCH 1/2] bridge: br_log_state() s/entering/entered/ David Miller
  1 sibling, 1 reply; 4+ messages in thread
From: Paulius Zaleckas @ 2012-03-07  8:25 UTC (permalink / raw)
  To: bridge, netdev

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

br_log_state(p) should be called *after* p->state is set
to BR_STATE_DISABLED.

Reported-by: Zilvinas Valinskas <zilvinas@wilibox.com>
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Acked-by: Stephen Hemminger <shemminger@vyatta.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] 4+ messages in thread

* Re: [PATCH 1/2] bridge: br_log_state() s/entering/entered/
  2012-03-07  8:25 [PATCH 1/2] bridge: br_log_state() s/entering/entered/ Paulius Zaleckas
  2012-03-07  8:25 ` [PATCH 2/2] bridge: fix state reporting when port is disabled Paulius Zaleckas
@ 2012-03-08  8:25 ` David Miller
  1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2012-03-08  8:25 UTC (permalink / raw)
  To: paulius.zaleckas; +Cc: netdev, bridge

From: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Date: Wed, 07 Mar 2012 10:25:14 +0200

> When br_log_state() is reporting state it should say "entered"
> istead of "entering" since state at this point is already
> changed.
> 
> Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>

Applied.

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

* Re: [PATCH 2/2] bridge: fix state reporting when port is disabled
  2012-03-07  8:25 ` [PATCH 2/2] bridge: fix state reporting when port is disabled Paulius Zaleckas
@ 2012-03-08  8:25   ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2012-03-08  8:25 UTC (permalink / raw)
  To: paulius.zaleckas; +Cc: bridge, netdev

From: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Date: Wed, 07 Mar 2012 10:25:22 +0200

> Now we have:
> eth0: link *down*
> br0: port 1(eth0) entered *forwarding* state
> 
> br_log_state(p) should be called *after* p->state is set
> to BR_STATE_DISABLED.
> 
> Reported-by: Zilvinas Valinskas <zilvinas@wilibox.com>
> Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
> Acked-by: Stephen Hemminger <shemminger@vyatta.com>

Applied.

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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-07  8:25 [PATCH 1/2] bridge: br_log_state() s/entering/entered/ Paulius Zaleckas
2012-03-07  8:25 ` [PATCH 2/2] bridge: fix state reporting when port is disabled Paulius Zaleckas
2012-03-08  8:25   ` David Miller
2012-03-08  8:25 ` [PATCH 1/2] bridge: br_log_state() s/entering/entered/ David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).