Skip to contentSkip to conversation

net: 8139too: Initial necessary vlan_features to support vlan

PATCH Applied Shan Wei 3 participants 3 messages Jul 2, 2011 – Jul 4, 2011

Subsystems (2)
lore
Share & tools
lore

Shan Wei

author
#0 lore raw

PATCH 1/1 net: 8139too: Initial necessary vlan_features to support vlan

Offload setting of vlan device requires
vlan_features to be initialed.

---
 drivers/net/8139too.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/8139too.c +1 -0
index ed6355c..c2672c6 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw

Shan Wei <[email protected]> :

Quoted 2 lines

Offload setting of vlan device requires
vlan_features to 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

maintainer Applied
#2 lore raw

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_features to 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
*/

Quoted 4 lines

The commit message is a bit misleading wrt hardware capabilities but the patch makes sense.

Applied.