Skip to contentSkip to conversation

hyperv: Fix the NETIF_F_SG flag setting in netvsc

PATCH In review Haiyang Zhang 3 participants 4 messages Jul 17, 2013

Subsystems (3)
lore
Share & tools
lore

Haiyang Zhang

author maintainer
#0 lore raw

PATCH 1/1 hyperv: Fix the NETIF_F_SG flag setting in netvsc

SG mode is not currently supported by netvsc, so remove this flag for now. Otherwise, it will be unconditionally enabled by commit ec5f0615642
"Kill link between CSUM and SG features"
Previously, the SG feature is disabled because CSUM is not set here.

---
 drivers/net/hyperv/netvsc_drv.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/hyperv/netvsc_drv.c +2 -2
index 4dccead..23a0fff 100644
@@ -431,8 +431,8 @@ static int netvsc_probe(struct hv_device *dev,
 	net->netdev_ops = &device_ops;
 
 	/* TODO: Add GSO and Checksum offload */
-	net->hw_features = NETIF_F_SG;
-	net->features = NETIF_F_SG | NETIF_F_HW_VLAN_CTAG_TX;
+	net->hw_features = 0;
+	net->features = NETIF_F_HW_VLAN_CTAG_TX;
 
 	SET_ETHTOOL_OPS(net, &ethtool_ops);
 	SET_NETDEV_DEV(net, &dev->device);
Signature · 1 line
1.7.4.1
maintainer
#1 lore raw

From: Haiyang Zhang <[email protected]>
Date: Tue, 16 Jul 2013 23:01:20 -0700

Quoted 7 lines

SG mode is not currently supported by netvsc, so remove this flag for now. Otherwise, it will be unconditionally enabled by commit ec5f0615642
"Kill link between CSUM and SG features"
Previously, the SG feature is disabled because CSUM is not set here.

Applied and queued up for -stable, thanks.

#2 lore raw
In reply to Haiyang Zhang
Quoted 10 lines

-----Original Message-----
From: Haiyang Zhang [mailto:[email protected]]
Sent: Wednesday, July 17, 2013 2:01 AM
To: [email protected]; [email protected]
Cc: Haiyang Zhang; KY Srinivasan; [email protected]; [email protected]; linux- [email protected]; [email protected]
Subject: [PATCH net] hyperv: Fix the NETIF_F_SG flag setting in netvsc

Quoted 7 lines

SG mode is not currently supported by netvsc, so remove this flag for now. Otherwise, it will be unconditionally enabled by commit ec5f0615642
"Kill link between CSUM and SG features"
Previously, the SG feature is disabled because CSUM is not set here.

We would need to apply this patch to 3.9 and 3.10 as well that are currently broken.

K. Y

Quoted 23 lines
---
 drivers/net/hyperv/netvsc_drv.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/hyperv/netvsc_drv.c +2 -3
index 4dccead..23a0fff 100644
@@ -431,8 +431,8 @@ static int netvsc_probe(struct hv_device *dev,
 	net->netdev_ops = &device_ops;
 
 	/* TODO: Add GSO and Checksum offload */
-	net->hw_features = NETIF_F_SG;
-	net->features = NETIF_F_SG | NETIF_F_HW_VLAN_CTAG_TX;
+	net->hw_features = 0;
+	net->features = NETIF_F_HW_VLAN_CTAG_TX;
 
 	SET_ETHTOOL_OPS(net, &ethtool_ops);
 	SET_NETDEV_DEV(net, &dev->device);
--

1.7.4.1

maintainer
#3 lore raw

From: KY Srinivasan <[email protected]>
Date: Wed, 17 Jul 2013 11:40:41 +0000

Quoted 15 lines
Quoted 15 lines

-----Original Message-----
From: Haiyang Zhang [mailto:[email protected]]
Sent: Wednesday, July 17, 2013 2:01 AM
To: [email protected]; [email protected]
Cc: Haiyang Zhang; KY Srinivasan; [email protected]; [email protected]; linux- [email protected]; [email protected]
Subject: [PATCH net] hyperv: Fix the NETIF_F_SG flag setting in netvsc

SG mode is not currently supported by netvsc, so remove this flag for now. Otherwise, it will be unconditionally enabled by commit ec5f0615642
"Kill link between CSUM and SG features"
Previously, the SG feature is disabled because CSUM is not set here.

Quoted 4 lines
Quoted 2 lines

We would need to apply this patch to 3.9 and 3.10 as well that are currently broken.

I have already queued this patch up for -stable submission.