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

[BRIDGE]: Fix bridge notification processing.

parent 9e3083c1
...@@ -43,15 +43,18 @@ static int br_device_event(struct notifier_block *unused, unsigned long event, v ...@@ -43,15 +43,18 @@ 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);
br_stp_recalculate_bridge_id(br); if (br->dev->flags & IFF_UP)
br_stp_recalculate_bridge_id(br);
break; break;
case NETDEV_DOWN: case NETDEV_DOWN:
br_stp_disable_port(p); if (br->dev->flags & IFF_UP)
br_stp_disable_port(p);
break; break;
case NETDEV_UP: case NETDEV_UP:
br_stp_enable_port(p); if (br->dev->flags & IFF_UP)
br_stp_enable_port(p);
break; break;
case NETDEV_UNREGISTER: case NETDEV_UNREGISTER:
......
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