X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2F8021q%2Fvlan.c;h=ab2225da0ee292e6931fa5faedeb7b3962e4e7d0;hb=b4ba0ba24b57ec975482f4ba2d350fbee7557240;hp=51961300b586a578445c462ec73c8cf25fddaaa3;hpb=c1e554aeea12d2dab5183e011c27dee6142dc927;p=linux-2.6 diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c index 51961300b5..ab2225da0e 100644 --- a/net/8021q/vlan.c +++ b/net/8021q/vlan.c @@ -387,14 +387,8 @@ static void vlan_transfer_features(struct net_device *dev, { unsigned long old_features = vlandev->features; - if (dev->features & NETIF_F_VLAN_TSO) { - vlandev->features &= ~VLAN_TSO_FEATURES; - vlandev->features |= dev->features & VLAN_TSO_FEATURES; - } - if (dev->features & NETIF_F_VLAN_CSUM) { - vlandev->features &= ~NETIF_F_ALL_CSUM; - vlandev->features |= dev->features & NETIF_F_ALL_CSUM; - } + vlandev->features &= ~dev->vlan_features; + vlandev->features |= dev->features & dev->vlan_features; if (old_features != vlandev->features) netdev_features_change(vlandev);