mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-10 19:39:54 +01:00
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 <[email protected]> Signed-off-by: Paulius Zaleckas <[email protected]> Acked-by: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
1 parent
d9e179ecec
commit
5200959b83
1 file changed
+1
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user