[PATCH] net: sctp: set chunk->tsn_gap_acked at the end of cycle

2013-11-21 Thread Chang Xiangzhong
tsn_gap_acked is an important state flag in chunk, which indicates if the chunk has been acked in gap reports before. SFR-CACC algorithm depends on this variable. So set this at the end of each iteration, otherwise the SFR-CACC algorithm would never be toggled. Signed-off-by: Chang Xiangzhong

[PATCH] net: sctp: recover a tranport when an ack comes

2013-11-14 Thread Chang Xiangzhong
ns < transport->error_count < tranport->pathmaxrtx) transport->state = SCTP_PF //partial failure When a heartbeat-ack comes or conventional ack acknowledged its availability, transport->state = SCTP_ON Signed-off-by: Chang Xiangzhong Fixes: 5aa93bcf66f ("sctp: Impl

[PATCH 1/1] net: sctp: bug fixing when sctp path recovers

2013-11-12 Thread Chang Xiangzhong
Look for the __two__ most recently used path/transport and set to active_path and retran_path respectively Signed-off-by: changxiangzh...@gmail.com --- net/sctp/associola.c |4 1 file changed, 4 insertions(+) diff --git a/net/sctp/associola.c b/net/sctp/associola.c index ab67efc..070011

[PATCH v3] net: sctp: fix a cacc_saw_newack missetting issue

2013-10-16 Thread Chang Xiangzhong
For for each TSN t being newly acked (Not only cumulatively, but also SELECTIVELY) cacc_saw_newack should be set to 1. Signed-off-by: Xiangzhong Chang --- net/sctp/outqueue.c | 53 --- 1 file changed, 25 insertions(+), 28 deletions(-) diff --git

[PATCH V2] For for each TSN t being newly acked (Not only cumulatively, but also SELECTIVELY) cacc_saw_newack should be set to 1.

2013-10-15 Thread Chang Xiangzhong
Signed-off-by: Xiangzhong Chang --- net/sctp/outqueue.c | 76 --- 1 file changed, 35 insertions(+), 41 deletions(-) diff --git a/net/sctp/outqueue.c b/net/sctp/outqueue.c index 94df758..84ef3b8 100644 --- a/net/sctp/outqueue.c +++ b/net/sctp/outq

[PATCH] For for each TSN t being newly acked (Not only cumulatively, but also SELECTIVELY) cacc_saw_newack should be set to 1.

2013-10-15 Thread Chang Xiangzhong
Signed-off-by: Xiangzhong Chang --- net/sctp/outqueue.c | 142 --- 1 file changed, 68 insertions(+), 74 deletions(-) diff --git a/net/sctp/outqueue.c b/net/sctp/outqueue.c index 94df758..f10d848 100644 --- a/net/sctp/outqueue.c +++ b/net/sctp/outq

[PATCH] net: sctp: fix a cacc_saw_newack missetting issue

2013-10-14 Thread Chang Xiangzhong
For for each TSN t being newly acked (Not only cumulatively, but also SELECTIVELY) cacc_saw_newack should be set to 1. Signed-off-by: Xiangzhong Chang --- net/sctp/outqueue.c | 42 +- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/net/sc