]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: Restore 'resent' bit to avoid retransmitted chunks for RTT measurements
authorXufeng Zhang <xufeng.zhang@windriver.com>
Mon, 25 Nov 2013 03:26:57 +0000 (11:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Nov 2013 23:29:58 +0000 (18:29 -0500)
commit86ed80eb1be7593bc8768d266ddee546c5d23ef7
treeb546ca46b835a418c3e80d55c3fdcb86dade25b3
parent55f3a1fb3229e5006a5ad1956d3db9b9428ebc7a
sctp: Restore 'resent' bit to avoid retransmitted chunks for RTT measurements

Currently retransmitted DATA chunks could also be used for
RTT measurements since there are no flag to identify whether
the transmitted DATA chunk is a new one or a retransmitted one.
This problem is introduced by commit ff9bcb8a4 ("sctp: remove
'resent' bit from the chunk") which inappropriately removed the
'resent' bit completely, instead of doing this, we should set
the resent bit only for the retransmitted DATA chunks.

Signed-off-by: Xufeng Zhang <xufeng.zhang@windriver.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h
net/sctp/output.c
net/sctp/outqueue.c