netvsc: reduce maximum GSO size
authorstephen hemminger <stephen@networkplumber.org>
Tue, 6 Dec 2016 21:43:54 +0000 (13:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Dec 2016 18:13:41 +0000 (13:13 -0500)
commita50af86dd49ee1851d1ccf06dd0019c05b95e297
tree257945e0bd44a7b985f0bd5f76a96c5db4debbff
parent74685b08fbb26ff5b8448fabe0941a53269dd33e
netvsc: reduce maximum GSO size

Hyper-V (and Azure) support using NVGRE which requires some extra space
for encapsulation headers. Because of this the largest allowed TSO
packet is reduced.

For older releases, hard code a fixed reduced value.  For next release,
there is a better solution which uses result of host offload
negotiation.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c