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

From: Eric Dumazet
Date: Mon Jan 20 2020 - 12:58:28 EST




On 1/20/20 2:04 AM, Wen Yang wrote:
> 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: Eric Dumazet <edumazet@xxxxxxxxxx>

Thanks !