Explorar o código

[SCTP] Don't disable PMTU discovery when mtu is small

Right now, when we receive a mtu estimate smaller then minim
threshold in the ICMP message, we disable the path mtu discovery
on the transport.  This leads to the never increasing sctp fragmentation
point even when the real path mtu has increased.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Vlad Yasevich %!s(int64=18) %!d(string=hai) anos
pai
achega
06ad391919
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  1. 0 2
      net/sctp/transport.c

+ 0 - 2
net/sctp/transport.c

@@ -271,8 +271,6 @@ void sctp_transport_update_pmtu(struct sctp_transport *t, u32 pmtu)
 		 * pmtu discovery on this transport.
 		 * pmtu discovery on this transport.
 		 */
 		 */
 		t->pathmtu = SCTP_DEFAULT_MINSEGMENT;
 		t->pathmtu = SCTP_DEFAULT_MINSEGMENT;
-		t->param_flags = (t->param_flags & ~SPP_PMTUD) |
-			SPP_PMTUD_DISABLE;
 	} else {
 	} else {
 		t->pathmtu = pmtu;
 		t->pathmtu = pmtu;
 	}
 	}