* [PATCH] net: sctp: bug-fixing: retran_path not set properly after transports recovering (v2)
@ 2013-11-13 21:54 ` Chang Xiangzhong
0 siblings, 0 replies; 18+ messages in thread
From: Chang Xiangzhong @ 2013-11-13 21:54 UTC (permalink / raw)
To: vyasevich; +Cc: nhorman, davem, linux-sctp, netdev, Chang Xiangzhong
When a transport recovers due to the new coming sack, SCTP should
iterate all of its transport_list to locate the __two__ most recently used
transport and set to active_path and retran_path respectively. The exising
code does not find the two properly - In case of the following list:
[most-recent] -> [2nd-most-recent] -> ...
Both active_path and retran_path would be set to the 1st element.
The bug happens when:
1) multi-homing
2) failure/partial_failure transport recovers
Both active_path and retran_path would be set to the same most-recent one, in
other words, retran_path would not take its role - an end user might not even
notice this issue.
Signed-off-by: Chang Xiangzhong <changxiangzhong@gmail.com>
---
net/sctp/associola.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/net/sctp/associola.c b/net/sctp/associola.c
index ab67efc..a7fc856 100644
--- a/net/sctp/associola.c
+++ b/net/sctp/associola.c
@@ -913,11 +913,12 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,
if (!first || t->last_time_heard > first->last_time_heard) {
second = first;
first = t;
- }
- if (!second || t->last_time_heard > second->last_time_heard)
+ } else if (!second ||
+ t->last_time_heard > second->last_time_heard)
second = t;
}
+
/* RFC 2960 6.4 Multi-Homed SCTP Endpoints
*
* By default, an endpoint should always transmit to the
@@ -935,6 +936,8 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,
first = asoc->peer.primary_path;
}
+ if (!second)
+ second = first;
/* If we failed to find a usable transport, just camp on the
* primary, even if it is inactive.
*/
--
1.7.9.5
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH] net: sctp: bug-fixing: retran_path not set properly after transports recovering (v2)
@ 2013-11-13 21:54 ` Chang Xiangzhong
0 siblings, 0 replies; 18+ messages in thread
From: Chang Xiangzhong @ 2013-11-13 21:54 UTC (permalink / raw)
To: vyasevich; +Cc: nhorman, davem, linux-sctp, netdev, Chang Xiangzhong
When a transport recovers due to the new coming sack, SCTP should
iterate all of its transport_list to locate the __two__ most recently used
transport and set to active_path and retran_path respectively. The exising
code does not find the two properly - In case of the following list:
[most-recent] -> [2nd-most-recent] -> ...
Both active_path and retran_path would be set to the 1st element.
The bug happens when:
1) multi-homing
2) failure/partial_failure transport recovers
Both active_path and retran_path would be set to the same most-recent one, in
other words, retran_path would not take its role - an end user might not even
notice this issue.
Signed-off-by: Chang Xiangzhong <changxiangzhong@gmail.com>
---
net/sctp/associola.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/net/sctp/associola.c b/net/sctp/associola.c
index ab67efc..a7fc856 100644
--- a/net/sctp/associola.c
+++ b/net/sctp/associola.c
@@ -913,11 +913,12 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,
if (!first || t->last_time_heard > first->last_time_heard) {
second = first;
first = t;
- }
- if (!second || t->last_time_heard > second->last_time_heard)
+ } else if (!second ||
+ t->last_time_heard > second->last_time_heard)
second = t;
}
+
/* RFC 2960 6.4 Multi-Homed SCTP Endpoints
*
* By default, an endpoint should always transmit to the
@@ -935,6 +936,8 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,
first = asoc->peer.primary_path;
}
+ if (!second)
+ second = first;
/* If we failed to find a usable transport, just camp on the
* primary, even if it is inactive.
*/
--
1.7.9.5
^ permalink raw reply related [flat|nested] 18+ messages in thread
* Re: [PATCH] net: sctp: bug-fixing: retran_path not set properly after transports recovering (v2)
2013-11-13 21:54 ` Chang Xiangzhong
@ 2013-11-13 22:13 ` Vlad Yasevich
-1 siblings, 0 replies; 18+ messages in thread
From: Vlad Yasevich @ 2013-11-13 22:13 UTC (permalink / raw)
To: Chang Xiangzhong; +Cc: nhorman, davem, linux-sctp, netdev
On 11/13/2013 04:54 PM, Chang Xiangzhong wrote:
> When a transport recovers due to the new coming sack, SCTP should
> iterate all of its transport_list to locate the __two__ most recently used
> transport and set to active_path and retran_path respectively. The exising
> code does not find the two properly - In case of the following list:
>
> [most-recent] -> [2nd-most-recent] -> ...
>
> Both active_path and retran_path would be set to the 1st element.
>
> The bug happens when:
> 1) multi-homing
> 2) failure/partial_failure transport recovers
> Both active_path and retran_path would be set to the same most-recent one, in
> other words, retran_path would not take its role - an end user might not even
> notice this issue.
>
> Signed-off-by: Chang Xiangzhong <changxiangzhong@gmail.com>
> ---
> net/sctp/associola.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/net/sctp/associola.c b/net/sctp/associola.c
> index ab67efc..a7fc856 100644
> --- a/net/sctp/associola.c
> +++ b/net/sctp/associola.c
> @@ -913,11 +913,12 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,
> if (!first || t->last_time_heard > first->last_time_heard) {
> second = first;
> first = t;
> - }
> - if (!second || t->last_time_heard > second->last_time_heard)
> + } else if (!second ||
> + t->last_time_heard > second->last_time_heard)
Align with !second.
> second = t;
> }
>
> +
Spurious new line.
-vlad
> /* RFC 2960 6.4 Multi-Homed SCTP Endpoints
> *
> * By default, an endpoint should always transmit to the
> @@ -935,6 +936,8 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,
> first = asoc->peer.primary_path;
> }
>
> + if (!second)
> + second = first;
> /* If we failed to find a usable transport, just camp on the
> * primary, even if it is inactive.
> */
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH] net: sctp: bug-fixing: retran_path not set properly after transports recovering (v2)
@ 2013-11-13 22:13 ` Vlad Yasevich
0 siblings, 0 replies; 18+ messages in thread
From: Vlad Yasevich @ 2013-11-13 22:13 UTC (permalink / raw)
To: Chang Xiangzhong; +Cc: nhorman, davem, linux-sctp, netdev
On 11/13/2013 04:54 PM, Chang Xiangzhong wrote:
> When a transport recovers due to the new coming sack, SCTP should
> iterate all of its transport_list to locate the __two__ most recently used
> transport and set to active_path and retran_path respectively. The exising
> code does not find the two properly - In case of the following list:
>
> [most-recent] -> [2nd-most-recent] -> ...
>
> Both active_path and retran_path would be set to the 1st element.
>
> The bug happens when:
> 1) multi-homing
> 2) failure/partial_failure transport recovers
> Both active_path and retran_path would be set to the same most-recent one, in
> other words, retran_path would not take its role - an end user might not even
> notice this issue.
>
> Signed-off-by: Chang Xiangzhong <changxiangzhong@gmail.com>
> ---
> net/sctp/associola.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/net/sctp/associola.c b/net/sctp/associola.c
> index ab67efc..a7fc856 100644
> --- a/net/sctp/associola.c
> +++ b/net/sctp/associola.c
> @@ -913,11 +913,12 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,
> if (!first || t->last_time_heard > first->last_time_heard) {
> second = first;
> first = t;
> - }
> - if (!second || t->last_time_heard > second->last_time_heard)
> + } else if (!second ||
> + t->last_time_heard > second->last_time_heard)
Align with !second.
> second = t;
> }
>
> +
Spurious new line.
-vlad
> /* RFC 2960 6.4 Multi-Homed SCTP Endpoints
> *
> * By default, an endpoint should always transmit to the
> @@ -935,6 +936,8 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,
> first = asoc->peer.primary_path;
> }
>
> + if (!second)
> + second = first;
> /* If we failed to find a usable transport, just camp on the
> * primary, even if it is inactive.
> */
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* [PATCH] net: sctp: bug-fixing: retran_path not set properly after transports recovering (v3)
2013-11-13 21:54 ` Chang Xiangzhong
@ 2013-11-13 23:58 ` Chang Xiangzhong
-1 siblings, 0 replies; 18+ messages in thread
From: Chang Xiangzhong @ 2013-11-13 23:58 UTC (permalink / raw)
To: vyasevich; +Cc: nhorman, davem, linux-sctp, netdev, Chang Xiangzhong
When a transport recovers due to the new coming sack, SCTP should
iterate all of its transport_list to locate the __two__ most recently used
transport and set to active_path and retran_path respectively. The exising
code does not find the two properly - In case of the following list:
[most-recent] -> [2nd-most-recent] -> ...
Both active_path and retran_path would be set to the 1st element.
The bug happens when:
1) multi-homing
2) failure/partial_failure transport recovers
Both active_path and retran_path would be set to the same most-recent one, in
other words, retran_path would not take its role - an end user might not even
notice this issue.
Signed-off-by: Chang Xiangzhong <changxiangzhong@gmail.com>
---
net/sctp/associola.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/net/sctp/associola.c b/net/sctp/associola.c
index ab67efc..8f26276 100644
--- a/net/sctp/associola.c
+++ b/net/sctp/associola.c
@@ -913,8 +913,8 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,
if (!first || t->last_time_heard > first->last_time_heard) {
second = first;
first = t;
- }
- if (!second || t->last_time_heard > second->last_time_heard)
+ } else if (!second ||
+ t->last_time_heard > second->last_time_heard)
second = t;
}
@@ -935,6 +935,8 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,
first = asoc->peer.primary_path;
}
+ if (!second)
+ second = first;
/* If we failed to find a usable transport, just camp on the
* primary, even if it is inactive.
*/
--
1.7.9.5
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH] net: sctp: bug-fixing: retran_path not set properly after transports recovering (v3)
@ 2013-11-13 23:58 ` Chang Xiangzhong
0 siblings, 0 replies; 18+ messages in thread
From: Chang Xiangzhong @ 2013-11-13 23:58 UTC (permalink / raw)
To: vyasevich; +Cc: nhorman, davem, linux-sctp, netdev, Chang Xiangzhong
When a transport recovers due to the new coming sack, SCTP should
iterate all of its transport_list to locate the __two__ most recently used
transport and set to active_path and retran_path respectively. The exising
code does not find the two properly - In case of the following list:
[most-recent] -> [2nd-most-recent] -> ...
Both active_path and retran_path would be set to the 1st element.
The bug happens when:
1) multi-homing
2) failure/partial_failure transport recovers
Both active_path and retran_path would be set to the same most-recent one, in
other words, retran_path would not take its role - an end user might not even
notice this issue.
Signed-off-by: Chang Xiangzhong <changxiangzhong@gmail.com>
---
net/sctp/associola.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/net/sctp/associola.c b/net/sctp/associola.c
index ab67efc..8f26276 100644
--- a/net/sctp/associola.c
+++ b/net/sctp/associola.c
@@ -913,8 +913,8 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,
if (!first || t->last_time_heard > first->last_time_heard) {
second = first;
first = t;
- }
- if (!second || t->last_time_heard > second->last_time_heard)
+ } else if (!second ||
+ t->last_time_heard > second->last_time_heard)
second = t;
}
@@ -935,6 +935,8 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,
first = asoc->peer.primary_path;
}
+ if (!second)
+ second = first;
/* If we failed to find a usable transport, just camp on the
* primary, even if it is inactive.
*/
--
1.7.9.5
^ permalink raw reply related [flat|nested] 18+ messages in thread
* Re: [PATCH] net: sctp: bug-fixing: retran_path not set properly after transports recovering (v3)
2013-11-13 23:58 ` Chang Xiangzhong
@ 2013-11-14 1:42 ` Vlad Yasevich
-1 siblings, 0 replies; 18+ messages in thread
From: Vlad Yasevich @ 2013-11-14 1:42 UTC (permalink / raw)
To: Chang Xiangzhong; +Cc: nhorman, davem, linux-sctp, netdev
On 11/13/2013 06:58 PM, Chang Xiangzhong wrote:
> When a transport recovers due to the new coming sack, SCTP should
> iterate all of its transport_list to locate the __two__ most recently used
> transport and set to active_path and retran_path respectively. The exising
> code does not find the two properly - In case of the following list:
>
> [most-recent] -> [2nd-most-recent] -> ...
>
> Both active_path and retran_path would be set to the 1st element.
>
> The bug happens when:
> 1) multi-homing
> 2) failure/partial_failure transport recovers
> Both active_path and retran_path would be set to the same most-recent one, in
> other words, retran_path would not take its role - an end user might not even
> notice this issue.
>
> Signed-off-by: Chang Xiangzhong <changxiangzhong@gmail.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
-vlad
> ---
> net/sctp/associola.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/net/sctp/associola.c b/net/sctp/associola.c
> index ab67efc..8f26276 100644
> --- a/net/sctp/associola.c
> +++ b/net/sctp/associola.c
> @@ -913,8 +913,8 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,
> if (!first || t->last_time_heard > first->last_time_heard) {
> second = first;
> first = t;
> - }
> - if (!second || t->last_time_heard > second->last_time_heard)
> + } else if (!second ||
> + t->last_time_heard > second->last_time_heard)
> second = t;
> }
>
> @@ -935,6 +935,8 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,
> first = asoc->peer.primary_path;
> }
>
> + if (!second)
> + second = first;
> /* If we failed to find a usable transport, just camp on the
> * primary, even if it is inactive.
> */
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH] net: sctp: bug-fixing: retran_path not set properly after transports recovering (v3)
@ 2013-11-14 1:42 ` Vlad Yasevich
0 siblings, 0 replies; 18+ messages in thread
From: Vlad Yasevich @ 2013-11-14 1:42 UTC (permalink / raw)
To: Chang Xiangzhong; +Cc: nhorman, davem, linux-sctp, netdev
On 11/13/2013 06:58 PM, Chang Xiangzhong wrote:
> When a transport recovers due to the new coming sack, SCTP should
> iterate all of its transport_list to locate the __two__ most recently used
> transport and set to active_path and retran_path respectively. The exising
> code does not find the two properly - In case of the following list:
>
> [most-recent] -> [2nd-most-recent] -> ...
>
> Both active_path and retran_path would be set to the 1st element.
>
> The bug happens when:
> 1) multi-homing
> 2) failure/partial_failure transport recovers
> Both active_path and retran_path would be set to the same most-recent one, in
> other words, retran_path would not take its role - an end user might not even
> notice this issue.
>
> Signed-off-by: Chang Xiangzhong <changxiangzhong@gmail.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
-vlad
> ---
> net/sctp/associola.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/net/sctp/associola.c b/net/sctp/associola.c
> index ab67efc..8f26276 100644
> --- a/net/sctp/associola.c
> +++ b/net/sctp/associola.c
> @@ -913,8 +913,8 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,
> if (!first || t->last_time_heard > first->last_time_heard) {
> second = first;
> first = t;
> - }
> - if (!second || t->last_time_heard > second->last_time_heard)
> + } else if (!second ||
> + t->last_time_heard > second->last_time_heard)
> second = t;
> }
>
> @@ -935,6 +935,8 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,
> first = asoc->peer.primary_path;
> }
>
> + if (!second)
> + second = first;
> /* If we failed to find a usable transport, just camp on the
> * primary, even if it is inactive.
> */
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH] net: sctp: bug-fixing: retran_path not set properly after transports recovering (v3)
2013-11-14 1:42 ` Vlad Yasevich
@ 2013-11-14 8:12 ` Chang
-1 siblings, 0 replies; 18+ messages in thread
From: Chang @ 2013-11-14 8:12 UTC (permalink / raw)
To: Vlad Yasevich; +Cc: nhorman, davem, linux-sctp, netdev
May I ask what shall I do next? Shall I send it to someone else to have
him/her merge it to the Linux source tree?
Cheers
On 11/14/2013 02:42 AM, Vlad Yasevich wrote:
> On 11/13/2013 06:58 PM, Chang Xiangzhong wrote:
>> When a transport recovers due to the new coming sack, SCTP should
>> iterate all of its transport_list to locate the __two__ most recently
>> used
>> transport and set to active_path and retran_path respectively. The
>> exising
>> code does not find the two properly - In case of the following list:
>>
>> [most-recent] -> [2nd-most-recent] -> ...
>>
>> Both active_path and retran_path would be set to the 1st element.
>>
>> The bug happens when:
>> 1) multi-homing
>> 2) failure/partial_failure transport recovers
>> Both active_path and retran_path would be set to the same most-recent
>> one, in
>> other words, retran_path would not take its role - an end user might
>> not even
>> notice this issue.
>>
>> Signed-off-by: Chang Xiangzhong <changxiangzhong@gmail.com>
>
> Acked-by: Vlad Yasevich <vyasevich@gmail.com>
>
> -vlad
>
>> ---
>> net/sctp/associola.c | 6 ++++--
>> 1 file changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/net/sctp/associola.c b/net/sctp/associola.c
>> index ab67efc..8f26276 100644
>> --- a/net/sctp/associola.c
>> +++ b/net/sctp/associola.c
>> @@ -913,8 +913,8 @@ void sctp_assoc_control_transport(struct
>> sctp_association *asoc,
>> if (!first || t->last_time_heard > first->last_time_heard) {
>> second = first;
>> first = t;
>> - }
>> - if (!second || t->last_time_heard > second->last_time_heard)
>> + } else if (!second ||
>> + t->last_time_heard > second->last_time_heard)
>> second = t;
>> }
>>
>> @@ -935,6 +935,8 @@ void sctp_assoc_control_transport(struct
>> sctp_association *asoc,
>> first = asoc->peer.primary_path;
>> }
>>
>> + if (!second)
>> + second = first;
>> /* If we failed to find a usable transport, just camp on the
>> * primary, even if it is inactive.
>> */
>>
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH] net: sctp: bug-fixing: retran_path not set properly after transports recovering (v3)
@ 2013-11-14 8:12 ` Chang
0 siblings, 0 replies; 18+ messages in thread
From: Chang @ 2013-11-14 8:12 UTC (permalink / raw)
To: Vlad Yasevich; +Cc: nhorman, davem, linux-sctp, netdev
May I ask what shall I do next? Shall I send it to someone else to have
him/her merge it to the Linux source tree?
Cheers
On 11/14/2013 02:42 AM, Vlad Yasevich wrote:
> On 11/13/2013 06:58 PM, Chang Xiangzhong wrote:
>> When a transport recovers due to the new coming sack, SCTP should
>> iterate all of its transport_list to locate the __two__ most recently
>> used
>> transport and set to active_path and retran_path respectively. The
>> exising
>> code does not find the two properly - In case of the following list:
>>
>> [most-recent] -> [2nd-most-recent] -> ...
>>
>> Both active_path and retran_path would be set to the 1st element.
>>
>> The bug happens when:
>> 1) multi-homing
>> 2) failure/partial_failure transport recovers
>> Both active_path and retran_path would be set to the same most-recent
>> one, in
>> other words, retran_path would not take its role - an end user might
>> not even
>> notice this issue.
>>
>> Signed-off-by: Chang Xiangzhong <changxiangzhong@gmail.com>
>
> Acked-by: Vlad Yasevich <vyasevich@gmail.com>
>
> -vlad
>
>> ---
>> net/sctp/associola.c | 6 ++++--
>> 1 file changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/net/sctp/associola.c b/net/sctp/associola.c
>> index ab67efc..8f26276 100644
>> --- a/net/sctp/associola.c
>> +++ b/net/sctp/associola.c
>> @@ -913,8 +913,8 @@ void sctp_assoc_control_transport(struct
>> sctp_association *asoc,
>> if (!first || t->last_time_heard > first->last_time_heard) {
>> second = first;
>> first = t;
>> - }
>> - if (!second || t->last_time_heard > second->last_time_heard)
>> + } else if (!second ||
>> + t->last_time_heard > second->last_time_heard)
>> second = t;
>> }
>>
>> @@ -935,6 +935,8 @@ void sctp_assoc_control_transport(struct
>> sctp_association *asoc,
>> first = asoc->peer.primary_path;
>> }
>>
>> + if (!second)
>> + second = first;
>> /* If we failed to find a usable transport, just camp on the
>> * primary, even if it is inactive.
>> */
>>
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH] net: sctp: bug-fixing: retran_path not set properly after transports recovering (v3)
2013-11-14 8:12 ` Chang
@ 2013-11-14 8:20 ` David Miller
-1 siblings, 0 replies; 18+ messages in thread
From: David Miller @ 2013-11-14 8:20 UTC (permalink / raw)
To: changxiangzhong; +Cc: vyasevich, nhorman, linux-sctp, netdev
From: Chang <changxiangzhong@gmail.com>
Date: Thu, 14 Nov 2013 09:12:37 +0100
> May I ask what shall I do next? Shall I send it to someone else to
> have him/her merge it to the Linux source tree?
I will apply your patch, you just need to be patient.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH] net: sctp: bug-fixing: retran_path not set properly after transports recovering (v3)
@ 2013-11-14 8:20 ` David Miller
0 siblings, 0 replies; 18+ messages in thread
From: David Miller @ 2013-11-14 8:20 UTC (permalink / raw)
To: changxiangzhong; +Cc: vyasevich, nhorman, linux-sctp, netdev
From: Chang <changxiangzhong@gmail.com>
Date: Thu, 14 Nov 2013 09:12:37 +0100
> May I ask what shall I do next? Shall I send it to someone else to
> have him/her merge it to the Linux source tree?
I will apply your patch, you just need to be patient.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH] net: sctp: bug-fixing: retran_path not set properly after transports recovering (v3)
2013-11-14 8:20 ` David Miller
@ 2013-11-14 8:20 ` Chang
-1 siblings, 0 replies; 18+ messages in thread
From: Chang @ 2013-11-14 8:20 UTC (permalink / raw)
To: David Miller; +Cc: vyasevich, nhorman, linux-sctp, netdev
So great! And It's a pleasure to work with all you guys!
On 11/14/2013 09:20 AM, David Miller wrote:
> I will apply your patch, you just need to be patient.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH] net: sctp: bug-fixing: retran_path not set properly after transports recovering (v3)
@ 2013-11-14 8:20 ` Chang
0 siblings, 0 replies; 18+ messages in thread
From: Chang @ 2013-11-14 8:20 UTC (permalink / raw)
To: David Miller; +Cc: vyasevich, nhorman, linux-sctp, netdev
So great! And It's a pleasure to work with all you guys!
On 11/14/2013 09:20 AM, David Miller wrote:
> I will apply your patch, you just need to be patient.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH] net: sctp: bug-fixing: retran_path not set properly after transports recovering (v3)
2013-11-13 23:58 ` Chang Xiangzhong
@ 2013-11-14 13:55 ` Neil Horman
-1 siblings, 0 replies; 18+ messages in thread
From: Neil Horman @ 2013-11-14 13:55 UTC (permalink / raw)
To: Chang Xiangzhong; +Cc: vyasevich, davem, linux-sctp, netdev
On Thu, Nov 14, 2013 at 12:58:26AM +0100, Chang Xiangzhong wrote:
> When a transport recovers due to the new coming sack, SCTP should
> iterate all of its transport_list to locate the __two__ most recently used
> transport and set to active_path and retran_path respectively. The exising
> code does not find the two properly - In case of the following list:
>
> [most-recent] -> [2nd-most-recent] -> ...
>
> Both active_path and retran_path would be set to the 1st element.
>
> The bug happens when:
> 1) multi-homing
> 2) failure/partial_failure transport recovers
> Both active_path and retran_path would be set to the same most-recent one, in
> other words, retran_path would not take its role - an end user might not even
> notice this issue.
>
> Signed-off-by: Chang Xiangzhong <changxiangzhong@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH] net: sctp: bug-fixing: retran_path not set properly after transports recovering (v3)
@ 2013-11-14 13:55 ` Neil Horman
0 siblings, 0 replies; 18+ messages in thread
From: Neil Horman @ 2013-11-14 13:55 UTC (permalink / raw)
To: Chang Xiangzhong; +Cc: vyasevich, davem, linux-sctp, netdev
On Thu, Nov 14, 2013 at 12:58:26AM +0100, Chang Xiangzhong wrote:
> When a transport recovers due to the new coming sack, SCTP should
> iterate all of its transport_list to locate the __two__ most recently used
> transport and set to active_path and retran_path respectively. The exising
> code does not find the two properly - In case of the following list:
>
> [most-recent] -> [2nd-most-recent] -> ...
>
> Both active_path and retran_path would be set to the 1st element.
>
> The bug happens when:
> 1) multi-homing
> 2) failure/partial_failure transport recovers
> Both active_path and retran_path would be set to the same most-recent one, in
> other words, retran_path would not take its role - an end user might not even
> notice this issue.
>
> Signed-off-by: Chang Xiangzhong <changxiangzhong@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH] net: sctp: bug-fixing: retran_path not set properly after transports recovering (v3)
2013-11-13 23:58 ` Chang Xiangzhong
@ 2013-11-14 21:36 ` David Miller
-1 siblings, 0 replies; 18+ messages in thread
From: David Miller @ 2013-11-14 21:36 UTC (permalink / raw)
To: changxiangzhong; +Cc: vyasevich, nhorman, linux-sctp, netdev
From: Chang Xiangzhong <changxiangzhong@gmail.com>
Date: Thu, 14 Nov 2013 00:58:26 +0100
> When a transport recovers due to the new coming sack, SCTP should
> iterate all of its transport_list to locate the __two__ most recently used
> transport and set to active_path and retran_path respectively. The exising
> code does not find the two properly - In case of the following list:
>
> [most-recent] -> [2nd-most-recent] -> ...
>
> Both active_path and retran_path would be set to the 1st element.
>
> The bug happens when:
> 1) multi-homing
> 2) failure/partial_failure transport recovers
> Both active_path and retran_path would be set to the same most-recent one, in
> other words, retran_path would not take its role - an end user might not even
> notice this issue.
>
> Signed-off-by: Chang Xiangzhong <changxiangzhong@gmail.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH] net: sctp: bug-fixing: retran_path not set properly after transports recovering (v3)
@ 2013-11-14 21:36 ` David Miller
0 siblings, 0 replies; 18+ messages in thread
From: David Miller @ 2013-11-14 21:36 UTC (permalink / raw)
To: changxiangzhong; +Cc: vyasevich, nhorman, linux-sctp, netdev
From: Chang Xiangzhong <changxiangzhong@gmail.com>
Date: Thu, 14 Nov 2013 00:58:26 +0100
> When a transport recovers due to the new coming sack, SCTP should
> iterate all of its transport_list to locate the __two__ most recently used
> transport and set to active_path and retran_path respectively. The exising
> code does not find the two properly - In case of the following list:
>
> [most-recent] -> [2nd-most-recent] -> ...
>
> Both active_path and retran_path would be set to the 1st element.
>
> The bug happens when:
> 1) multi-homing
> 2) failure/partial_failure transport recovers
> Both active_path and retran_path would be set to the same most-recent one, in
> other words, retran_path would not take its role - an end user might not even
> notice this issue.
>
> Signed-off-by: Chang Xiangzhong <changxiangzhong@gmail.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2013-11-14 21:36 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-13 21:54 [PATCH] net: sctp: bug-fixing: retran_path not set properly after transports recovering (v2) Chang Xiangzhong
2013-11-13 21:54 ` Chang Xiangzhong
2013-11-13 22:13 ` Vlad Yasevich
2013-11-13 22:13 ` Vlad Yasevich
2013-11-13 23:58 [PATCH] net: sctp: bug-fixing: retran_path not set properly after transports recovering (v3) Chang Xiangzhong
2013-11-13 23:58 ` Chang Xiangzhong
2013-11-14 1:42 ` Vlad Yasevich
2013-11-14 1:42 ` Vlad Yasevich
2013-11-14 8:12 ` Chang
2013-11-14 8:12 ` Chang
2013-11-14 8:20 ` David Miller
2013-11-14 8:20 ` David Miller
2013-11-14 8:20 ` Chang
2013-11-14 8:20 ` Chang
2013-11-14 13:55 ` Neil Horman
2013-11-14 13:55 ` Neil Horman
2013-11-14 21:36 ` David Miller
2013-11-14 21:36 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.