]> Pileus Git - ~andy/linux/blobdiff - drivers/net/ethernet/qlogic/qlge/qlge_main.c
qlge: Do not propaged vlan tag offloads to vlans
[~andy/linux] / drivers / net / ethernet / qlogic / qlge / qlge_main.c
index f705aeeba767eec647670c8d9b1a0e210f9f5e40..656c65ddadb4af03ff032f8f2310ebb91a7f0189 100644 (file)
@@ -6,7 +6,6 @@
  *                      Ron Mercer <ron.mercer@qlogic.com>
  */
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/bitops.h>
 #include <linux/types.h>
 #include <linux/module.h>
@@ -4766,7 +4765,9 @@ static int qlge_probe(struct pci_dev *pdev,
        ndev->features = ndev->hw_features;
        ndev->vlan_features = ndev->hw_features;
        /* vlan gets same features (except vlan filter) */
-       ndev->vlan_features &= ~NETIF_F_HW_VLAN_CTAG_FILTER;
+       ndev->vlan_features &= ~(NETIF_F_HW_VLAN_CTAG_FILTER |
+                                NETIF_F_HW_VLAN_CTAG_TX |
+                                NETIF_F_HW_VLAN_CTAG_RX);
 
        if (test_bit(QL_DMA64, &qdev->flags))
                ndev->features |= NETIF_F_HIGHDMA;