Re: [PATCH] tcp_bbr: improve arithmetic division in bbr_update_bw()

From: David Miller
Date: Tue Jan 21 2020 - 04:46:40 EST


From: Wen Yang <wenyang@xxxxxxxxxxxxxxxxx>
Date: Mon, 20 Jan 2020 18:04:56 +0800

> do_div() does a 64-by-32 division. Use div64_long() instead of it
> if the divisor is long, to avoid truncation to 32-bit.
> And as a nice side effect also cleans up the function a bit.
>
> Signed-off-by: Wen Yang <wenyang@xxxxxxxxxxxxxxxxx>

Applied, thank you.