net: 8139too: Initial necessary vlan_features to support vlan
authorShan Wei <shanwei@cn.fujitsu.com>
Fri, 1 Jul 2011 22:06:44 +0000 (22:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jul 2011 02:54:10 +0000 (19:54 -0700)
Offload setting of vlan device requires
vlan_features to be initialized.

Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Acked-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/8139too.c

index 98517a373473e18b1a9f6982407831580079263a..e3bad8247fd1b237c93bb210b02480d11a1f9e94 100644 (file)
@@ -992,6 +992,7 @@ static int __devinit rtl8139_init_one (struct pci_dev *pdev,
         * features
         */
        dev->features |= NETIF_F_SG | NETIF_F_HW_CSUM | NETIF_F_HIGHDMA;
+       dev->vlan_features = dev->features;
 
        dev->irq = pdev->irq;