Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193617
b: refs/heads/master
c: 1c01fe1
h: refs/heads/master
i:
  193615: 4ab0fdd
v: v3
  • Loading branch information
Jiri Pirko authored and David S. Miller committed Mar 19, 2010
1 parent dd4d09b commit 7d4eae0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3ca5b4042ecae5e73c59de62e4ac0db31c10e0f8
refs/heads/master: 1c01fe14a87332cc88266fbd6e598319322eb96f
3 changes: 3 additions & 0 deletions trunk/drivers/net/macvlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,9 @@ static int macvlan_device_event(struct notifier_block *unused,
list_for_each_entry_safe(vlan, next, &port->vlans, list)
vlan->dev->rtnl_link_ops->dellink(vlan->dev, NULL);
break;
case NETDEV_PRE_TYPE_CHANGE:
/* Forbid underlaying device to change its type. */
return NOTIFY_BAD;
}
return NOTIFY_DONE;
}
Expand Down
4 changes: 4 additions & 0 deletions trunk/net/8021q/vlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,10 @@ static int vlan_device_event(struct notifier_block *unused, unsigned long event,
}
unregister_netdevice_many(&list);
break;

case NETDEV_PRE_TYPE_CHANGE:
/* Forbid underlaying device to change its type. */
return NOTIFY_BAD;
}

out:
Expand Down
4 changes: 4 additions & 0 deletions trunk/net/bridge/br_notify.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ static int br_device_event(struct notifier_block *unused, unsigned long event, v
case NETDEV_UNREGISTER:
br_del_if(br, dev);
break;

case NETDEV_PRE_TYPE_CHANGE:
/* Forbid underlaying device to change its type. */
return NOTIFY_BAD;
}

/* Events that may cause spanning tree to refresh */
Expand Down

0 comments on commit 7d4eae0

Please sign in to comment.