<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-15">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>Re: [PATCH] net, bridge: print log message after state changed</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2>Am Montag, den 14.11.2011, 00:37 -0500 schrieb David Miller:<BR>
&gt; From: Holger Brunck &lt;holger.brunck@keymile.com&gt;<BR>
&gt; Date: Thu, 10 Nov 2011 17:18:54 +0100<BR>
&gt;<BR>
&gt; &gt; From: Wolfgang Fritz &lt;wolfgang.fritz@keymile.com&gt;<BR>
&gt; &gt;<BR>
&gt; &gt; Function br_log_state writes log message &quot;... entering XXXX state&quot; so it<BR>
&gt; &gt; should be called after the state has changed and not before.<BR>
&gt; &gt;<BR>
&gt; &gt; Signed-off-by: Wolfgang Fritz &lt;wolfgang.fritz@keymile.com&gt;<BR>
&gt; &gt; Signed-off-by: Holger Brunck &lt;holger.brunck@keymile.com&gt;<BR>
&gt;<BR>
&gt; &quot;entering&quot; can roughly mean &quot;about to enter&quot;<BR>
&gt;<BR>
<BR>
Exactly.<BR>
<BR>
&gt; The message is therefore appropriately timed as far as I'm concerned.<BR>
&gt;<BR>
<BR>
It's not.<BR>
<BR>
Please test: create a bridge with STP disabled, add an interface to the<BR>
bridge and set that interface down. You get the message &quot;... entering<BR>
forwarding state&quot;. That's wrong because it's &quot;about to enter&quot; disabled<BR>
state some lines later.<BR>
<BR>
All other (4) calls to br_log_state are located after the state change,<BR>
see for example br_stp_enable_port() just some lines above the patch.<BR>
<BR>
Regards,<BR>
Wolfgang<BR>
<BR>
<BR>
&gt; I'm not applying this patch.<BR>
&gt;<BR>
--<BR>
&quot;I love deadlines. I like the whooshing sound they make as they fly by&quot;<BR>
(Douglas Adams)<BR>
=======================================================================<BR>
KEYMILE GmbH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF="mailto:wolfgang.fritz@keymile.com">mailto:wolfgang.fritz@keymile.com</A><BR>
Wolfgang Fritz&nbsp;&nbsp;&nbsp;&nbsp; Phone: +49 (0)511 6747-692<BR>
Wohlenbergstr. 3&nbsp;&nbsp; Fax:&nbsp;&nbsp; +49 (0)511 6747-777<BR>
D-30179 Hannover&nbsp;&nbsp; <A HREF="http://www.keymile.com">http://www.keymile.com</A><BR>
<BR>
Managing Directors: Björn Claaßen, Dipl.-Kfm. Andreas Gebauer<BR>
Legal structure: GmbH, Registered office: Hanover, HRB 61069<BR>
Local court Hanover, VAT-Reg.-No.: DE 812282795,<BR>
WEEE-Reg.-No.: DE 59336750<BR>
</FONT>
</P>

</BODY>
</HTML>