]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netvsc: reduce maximum GSO size
authorstephen hemminger <stephen@networkplumber.org>
Tue, 6 Dec 2016 21:43:54 +0000 (13:43 -0800)
committerJiri Slaby <jslaby@suse.cz>
Thu, 26 Jan 2017 16:40:22 +0000 (17:40 +0100)
commitfa5e29d5d65fd6eb4616125410f144e7dae26707
tree7106b3a14c439f17026e7a5310e89a5f96cd42f2
parent6e89266fa6eedba557c0a602acb4f60ff5a1543c
netvsc: reduce maximum GSO size

[ Upstream commit a50af86dd49ee1851d1ccf06dd0019c05b95e297 ]

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/net/hyperv/netvsc_drv.c