]> git.baikalelectronics.ru Git - kernel.git/commit
tcp_nv: use do_div() instead of expensive div64_u64()
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Thu, 2 Nov 2017 14:07:05 +0000 (17:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Nov 2017 13:34:52 +0000 (22:34 +0900)
commitb78b7fdb759065ca4013cadf8ae267d0b70d5305
treef4bc9dcd39fd1d3e88d79446f9e7b6e727e074a2
parentaf28c363f2f4c271b7397697d01fc13d8b313e45
tcp_nv: use do_div() instead of expensive div64_u64()

Average RTT is 32-bit thus full 64-bit division is redundant.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Suggested-by: Stephen Hemminger <stephen@networkplumber.org>
Suggested-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_nv.c