[SCTP]: Reset some transport and association variables on restart
authorVlad Yasevich <vladislav.yasevich@hp.com>
Tue, 20 Mar 2007 00:02:30 +0000 (17:02 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 20 Mar 2007 07:09:45 +0000 (00:09 -0700)
commit749bf9215ed1a8b6edb4bb03693c2b62c6b9c2a4
treed5656c441181fddef41392a4aa07f54e56487312
parentfb78525ae1b75bfac1da600ceb008aef4d293649
[SCTP]: Reset some transport and association variables on restart

If the association has been restarted, we need to reset the
transport congestion variables as well as accumulated error
counts and CACC variables.  If we do not, the association
will use the wrong values and may terminate prematurely.

This was found with a scenario where the peer restarted
the association when lksctp was in the last HB timeout for
its association.  The restart happened, but the error counts
have not been reset and when the timeout occurred, a newly
restarted association was terminated due to excessive
retransmits.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h
net/sctp/associola.c
net/sctp/transport.c