net: 8139too: Initial necessary vlan_features to support vlan
Subsystems (2)
PATCH 1/1 net: 8139too: Initial necessary vlan_features to support vlan
Offload setting of vlan device requiresvlan_features to be initialed.
--- drivers/net/8139too.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/8139too.c +1 -0
@@ -993,6 +993,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;
Signature · 1 line
1.7.4.1
Shan Wei <[email protected]> :
Quoted 2 lines
Offload setting of vlan device requires
vlan_featuresto be initialed.
[...]
drivers/net/8139too.c static int __devinit rtl8139_init_one (struct pci_dev *pdev, · line 996
Quoted 5 lines
drivers/net/8139too.c +1
-0@@ -993,6 +993,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;
/* note: the hardware is not capable of sg/csum/highdma, however
* through the use of skb_copy_and_csum_dev we enable these
* features
*/
The commit message is a bit misleading wrt hardware capabilities but the patch makes sense.
--
Ueimor
From: Francois Romieu <[email protected]>
Date: Sat, 2 Jul 2011 11:51:38 +0200
Quoted 15 lines
Shan Wei <[email protected]> :
Quoted 2 lines
Offload setting of vlan device requires
vlan_featuresto be initialed.[...]
drivers/net/8139too.c static int __devinit rtl8139_init_one (struct pci_dev *pdev, · line 996
Quoted 5 lines
drivers/net/8139too.c +1
-0@@ -993,6 +993,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;/* note: the hardware is not capable of sg/csum/highdma, however
* through the use ofskb_copy_and_csum_devwe enable these
* features
*/
Quoted 4 lines
The commit message is a bit misleading wrt hardware capabilities but the patch makes sense.
Acked-by Francois Romieu <[email protected]>
Applied.