Merge branch 'master' of /home/davem/src/GIT/linux-2.6/
[linux-2.6-block.git] / net / 8021q / vlan.c
index 453512266ea1dd783dbc68f5e6b511dd64ec5ac5..db783d7af5a3cd41ab2695c0c7f326e5a266e3f2 100644 (file)
@@ -378,6 +378,8 @@ static void vlan_transfer_features(struct net_device *dev,
 #if defined(CONFIG_FCOE) || defined(CONFIG_FCOE_MODULE)
        vlandev->fcoe_ddp_xid = dev->fcoe_ddp_xid;
 #endif
+       vlandev->real_num_tx_queues = dev->real_num_tx_queues;
+       BUG_ON(vlandev->real_num_tx_queues > vlandev->num_tx_queues);
 
        if (old_features != vlandev->features)
                netdev_features_change(vlandev);