Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: fe6cc55 ("net: ip, ipv6: handle gso skbs in forwarding path") Cc: Eric Dumazet <[email protected]> Reported-by: Tobias Brunner <[email protected]> Signed-off-by: Florian Westphal <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information