tcp: extract the function to compute delivery rate
authorWei Wang <weiwan@google.com>
Fri, 28 Jul 2017 17:28:20 +0000 (10:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Aug 2017 00:26:18 +0000 (17:26 -0700)
commit0263598c774250f72b275f7f44f93dfd85b88f2b
tree2e7b7844179e17f7664190ef3de4fba0250bab44
parent6a95befc8d0346d6cb3b4646c761e8b42e66a4df
tcp: extract the function to compute delivery rate

Refactor the code to extract the function to compute delivery rate.
This function will be used in later commit.

Signed-off-by: Wei Wang <weiwan@google.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c