linux-sctp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sctp: assure at least one T3-rtx timer is running if a FORWARD
@ 2010-01-18  5:30 Wei Yongjun
  2010-01-19 15:37 ` [PATCH] sctp: assure at least one T3-rtx timer is running if Vlad Yasevich
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2010-01-18  5:30 UTC (permalink / raw)
  To: linux-sctp

PR-SCTP extension section 3.5 Sender Side Implementation of PR-SCTP:
  C5) If a FORWARD TSN is sent, the sender MUST assure that at
      least one T3-rtx timer is running.

So this patch fix to assure at least one T3-rtx timer is running
if a FORWARD TSN is or will to sent.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
---
 net/sctp/outqueue.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/net/sctp/outqueue.c b/net/sctp/outqueue.c
index d36aea4..67ec3ba 100644
--- a/net/sctp/outqueue.c
+++ b/net/sctp/outqueue.c
@@ -939,6 +939,13 @@ static int sctp_outq_flush(struct sctp_outq *q, int rtx_timeout)
 				goto sctp_flush_out;
 		}
 
+		/* PR-SCTP C5) If a FORWARD TSN is sent, the sender MUST assure
+		 * that at least one T3-rtx timer is running.
+		 */
+		if (!list_empty(&q->abandoned) &&
+		    list_empty(&q->out_chunk_list))
+			sctp_transport_reset_timers(transport, 0);
+
 		/* Apply Max.Burst limitation to the current transport in
 		 * case it will be used for new data.  We are going to
 		 * rest it before we return, but we want to apply the limit
-- 
1.6.2.2



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] sctp: assure at least one T3-rtx timer is running if
  2010-01-18  5:30 [PATCH] sctp: assure at least one T3-rtx timer is running if a FORWARD Wei Yongjun
@ 2010-01-19 15:37 ` Vlad Yasevich
  0 siblings, 0 replies; 2+ messages in thread
From: Vlad Yasevich @ 2010-01-19 15:37 UTC (permalink / raw)
  To: linux-sctp



Wei Yongjun wrote:
> PR-SCTP extension section 3.5 Sender Side Implementation of PR-SCTP:
>   C5) If a FORWARD TSN is sent, the sender MUST assure that at
>       least one T3-rtx timer is running.
> 
> So this patch fix to assure at least one T3-rtx timer is running
> if a FORWARD TSN is or will to sent.
> 
> Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
> ---
>  net/sctp/outqueue.c |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
> 
> diff --git a/net/sctp/outqueue.c b/net/sctp/outqueue.c
> index d36aea4..67ec3ba 100644
> --- a/net/sctp/outqueue.c
> +++ b/net/sctp/outqueue.c
> @@ -939,6 +939,13 @@ static int sctp_outq_flush(struct sctp_outq *q, int rtx_timeout)
>  				goto sctp_flush_out;
>  		}
>  
> +		/* PR-SCTP C5) If a FORWARD TSN is sent, the sender MUST assure
> +		 * that at least one T3-rtx timer is running.
> +		 */
> +		if (!list_empty(&q->abandoned) &&
> +		    list_empty(&q->out_chunk_list))
> +			sctp_transport_reset_timers(transport, 0);
> +
>  		/* Apply Max.Burst limitation to the current transport in
>  		 * case it will be used for new data.  We are going to
>  		 * rest it before we return, but we want to apply the limit

'transport' may be NULL or may point at a retransmit path, not the path
FWD-TSN was sent on.

It might be better to do this when we queue the FWD-TSN chunk.

-vlad


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-19 15:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-18  5:30 [PATCH] sctp: assure at least one T3-rtx timer is running if a FORWARD Wei Yongjun
2010-01-19 15:37 ` [PATCH] sctp: assure at least one T3-rtx timer is running if Vlad Yasevich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).