tcp: expose both send and receive intervals for rate sample
authorDeepti Raghavan <deeptir@mit.edu>
Mon, 9 Jul 2018 17:53:39 +0000 (17:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jul 2018 06:01:56 +0000 (23:01 -0700)
commit4929c9428a171145f82f81aae0c3c25ef7d82837
tree06b40ce94924ece01ded4e949be9ba05f977faef
parente0479b670d394d478907bd4fc22daab6516953c7
tcp: expose both send and receive intervals for rate sample

Congestion control algorithms, which access the rate sample
through the tcp_cong_control function, only have access to the maximum
of the send and receive interval, for cases where the acknowledgment
rate may be inaccurate due to ACK compression or decimation. Algorithms
may want to use send rates and receive rates as separate signals.

Signed-off-by: Deepti Raghavan <deeptir@mit.edu>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp_rate.c