]> Pileus Git - ~andy/linux/blobdiff - drivers/net/ixgbe/ixgbe_main.c
ixgbe: properly toggling netdev feature flags when disabling FCoE
[~andy/linux] / drivers / net / ixgbe / ixgbe_main.c
index 813d2cb5b4d09b6e13baaeab0ee80c094e744bb4..7d619d620f2e7b94861a6e346a89fa6d58dd8daf 100644 (file)
@@ -6740,6 +6740,11 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev,
                                adapter->flags &= ~IXGBE_FLAG_FCOE_CAPABLE;
                }
        }
+       if (adapter->flags & IXGBE_FLAG_FCOE_CAPABLE) {
+               netdev->vlan_features |= NETIF_F_FCOE_CRC;
+               netdev->vlan_features |= NETIF_F_FSO;
+               netdev->vlan_features |= NETIF_F_FCOE_MTU;
+       }
 #endif /* IXGBE_FCOE */
        if (pci_using_dac)
                netdev->features |= NETIF_F_HIGHDMA;