net: sctp: sctp_assoc_control_transport: fix MTU size in SCTP_PF state
Subsystems (3)
PATCH 1/1 net: sctp: sctp_assoc_control_transport: fix MTU size in SCTP_PF state
The SCTP Quick failover draft [1] section 5.1, point 5 says that the cwnd should be 1 MTU. So, instead of 1, set it to 1 MTU.
[1] https://tools.ietf.org/html/draft-nishida-tsvwg-sctp-failover-05
--- net/sctp/associola.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/sctp/associola.c +2 -2
@@ -846,12 +846,12 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,else spc_state =SCTP_ADDR_AVAILABLE ;/* Don't inform ULP about transition from PF to -* active state and set cwnd to 1, see SCTP +* active state and set cwnd to 1 MTU, see SCTP * Quick failover draft section 5.1, point 5 */ if (transport->state =SCTP_PF ) { ulp_notify = false; - transport->cwnd =1 ; + transport->cwnd = asoc->pathmtu; } transport->state =SCTP_ACTIVE ;break ;
Signature · 1 line
1.7.11.7
Quoted 22 lines · Daniel Borkmann
The SCTP Quick failover draft [1] section 5.1, point 5 says that the cwnd should be 1 MTU. So, instead of 1, set it to 1 MTU.
[1] https://tools.ietf.org/html/draft-nishida-tsvwg-sctp-failover-05
Reported-by Karl Heiss <[email protected]>Signed-off-by Daniel Borkmann <[email protected]>Cc Neil Horman <[email protected]>--- net/sctp/associola.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)net/sctp/associola.c +0
-1@@ -846,12 +846,12 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,else spc_state =SCTP_ADDR_AVAILABLE ;/* Don't inform ULP about transition from PF to -* active state and set cwnd to 1, see SCTP
net/sctp/associola.c void sctp_assoc_control_transport(struct sctp_association *asoc, · line 857
Quoted 10 lines
net/sctp/associola.c +2
-1+* active state and set cwnd to 1 MTU, see SCTP * Quick failover draft section 5.1, point 5 */ if (transport->state =SCTP_PF ) { ulp_notify = false; - transport->cwnd =1 ; + transport->cwnd = asoc->pathmtu; } transport->state =SCTP_ACTIVE ;break ;
-vlad
Quoted 35 lines · Daniel Borkmann
The SCTP Quick failover draft [1] section 5.1, point 5 says that the cwnd should be 1 MTU. So, instead of 1, set it to 1 MTU.
[1] https://tools.ietf.org/html/draft-nishida-tsvwg-sctp-failover-05
Reported-by Karl Heiss <[email protected]>Signed-off-by Daniel Borkmann <[email protected]>Cc Neil Horman <[email protected]>--- net/sctp/associola.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)net/sctp/associola.c +2
-2@@ -846,12 +846,12 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,else spc_state =SCTP_ADDR_AVAILABLE ;/* Don't inform ULP about transition from PF to -* active state and set cwnd to 1, see SCTP +* active state and set cwnd to 1 MTU, see SCTP * Quick failover draft section 5.1, point 5 */ if (transport->state =SCTP_PF ) { ulp_notify = false; - transport->cwnd =1 ; + transport->cwnd = asoc->pathmtu; } transport->state =SCTP_ACTIVE ;break ;Signature · 1 line
1.7.11.7
From: Vlad Yasevich <[email protected]>
Date: Fri, 09 Aug 2013 09:39:45 -0400
Quoted 10 lines · Daniel Borkmann
Quoted 9 lines
The SCTP Quick failover draft [1] section 5.1, point 5 says that the cwnd
should be 1 MTU. So, instead of 1, set it to 1 MTU.[1] https://tools.ietf.org/html/draft-nishida-tsvwg-sctp-failover-05
Reported-by Karl Heiss <[email protected]>Signed-off-by Daniel Borkmann <[email protected]>Cc Neil Horman <[email protected]>
...
Quoted 1 line
Acked-by Vlad Yasevich <[email protected]>
Applied, thanks.