OSDN Git Service

tcp_cubic: remove one conditional from hystart_update()
authorEric Dumazet <edumazet@google.com>
Mon, 23 Dec 2019 20:27:51 +0000 (12:27 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Dec 2019 00:29:14 +0000 (16:29 -0800)
commit35821fc2b41c51161e503bade3630603668dd3af
treed140df406ebe3399e08eb0b9462807958ec87a35
parent473900a504e510cf9175876de8892ad1e3e7efab
tcp_cubic: remove one conditional from hystart_update()

If we initialize ca->curr_rtt to ~0U, we do not need to test
for zero value in hystart_update()

We only read ca->curr_rtt if at least HYSTART_MIN_SAMPLES have
been processed, and thus ca->curr_rtt will have a sane value.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_cubic.c