Commit 53caefe1 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

[BRIDGE]: Fix bridge notification processing.

parent 9e3083c1
...@@ -43,14 +43,17 @@ static int br_device_event(struct notifier_block *unused, unsigned long event, v ...@@ -43,14 +43,17 @@ static int br_device_event(struct notifier_block *unused, unsigned long event, v
{ {
case NETDEV_CHANGEADDR: case NETDEV_CHANGEADDR:
br_fdb_changeaddr(p, dev->dev_addr); br_fdb_changeaddr(p, dev->dev_addr);
if (br->dev->flags & IFF_UP)
br_stp_recalculate_bridge_id(br); br_stp_recalculate_bridge_id(br);
break; break;
case NETDEV_DOWN: case NETDEV_DOWN:
if (br->dev->flags & IFF_UP)
br_stp_disable_port(p); br_stp_disable_port(p);
break; break;
case NETDEV_UP: case NETDEV_UP:
if (br->dev->flags & IFF_UP)
br_stp_enable_port(p); br_stp_enable_port(p);
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment