From: Florian Westphal Date: Wed, 9 Apr 2014 08:28:50 +0000 (+0200) Subject: net: core: don't account for udp header size when computing seglen X-Git-Tag: v3.15-rc1~8^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d39d589bb76ee8a1c6cde6822006ae0053decff;p=pandora-kernel.git net: core: don't account for udp header size when computing seglen In case of tcp, gso_size contains the tcpmss. For UFO (udp fragmentation offloading) skbs, gso_size is the fragment payload size, i.e. we must not account for udp header size. Otherwise, when using virtio drivers, a to-be-forwarded UFO GSO packet will be needlessly fragmented in the forward path, because we think its individual segments are too large for the outgoing link. Fixes: fe6cc55f3a9a053 ("net: ip, ipv6: handle gso skbs in forwarding path") Cc: Eric Dumazet Reported-by: Tobias Brunner Signed-off-by: Florian Westphal Signed-off-by: David S. Miller --- Reading git-diff-tree failed