Re: [PATCH] tcp_nv: use do_div() instead of expensive div64_u64()

2017-11-04 Thread David Miller
From: Konstantin Khlebnikov Date: Thu, 02 Nov 2017 17:07:05 +0300 > Average RTT is 32-bit thus full 64-bit division is redundant. > > Signed-off-by: Konstantin Khlebnikov > Suggested-by: Stephen Hemminger > Suggested-by: Eric Dumazet Applied to net-next, thank you.

[PATCH] tcp_nv: use do_div() instead of expensive div64_u64()

2017-11-02 Thread Konstantin Khlebnikov
Average RTT is 32-bit thus full 64-bit division is redundant. Signed-off-by: Konstantin Khlebnikov Suggested-by: Stephen Hemminger Suggested-by: Eric Dumazet --- net/ipv4/tcp_nv.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/net/ipv4/tcp_nv.c b/net/ipv4/tcp_nv.