]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit98c772cb23f1a5b3777d1b6ab64fc5757fe62313
treea2a85508fb35f524e800b8451ddad8f3682948b1
parent155699871cc9bfc4b57c6d63ceb7e0d60a5807fe
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