qlge: Fix vlan netdev features.
authorJitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Tue, 14 Jan 2014 18:57:25 +0000 (13:57 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jan 2014 03:02:35 +0000 (19:02 -0800)
vlan gets the same netdev features except vlan filter.

Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlge/qlge_main.c

index 449f506d2e8ff3e71abc22bba6ce8e67bcf45305..f705aeeba767eec647670c8d9b1a0e210f9f5e40 100644 (file)
@@ -4765,6 +4765,8 @@ static int qlge_probe(struct pci_dev *pdev,
                            NETIF_F_RXCSUM;
        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;
 
        if (test_bit(QL_DMA64, &qdev->flags))
                ndev->features |= NETIF_F_HIGHDMA;