diff options
Diffstat (limited to 'drivers/net/macvlan.c')
-rw-r--r-- | drivers/net/macvlan.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index 322112c7358a..93c3e6edf702 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c | |||
@@ -446,6 +446,7 @@ static int macvlan_init(struct net_device *dev) | |||
446 | dev->state = (dev->state & ~MACVLAN_STATE_MASK) | | 446 | dev->state = (dev->state & ~MACVLAN_STATE_MASK) | |
447 | (lowerdev->state & MACVLAN_STATE_MASK); | 447 | (lowerdev->state & MACVLAN_STATE_MASK); |
448 | dev->features = lowerdev->features & MACVLAN_FEATURES; | 448 | dev->features = lowerdev->features & MACVLAN_FEATURES; |
449 | dev->gso_max_size = lowerdev->gso_max_size; | ||
449 | dev->iflink = lowerdev->ifindex; | 450 | dev->iflink = lowerdev->ifindex; |
450 | dev->hard_header_len = lowerdev->hard_header_len; | 451 | dev->hard_header_len = lowerdev->hard_header_len; |
451 | 452 | ||
@@ -772,6 +773,7 @@ static int macvlan_device_event(struct notifier_block *unused, | |||
772 | case NETDEV_FEAT_CHANGE: | 773 | case NETDEV_FEAT_CHANGE: |
773 | list_for_each_entry(vlan, &port->vlans, list) { | 774 | list_for_each_entry(vlan, &port->vlans, list) { |
774 | vlan->dev->features = dev->features & MACVLAN_FEATURES; | 775 | vlan->dev->features = dev->features & MACVLAN_FEATURES; |
776 | vlan->dev->gso_max_size = dev->gso_max_size; | ||
775 | netdev_features_change(vlan->dev); | 777 | netdev_features_change(vlan->dev); |
776 | } | 778 | } |
777 | break; | 779 | break; |