From b737ddc46a7c793b6e908d8ca0b26136b077e0d8 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Mon, 15 Apr 2024 15:05:29 +0200 Subject: [PATCH] Fix BBRv3 patch for kernel 6.6 --- 6.6/target/linux/generic/hack-6.6/997-BBRv3.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/6.6/target/linux/generic/hack-6.6/997-BBRv3.patch b/6.6/target/linux/generic/hack-6.6/997-BBRv3.patch index 046672ed..3b21125e 100644 --- a/6.6/target/linux/generic/hack-6.6/997-BBRv3.patch +++ b/6.6/target/linux/generic/hack-6.6/997-BBRv3.patch @@ -1799,7 +1799,7 @@ Signed-off-by: Alexandre Frade + bytes = min_t(u32, bytes, gso_max_size - 1 - MAX_TCP_HEADER); - segs = max_t(u32, bytes / mss_now, bbr_min_tso_segs(sk)); -+ segs = max_t(u32, bytes / mss_now, ++ segs = max_t(u32, div_u64(bytes, mss_now), + sock_net(sk)->ipv4.sysctl_tcp_min_tso_segs); return segs; }