vlan: Add features for stacked vlan device
[firefly-linux-kernel-4.4.55.git] / net / 8021q / vlan_dev.c
index f196552ec3c41e13f2891f3a29a43844d56c2574..8b5ab9033b418606ecef53cbb9dcc91669e9d752 100644 (file)
@@ -554,6 +554,7 @@ static int vlan_dev_init(struct net_device *dev)
        if (dev->features & NETIF_F_VLAN_FEATURES)
                netdev_warn(real_dev, "VLAN features are set incorrectly.  Q-in-Q configurations may not work correctly.\n");
 
+       dev->vlan_features = real_dev->vlan_features & ~NETIF_F_ALL_FCOE;
 
        /* ipv6 shared card related stuff */
        dev->dev_id = real_dev->dev_id;