SCTP: Do not retransmit chunks that are newer then rtt.

When performing a retransmit, do not include the chunk if
it was sent less then 1 rtt ago. The reason is that we
may receive the SACK very soon and wouldn't retransmit.
Suggested by Randy Stewart.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>

+7
+7
net/sctp/outqueue.c
··· 421 */ 422 if ((fast_retransmit && (chunk->fast_retransmit > 0)) || 423 (!fast_retransmit && !chunk->tsn_gap_acked)) { 424 /* RFC 2960 6.2.1 Processing a Received SACK 425 * 426 * C) Any time a DATA chunk is marked for
··· 421 */ 422 if ((fast_retransmit && (chunk->fast_retransmit > 0)) || 423 (!fast_retransmit && !chunk->tsn_gap_acked)) { 424 + /* If this chunk was sent less then 1 rto ago, do not 425 + * retransmit this chunk, but give the peer time 426 + * to acknowlege it. 427 + */ 428 + if ((jiffies - chunk->sent_at) < transport->rto) 429 + continue; 430 + 431 /* RFC 2960 6.2.1 Processing a Received SACK 432 * 433 * C) Any time a DATA chunk is marked for