]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: Fix broken RTO-doubling for data retransmits
authorVlad Yasevich <vladislav.yasevich@hp.com>
Mon, 2 Mar 2009 09:46:14 +0000 (09:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Mar 2009 06:49:18 +0000 (22:49 -0800)
commit53f7ddb5156712fb5c03e8bc0a0ba66b86587821
tree52b66988e7f49c644731acfa616afe9b4e1501c1
parent15805ea42d27b3d3f9dfa5593e0ecce64feac715
sctp: Fix broken RTO-doubling for data retransmits

Commit 1a77344696c1d66d0dc9ba8ae01563474db6f3f8
(sctp: Fix the RTO-doubling on idle-link heartbeats)
broke the RTO doubling for data retransmits.  If the
heartbeat was sent before the data T3-rtx time, the
the RTO will not double upon the T3-rtx expiration.
Distingish between the operations by passing an argument
to the function.

Additionally, Wei Youngjun pointed out that our treatment
of requested HEARTBEATS and timer HEARTBEATS is the same
wrt resetting congestion window.  That needs to be separated,
since user requested HEARTBEATS should not treat the link
as idle.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/command.h
net/sctp/sm_sideeffect.c
net/sctp/sm_statefuns.c