summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWen Yang <wenyang@linux.alibaba.com>2020-01-20 18:04:56 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-29 15:02:36 +0100
commit7e70784f1702cd9f438e23168ae937397c2d323a (patch)
tree942a6b504255de98f32eee7b6aa9faf9bff1c26c /include
parentd6502fc298460df8e72f525778cff3dd40daaab3 (diff)
tcp_bbr: improve arithmetic division in bbr_update_bw()
[ Upstream commit 5b2f1f3070b6447b76174ea8bfb7390dc6253ebd ] 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@linux.alibaba.com> Cc: Eric Dumazet <edumazet@google.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org> Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions