Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Haiyang Zhang and committed by
David S. Miller
f4570820 ae8e9c5a

+2 -2
+2 -2
drivers/net/hyperv/netvsc_drv.c
··· 431 431 net->netdev_ops = &device_ops; 432 432 433 433 /* TODO: Add GSO and Checksum offload */ 434 - net->hw_features = NETIF_F_SG; 435 - net->features = NETIF_F_SG | NETIF_F_HW_VLAN_CTAG_TX; 434 + net->hw_features = 0; 435 + net->features = NETIF_F_HW_VLAN_CTAG_TX; 436 436 437 437 SET_ETHTOOL_OPS(net, &ethtool_ops); 438 438 SET_NETDEV_DEV(net, &dev->device);