Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158989
b: refs/heads/master
c: 2e477c9
h: refs/heads/master
i:
  158987: 09b199c
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Jul 20, 2009
1 parent f2d8e46 commit 4d7ed5b
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 37cf2b8d1622897cf57e70cdab9eba57feb5ff6c
refs/heads/master: 2e477c9bd2bb6a1606e498adb53ba913378ecdf2
13 changes: 13 additions & 0 deletions trunk/net/8021q/vlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,19 @@ static int vlan_device_event(struct notifier_block *unused, unsigned long event,
}
break;

case NETDEV_CHANGEMTU:
for (i = 0; i < VLAN_GROUP_ARRAY_LEN; i++) {
vlandev = vlan_group_get_device(grp, i);
if (!vlandev)
continue;

if (vlandev->mtu <= dev->mtu)
continue;

dev_set_mtu(vlandev, dev->mtu);
}
break;

case NETDEV_FEAT_CHANGE:
/* Propagate device features to underlying device */
for (i = 0; i < VLAN_GROUP_ARRAY_LEN; i++) {
Expand Down

0 comments on commit 4d7ed5b

Please sign in to comment.