Skip to contentSkip to conversation

net: sctp: sctp_assoc_control_transport: fix MTU size in SCTP_PF state

PATCH Applied Daniel Borkmann 4 participants 4 messages Aug 9, 2013 – Aug 13, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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
index bce5b79..ab67efc 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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

---
  net/sctp/associola.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
net/sctp/associola.c +0 -1
index bce5b79..ab67efc 100644
@@ -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

maintainer Applied
#2 lore raw

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

...

Quoted 1 line

Applied, thanks.

Acked-by on v1 1/1
#3 lore raw
In reply to Daniel Borkmann
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

---
 net/sctp/associola.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
net/sctp/associola.c +2 -2
index bce5b79..ab67efc 100644
@@ -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