diff options
author | Michio Honda <micchie@sfc.wide.ad.jp> | 2011-06-16 22:03:23 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-08 15:11:29 -0500 |
commit | ddc4bbee6ef1ed20314be3888dd39ceefe233e79 (patch) | |
tree | d52c0d7e64e83dd8f17fd0340c3c62402c7cd7ce /net/sctp/transport.c | |
parent | 8ce120f11898c921329a5f618d01dcc1e8e69cac (diff) |
sctp: fasthandoff with ASCONF at mobile-node
Fast retransmission after changing the last address
with ASCONF negotiation
Signed-off-by: Michio Honda <micchie@sfc.wide.ad.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/transport.c')
-rw-r--r-- | net/sctp/transport.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net/sctp/transport.c b/net/sctp/transport.c index 394c57ca2f54..3889330b7b04 100644 --- a/net/sctp/transport.c +++ b/net/sctp/transport.c | |||
@@ -641,3 +641,19 @@ void sctp_transport_reset(struct sctp_transport *t) | |||
641 | t->cacc.next_tsn_at_change = 0; | 641 | t->cacc.next_tsn_at_change = 0; |
642 | t->cacc.cacc_saw_newack = 0; | 642 | t->cacc.cacc_saw_newack = 0; |
643 | } | 643 | } |
644 | |||
645 | /* Schedule retransmission on the given transport */ | ||
646 | void sctp_transport_immediate_rtx(struct sctp_transport *t) | ||
647 | { | ||
648 | /* Stop pending T3_rtx_timer */ | ||
649 | if (timer_pending(&t->T3_rtx_timer)) { | ||
650 | (void)del_timer(&t->T3_rtx_timer); | ||
651 | sctp_transport_put(t); | ||
652 | } | ||
653 | sctp_retransmit(&t->asoc->outqueue, t, SCTP_RTXR_T3_RTX); | ||
654 | if (!timer_pending(&t->T3_rtx_timer)) { | ||
655 | if (!mod_timer(&t->T3_rtx_timer, jiffies + t->rto)) | ||
656 | sctp_transport_hold(t); | ||
657 | } | ||
658 | return; | ||
659 | } | ||