Commit 193e0707 authored by Ben Hutchings's avatar Ben Hutchings Committed by Thadeu Lima de Souza Cascardo

netvsc: Set maximum GSO size in the right place

BugLink: http://bugs.launchpad.net/bugs/1664960

Commit a50af86d "netvsc: reduce maximum GSO size" was wrongly
backported to 4.4-stable.  The maximum size needs to be set before the
net device is registered, in netvsc_probe().
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
Signed-off-by: default avatarThadeu Lima de Souza Cascardo <cascardo@canonical.com>
parent 72212eec
......@@ -804,7 +804,6 @@ static int netvsc_set_channels(struct net_device *net,
}
goto recover;
}
netif_set_gso_max_size(net, NETVSC_GSO_MAX_SIZE);
out:
netvsc_open(net);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment