sctp: adjust cwnd increase in Congestion Avoidance phase
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Fri, 23 Jun 2017 22:59:35 +0000 (19:59 -0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jun 2017 18:43:53 +0000 (14:43 -0400)
commit4ccbd0b0b9b8b09d87c7e7b0f868eda2bed03189
treeeada21acf5a392e12a7a42fd5ec0fb64a6645780
parente56f777af82ebbdf8302164b040128d890f100d8
sctp: adjust cwnd increase in Congestion Avoidance phase

RFC4960 Errata 3.26 identified that at the same time RFC4960 states that
cwnd should never grow more than 1*MTU per RTT, Section 7.2.2 was
underspecified and as described could allow increasing cwnd more than
that.

This patch updates it so partial_bytes_acked is maxed to cwnd if
flight_size doesn't reach cwnd, protecting it from such case.

See-also: https://tools.ietf.org/html/draft-ietf-tsvwg-rfc4960-errata-01#section-3.26
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/transport.c