OSDN Git Service

tcp_cubic: optimize hystart_update()
authorEric Dumazet <edumazet@google.com>
Mon, 23 Dec 2019 20:27:50 +0000 (12:27 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Dec 2019 00:29:14 +0000 (16:29 -0800)
commit473900a504e510cf9175876de8892ad1e3e7efab
tree7e7d854cf26dddd7dc142e08d90f08b27f9d88d9
parent2bbc078f812d45b8decb55935dab21199bd21489
tcp_cubic: optimize hystart_update()

We do not care which bit in ca->found is set.

We avoid accessing hystart and hystart_detect unless really needed,
possibly avoiding one cache line miss.

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