Message ID | 1377002752-4622-3-git-send-email-f.fainelli@gmail.com |
---|---|
State | Changes Requested, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c index 61fc573..11a1faa 100644 --- a/net/8021q/vlan.c +++ b/net/8021q/vlan.c @@ -466,6 +466,13 @@ static int vlan_device_event(struct notifier_block *unused, unsigned long event, vlan_group_for_each_dev(grp, i, vlandev) call_netdevice_notifiers(event, vlandev); break; + + case NETDEV_CHANGEROOM: + vlan_group_for_each_dev(grp, i, vlandev) { + dev_set_headroom(vlandev, dev->needed_headroom); + dev_set_tailroom(vlandev, dev->needed_tailroom); + } + break; } out:
Whenever the parent device has needed_headroom/needed_tailroom requirement changes, the VLAN devices should also be updated to the new value. Handle the NETDEV_CHANGEROOM events and just set the new headroom and tailroom requirements to the values of the parent device. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> --- net/8021q/vlan.c | 7 +++++++ 1 file changed, 7 insertions(+)