sctp: Generate SACKs when actually sending outbound DATA
authorVlad Yasevich <vladislav.yasevich@hp.com>
Fri, 7 Aug 2009 14:43:07 +0000 (10:43 -0400)
committerVlad Yasevich <vladislav.yasevich@hp.com>
Fri, 4 Sep 2009 22:20:56 +0000 (18:20 -0400)
commite83963b769a2c38b436f5dcf82309f5cbc2f6012
tree682a21fa15fd49e22e11d4a64cfea6771b3b5d94
parent3e62abf92f34d75fe22352d8d102e3cd2755804d
sctp: Generate SACKs when actually sending outbound DATA

We are now trying to bundle SACKs when we have outbound
DATA to send.  However, there are situations where this
outbound DATA will not be sent (due to congestion or
available window).  In such cases it's ok to wait for the
timer to expire.  This patch refactors the sending code
so that betfore attempting to bundle the SACK we check
to see if the DATA will actually be transmitted.

Based on eirlier works for Doug Graham <dgraham@nortel.com> and
Wei Youngjun <yjwei@cn.fujitsu.com>.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
net/sctp/output.c