diff options
author | Haiyang Zhang <haiyangz@microsoft.com> | 2019-09-06 02:23:07 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-07 18:42:52 +0300 |
commit | b441f79532ec13dc82d05c55badc4da1f62a6141 (patch) | |
tree | e79292f0b00ebbed8595de82e95d6ad9a8638d67 /drivers/net/hyperv/netvsc_drv.c | |
parent | 22c63d9c9461b280df608f620ad2d18d984c11a9 (diff) | |
download | linux-b441f79532ec13dc82d05c55badc4da1f62a6141.tar.xz |
hv_netvsc: Allow scatter-gather feature to be tunable
In a previous patch, the NETIF_F_SG was missing after the code changes.
That caused the SG feature to be "fixed". This patch includes it into
hw_features, so it is tunable again.
Fixes: 23312a3be999 ("netvsc: negotiate checksum and segmentation parameters")
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/netvsc_drv.c')
-rw-r--r-- | drivers/net/hyperv/netvsc_drv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index 0a6cd2f1111f..1f1192ebcbbd 100644 --- a/drivers/net/hyperv/netvsc_drv.c +++ b/drivers/net/hyperv/netvsc_drv.c @@ -2313,8 +2313,8 @@ static int netvsc_probe(struct hv_device *dev, /* hw_features computed in rndis_netdev_set_hwcaps() */ net->features = net->hw_features | - NETIF_F_HIGHDMA | NETIF_F_SG | - NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_HW_VLAN_CTAG_RX; + NETIF_F_HIGHDMA | NETIF_F_HW_VLAN_CTAG_TX | + NETIF_F_HW_VLAN_CTAG_RX; net->vlan_features = net->features; netdev_lockdep_set_classes(net); |