Skip to content

Commit

Permalink
Fix BBRv3 patch for kernel 6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Apr 15, 2024
1 parent d1a1ff1 commit b737ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 6.6/target/linux/generic/hack-6.6/997-BBRv3.patch
Original file line number Diff line number Diff line change
Expand Up @@ -1799,7 +1799,7 @@ Signed-off-by: Alexandre Frade <[email protected]>
+
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;
}
Expand Down

0 comments on commit b737ddc

Please sign in to comment.