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)
commit5200959b833ddacf28b6ffce8c331dfd6e0ca797
treea2a85508fb35f524e800b8451ddad8f3682948b1
parentd9e179ecec0805c41b17f9a0c3b925d415677772
bridge: fix state reporting when port is disabled

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>
net/bridge/br_stp_if.c