Avoid sending small segments by making sure that cwnd is usually
calculated in full (data) segment sizes. Especially during loss
recovery and retransmission scenarios.
An alternative approach, and possibly more effective, could be to
ensure in tcp_output, that small segments are only sent, when ACKNOW
is set, or cwnd would allow sending the entire send buffer (but the
final segment being smaller than MSS).