summaryrefslogtreecommitdiffstats
path: root/contrib/diff/lib
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2010-09-17 22:05:27 +0000
committerandre <andre@FreeBSD.org>2010-09-17 22:05:27 +0000
commitd63aabd58eddbaccc246f798cd71d9c281733471 (patch)
treefff156acf527821d6f77e55a8dc4cdace5baf91a /contrib/diff/lib
parent6117b822d5d24c31d7574c1f15095f2497316c1a (diff)
downloadFreeBSD-src-d63aabd58eddbaccc246f798cd71d9c281733471.zip
FreeBSD-src-d63aabd58eddbaccc246f798cd71d9c281733471.tar.gz
Rearrange the TSO code to make it more readable and to clearly
separate the decision logic, of whether we can do TSO, and the calculation of the burst length into two distinct parts. Change the way the TSO burst length calculation is done. While TSO could do bursts of 65535 bytes that can't be represented in ip_len together with the IP and TCP header. Account for that and use IP_MAXPACKET instead of TCP_MAXWIN as base constant (both have the same value of 64K). When more data is available prevent less than MSS sized segments from being sent during the current TSO burst. Add two more KASSERTs to ensure the integrity of the packets. Tested by: Ben Wilber <ben-at-desync com> MFC after: 10 days
Diffstat (limited to 'contrib/diff/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud