Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107765
b: refs/heads/master
c: ef647f1
h: refs/heads/master
i:
  107763: 1450011
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Aug 6, 2008
1 parent bd2de47 commit 53f5aaa
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 33e334950abda8e42c3b6e6f280fad0d4ab92141
refs/heads/master: ef647f1300d69adb8223d970554d59d7e244db6d
25 changes: 18 additions & 7 deletions trunk/net/bridge/br_stp.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,14 +368,25 @@ static void br_make_blocking(struct net_bridge_port *p)
/* called under bridge lock */
static void br_make_forwarding(struct net_bridge_port *p)
{
if (p->state == BR_STATE_BLOCKING) {
if (p->br->stp_enabled == BR_KERNEL_STP)
p->state = BR_STATE_LISTENING;
else
p->state = BR_STATE_LEARNING;
struct net_bridge *br = p->br;

br_log_state(p);
mod_timer(&p->forward_delay_timer, jiffies + p->br->forward_delay); }
if (p->state != BR_STATE_BLOCKING)
return;

if (br->forward_delay == 0) {
p->state = BR_STATE_FORWARDING;
br_topology_change_detection(br);
del_timer(&p->forward_delay_timer);
}
else if (p->br->stp_enabled == BR_KERNEL_STP)
p->state = BR_STATE_LISTENING;
else
p->state = BR_STATE_LEARNING;

br_log_state(p);

if (br->forward_delay != 0)
mod_timer(&p->forward_delay_timer, jiffies + br->forward_delay);
}

/* called under bridge lock */
Expand Down

0 comments on commit 53f5aaa

Please sign in to comment.