bridge: fix state reporting when port is disabled
authorPaulius Zaleckas <paulius.zaleckas@gmail.com>
Tue, 6 Mar 2012 22:25:22 +0000 (22:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Mar 2012 08:25:25 +0000 (00:25 -0800)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found